Changeset 2932633
- Timestamp:
- 06/30/2023 12:37:18 PM (3 years ago)
- Location:
- google-analytics-opt-out
- Files:
-
- 7 edited
- 4 copied
-
tags/2.3.6 (copied) (copied from google-analytics-opt-out/trunk)
-
tags/2.3.6/google-analytics-opt-out.php (copied) (copied from google-analytics-opt-out/trunk/google-analytics-opt-out.php) (1 diff)
-
tags/2.3.6/inc/functions.php (modified) (2 diffs)
-
tags/2.3.6/inc/scripts.php (modified) (1 diff)
-
tags/2.3.6/inc/settings.php (copied) (copied from google-analytics-opt-out/trunk/inc/settings.php) (1 diff)
-
tags/2.3.6/readme.txt (copied) (copied from google-analytics-opt-out/trunk/readme.txt) (2 diffs)
-
trunk/google-analytics-opt-out.php (modified) (1 diff)
-
trunk/inc/functions.php (modified) (2 diffs)
-
trunk/inc/scripts.php (modified) (1 diff)
-
trunk/inc/settings.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
google-analytics-opt-out/tags/2.3.6/google-analytics-opt-out.php
r2864194 r2932633 4 4 Plugin URI: https://wp-buddy.com/products/plugins/google-analytics-opt-out 5 5 Description: Provides an Opt-Out functionality for Google Analytics 6 Version: 2.3. 56 Version: 2.3.6 7 7 Author: WP-Buddy 8 8 Author URI: https://wp-buddy.com -
google-analytics-opt-out/tags/2.3.6/inc/functions.php
r2358396 r2932633 24 24 function gaoop_monster_insights_plugin_active() { 25 25 26 return function_exists( ' MonsterInsights' );26 return function_exists( 'monsterinsights_get_v4_id' ); 27 27 } 28 28 … … 56 56 } 57 57 58 return monsterinsights_get_ ua_to_output();58 return monsterinsights_get_v4_id(); 59 59 } 60 60 -
google-analytics-opt-out/tags/2.3.6/inc/scripts.php
r2358396 r2932633 15 15 } 16 16 ?> 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 */ 19 19 <?php do_action( 'gaoop_js_before_script' ); ?> 20 20 <?php if(gaoop_monster_insights_plugin_active()): ?> 21 var gaoop_disable_str = disableStr;21 var gaoop_disable_strs = disableStrs; 22 22 <?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]; 25 25 <?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 } 29 31 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 } 33 37 <?php echo apply_filters( 'gaoop_cookie_set', '' ); ?> 34 }38 } 35 39 <?php 36 40 do_action( 'gaoop_js_after_script' ); 37 41 ?> 38 </script>42 </script> 39 43 <?php 40 44 } -
google-analytics-opt-out/tags/2.3.6/inc/settings.php
r2864194 r2932633 76 76 ] ); 77 77 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' ) ); 79 79 register_setting( 'gaoop_options_page', 'gaoop_property', [ 80 80 'sanitize_callback' => function ( $val ) { -
google-analytics-opt-out/tags/2.3.6/readme.txt
r2864194 r2932633 3 3 Donate link: https://wp-buddy.com/products/plugins/google-analytics-opt-out/ 4 4 Tags: google analytics opt-out, monster insights, gdpr, dsgvo 5 Version: 2.3. 56 Stable tag: 2.3. 55 Version: 2.3.6 6 Stable tag: 2.3.6 7 7 Requires at least: 4.8.0 8 Tested up to: 6. 1.18 Tested up to: 6.2.2 9 9 Requires PHP: 5.6.0 10 10 License: GPLv2 … … 42 42 43 43 == Changelog == 44 45 = 2.3.6 = 46 * Compatibility with latest MonsterInsights version 44 47 45 48 = 2.3.5 = -
google-analytics-opt-out/trunk/google-analytics-opt-out.php
r2864194 r2932633 4 4 Plugin URI: https://wp-buddy.com/products/plugins/google-analytics-opt-out 5 5 Description: Provides an Opt-Out functionality for Google Analytics 6 Version: 2.3. 56 Version: 2.3.6 7 7 Author: WP-Buddy 8 8 Author URI: https://wp-buddy.com -
google-analytics-opt-out/trunk/inc/functions.php
r2358396 r2932633 24 24 function gaoop_monster_insights_plugin_active() { 25 25 26 return function_exists( ' MonsterInsights' );26 return function_exists( 'monsterinsights_get_v4_id' ); 27 27 } 28 28 … … 56 56 } 57 57 58 return monsterinsights_get_ ua_to_output();58 return monsterinsights_get_v4_id(); 59 59 } 60 60 -
google-analytics-opt-out/trunk/inc/scripts.php
r2358396 r2932633 15 15 } 16 16 ?> 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 */ 19 19 <?php do_action( 'gaoop_js_before_script' ); ?> 20 20 <?php if(gaoop_monster_insights_plugin_active()): ?> 21 var gaoop_disable_str = disableStr;21 var gaoop_disable_strs = disableStrs; 22 22 <?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]; 25 25 <?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 } 29 31 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 } 33 37 <?php echo apply_filters( 'gaoop_cookie_set', '' ); ?> 34 }38 } 35 39 <?php 36 40 do_action( 'gaoop_js_after_script' ); 37 41 ?> 38 </script>42 </script> 39 43 <?php 40 44 } -
google-analytics-opt-out/trunk/inc/settings.php
r2864194 r2932633 76 76 ] ); 77 77 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' ) ); 79 79 register_setting( 'gaoop_options_page', 'gaoop_property', [ 80 80 'sanitize_callback' => function ( $val ) { -
google-analytics-opt-out/trunk/readme.txt
r2864194 r2932633 3 3 Donate link: https://wp-buddy.com/products/plugins/google-analytics-opt-out/ 4 4 Tags: google analytics opt-out, monster insights, gdpr, dsgvo 5 Version: 2.3. 56 Stable tag: 2.3. 55 Version: 2.3.6 6 Stable tag: 2.3.6 7 7 Requires at least: 4.8.0 8 Tested up to: 6. 1.18 Tested up to: 6.2.2 9 9 Requires PHP: 5.6.0 10 10 License: GPLv2 … … 42 42 43 43 == Changelog == 44 45 = 2.3.6 = 46 * Compatibility with latest MonsterInsights version 44 47 45 48 = 2.3.5 =
Note: See TracChangeset
for help on using the changeset viewer.