Plugin Directory

Changeset 2932633


Ignore:
Timestamp:
06/30/2023 12:37:18 PM (3 years ago)
Author:
wp-buddy
Message:

Update to 2.3.6

Location:
google-analytics-opt-out
Files:
7 edited
4 copied

Legend:

Unmodified
Added
Removed
  • google-analytics-opt-out/tags/2.3.6/google-analytics-opt-out.php

    r2864194 r2932633  
    44Plugin URI: https://wp-buddy.com/products/plugins/google-analytics-opt-out
    55Description: Provides an Opt-Out functionality for Google Analytics
    6 Version: 2.3.5
     6Version: 2.3.6
    77Author: WP-Buddy
    88Author URI: https://wp-buddy.com
  • google-analytics-opt-out/tags/2.3.6/inc/functions.php

    r2358396 r2932633  
    2424function gaoop_monster_insights_plugin_active() {
    2525
    26     return function_exists( 'MonsterInsights' );
     26    return function_exists( 'monsterinsights_get_v4_id' );
    2727}
    2828
     
    5656    }
    5757
    58     return monsterinsights_get_ua_to_output();
     58    return monsterinsights_get_v4_id();
    5959}
    6060
  • google-analytics-opt-out/tags/2.3.6/inc/scripts.php

    r2358396 r2932633  
    1515    }
    1616    ?>
    17     <script type="text/javascript">
    18         /* Google Analytics Opt-Out by WP-Buddy | https://wp-buddy.com/products/plugins/google-analytics-opt-out */
     17    <script type="text/javascript">
     18        /* Google Analytics Opt-Out by WP-Buddy | https://wp-buddy.com/products/plugins/google-analytics-opt-out */
    1919        <?php do_action( 'gaoop_js_before_script' ); ?>
    2020        <?php if(gaoop_monster_insights_plugin_active()): ?>
    21         var gaoop_disable_str = disableStr;
     21        var gaoop_disable_strs = disableStrs;
    2222        <?php else: ?>
    23         var gaoop_property = '<?php echo $ua_code; ?>';
    24         var gaoop_disable_str = 'ga-disable-' + gaoop_property;
     23        var gaoop_property = '<?php echo esc_attr( $ua_code ); ?>';
     24        var gaoop_disable_strs = ['ga-disable-' + gaoop_property];
    2525        <?php endif; ?>
    26         if (document.cookie.indexOf(gaoop_disable_str + '=true') > -1) {
    27             window[gaoop_disable_str] = true;
    28         }
     26        for (var index = 0; index < disableStrs.length; index++) {
     27            if (document.cookie.indexOf(disableStrs[index] + '=true') > -1) {
     28                window[disableStrs[index]] = true; // for Monster Insights
     29            }
     30        }
    2931
    30         function gaoop_analytics_optout() {
    31             document.cookie = gaoop_disable_str + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; SameSite=Strict; path=/';
    32             window[gaoop_disable_str] = true;
     32        function gaoop_analytics_optout() {
     33            for (var index = 0; index < disableStrs.length; index++) {
     34                document.cookie = disableStrs[index] + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; SameSite=Strict; path=/';
     35                window[disableStrs[index]] = true; // for Monster Insights
     36            }
    3337            <?php echo apply_filters( 'gaoop_cookie_set', '' ); ?>
    34         }
     38        }
    3539        <?php
    3640        do_action( 'gaoop_js_after_script' );
    3741        ?>
    38     </script>
     42    </script>
    3943    <?php
    4044}
  • google-analytics-opt-out/tags/2.3.6/inc/settings.php

    r2864194 r2932633  
    7676    ] );
    7777
    78     add_settings_field( 'gaoop_property', __( 'UA-, GA-Code or G-Code', 'google-analytics-opt-out' ), 'gaoop_options_property', 'gaoop_options_page', 'gaoop_settings_section', array( 'label_for' => 'gaoop_options_property' ) );
     78    add_settings_field( 'gaoop_property', __( 'UA-, GA-Code or G-Measurement ID', 'google-analytics-opt-out' ), 'gaoop_options_property', 'gaoop_options_page', 'gaoop_settings_section', array( 'label_for' => 'gaoop_options_property' ) );
    7979    register_setting( 'gaoop_options_page', 'gaoop_property', [
    8080        'sanitize_callback' => function ( $val ) {
  • google-analytics-opt-out/tags/2.3.6/readme.txt

    r2864194 r2932633  
    33Donate link: https://wp-buddy.com/products/plugins/google-analytics-opt-out/
    44Tags: google analytics opt-out, monster insights, gdpr, dsgvo
    5 Version: 2.3.5
    6 Stable tag: 2.3.5
     5Version: 2.3.6
     6Stable tag: 2.3.6
    77Requires at least: 4.8.0
    8 Tested up to: 6.1.1
     8Tested up to: 6.2.2
    99Requires PHP: 5.6.0
    1010License: GPLv2
     
    4242
    4343== Changelog ==
     44
     45= 2.3.6 =
     46* Compatibility with latest MonsterInsights version
    4447
    4548= 2.3.5 =
  • google-analytics-opt-out/trunk/google-analytics-opt-out.php

    r2864194 r2932633  
    44Plugin URI: https://wp-buddy.com/products/plugins/google-analytics-opt-out
    55Description: Provides an Opt-Out functionality for Google Analytics
    6 Version: 2.3.5
     6Version: 2.3.6
    77Author: WP-Buddy
    88Author URI: https://wp-buddy.com
  • google-analytics-opt-out/trunk/inc/functions.php

    r2358396 r2932633  
    2424function gaoop_monster_insights_plugin_active() {
    2525
    26     return function_exists( 'MonsterInsights' );
     26    return function_exists( 'monsterinsights_get_v4_id' );
    2727}
    2828
     
    5656    }
    5757
    58     return monsterinsights_get_ua_to_output();
     58    return monsterinsights_get_v4_id();
    5959}
    6060
  • google-analytics-opt-out/trunk/inc/scripts.php

    r2358396 r2932633  
    1515    }
    1616    ?>
    17     <script type="text/javascript">
    18         /* Google Analytics Opt-Out by WP-Buddy | https://wp-buddy.com/products/plugins/google-analytics-opt-out */
     17    <script type="text/javascript">
     18        /* Google Analytics Opt-Out by WP-Buddy | https://wp-buddy.com/products/plugins/google-analytics-opt-out */
    1919        <?php do_action( 'gaoop_js_before_script' ); ?>
    2020        <?php if(gaoop_monster_insights_plugin_active()): ?>
    21         var gaoop_disable_str = disableStr;
     21        var gaoop_disable_strs = disableStrs;
    2222        <?php else: ?>
    23         var gaoop_property = '<?php echo $ua_code; ?>';
    24         var gaoop_disable_str = 'ga-disable-' + gaoop_property;
     23        var gaoop_property = '<?php echo esc_attr( $ua_code ); ?>';
     24        var gaoop_disable_strs = ['ga-disable-' + gaoop_property];
    2525        <?php endif; ?>
    26         if (document.cookie.indexOf(gaoop_disable_str + '=true') > -1) {
    27             window[gaoop_disable_str] = true;
    28         }
     26        for (var index = 0; index < disableStrs.length; index++) {
     27            if (document.cookie.indexOf(disableStrs[index] + '=true') > -1) {
     28                window[disableStrs[index]] = true; // for Monster Insights
     29            }
     30        }
    2931
    30         function gaoop_analytics_optout() {
    31             document.cookie = gaoop_disable_str + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; SameSite=Strict; path=/';
    32             window[gaoop_disable_str] = true;
     32        function gaoop_analytics_optout() {
     33            for (var index = 0; index < disableStrs.length; index++) {
     34                document.cookie = disableStrs[index] + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; SameSite=Strict; path=/';
     35                window[disableStrs[index]] = true; // for Monster Insights
     36            }
    3337            <?php echo apply_filters( 'gaoop_cookie_set', '' ); ?>
    34         }
     38        }
    3539        <?php
    3640        do_action( 'gaoop_js_after_script' );
    3741        ?>
    38     </script>
     42    </script>
    3943    <?php
    4044}
  • google-analytics-opt-out/trunk/inc/settings.php

    r2864194 r2932633  
    7676    ] );
    7777
    78     add_settings_field( 'gaoop_property', __( 'UA-, GA-Code or G-Code', 'google-analytics-opt-out' ), 'gaoop_options_property', 'gaoop_options_page', 'gaoop_settings_section', array( 'label_for' => 'gaoop_options_property' ) );
     78    add_settings_field( 'gaoop_property', __( 'UA-, GA-Code or G-Measurement ID', 'google-analytics-opt-out' ), 'gaoop_options_property', 'gaoop_options_page', 'gaoop_settings_section', array( 'label_for' => 'gaoop_options_property' ) );
    7979    register_setting( 'gaoop_options_page', 'gaoop_property', [
    8080        'sanitize_callback' => function ( $val ) {
  • google-analytics-opt-out/trunk/readme.txt

    r2864194 r2932633  
    33Donate link: https://wp-buddy.com/products/plugins/google-analytics-opt-out/
    44Tags: google analytics opt-out, monster insights, gdpr, dsgvo
    5 Version: 2.3.5
    6 Stable tag: 2.3.5
     5Version: 2.3.6
     6Stable tag: 2.3.6
    77Requires at least: 4.8.0
    8 Tested up to: 6.1.1
     8Tested up to: 6.2.2
    99Requires PHP: 5.6.0
    1010License: GPLv2
     
    4242
    4343== Changelog ==
     44
     45= 2.3.6 =
     46* Compatibility with latest MonsterInsights version
    4447
    4548= 2.3.5 =
Note: See TracChangeset for help on using the changeset viewer.