Changeset 3295607
- Timestamp:
- 05/18/2025 07:43:47 AM (7 months ago)
- Location:
- analytics-insights/trunk
- Files:
-
- 8 edited
-
admin/settings.php (modified) (4 diffs)
-
analytics-insights.php (modified) (2 diffs)
-
config.php (modified) (3 diffs)
-
front/tracking-analytics.php (modified) (1 diff)
-
front/tracking-tagmanager.php (modified) (1 diff)
-
front/views/analytics-optout-code.php (modified) (1 diff)
-
install/install.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
analytics-insights/trunk/admin/settings.php
r3199876 r3295607 27 27 $options['ga_anonymize_ip'] = 0; 28 28 $options['ga_optout'] = 0; 29 $options['ga_dnt_optout'] = 0;30 29 $options['ga_event_tracking'] = 0; 31 30 $options['ga_enhanced_links'] = 0; … … 41 40 $options['tm_pagescrolldepth_tracking'] = 0; 42 41 $options['tm_optout'] = 0; 43 $options['tm_dnt_optout'] = 0;44 42 $options['amp_tracking_analytics'] = 0; 45 43 $options['amp_tracking_clientidapi'] = 0; … … 578 576 <?php self::html_switch_button('options[ga_enhanced_links]', 1, 'ga_enhanced_links', $options['ga_enhanced_links'], __( "enable enhanced link attribution", 'analytics-insights') ); ?> 579 577 <?php self::html_switch_button('options[ga_event_precision]', 1, 'ga_event_precision', $options['ga_event_precision'], __( "use hitCallback to increase event tracking accuracy", 'analytics-insights') ); ?> 578 <?php self::html_switch_button('options[ga_optout]', 1, 'ga_optout', $options['ga_optout'], __( "enable support for user opt-out", 'analytics-insights') ); ?> 580 579 <?php self::html_section_delimiter(__( "Cross-domain Tracking", 'analytics-insights' ), false); ?> 581 580 <?php self::html_switch_button('options[ga_crossdomain_tracking]', 1, 'ga_crossdomain_tracking', $options['ga_crossdomain_tracking'], __( "enable cross domain tracking", 'analytics-insights') ); ?> … … 650 649 <?php self::html_section_delimiter(__( "Advanced Tracking", 'analytics-insights' ), false); ?> 651 650 <?php self::html_switch_button('options[tm_optout]', 1, 'tm_optout', $options['tm_optout'], __( "enable support for user opt-out", 'analytics-insights') ); ?> 652 <?php self::html_switch_button('options[tm_dnt_optout]', 1, 'tm_dnt_optout', $options['tm_dnt_optout'], __( "exclude tracking for users sending Do Not Track header", 'analytics-insights') ); ?>653 651 </table> 654 652 </div> -
analytics-insights/trunk/analytics-insights.php
r3282791 r3295607 5 5 * Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website. 6 6 * Author: DeConf 7 * Version: 6.3.1 07 * Version: 6.3.11 8 8 * Author URI: https://deconf.com 9 9 * Text Domain: analytics-insights … … 15 15 // Plugin Version 16 16 if ( ! defined( 'AIWP_CURRENT_VERSION' ) ) { 17 define( 'AIWP_CURRENT_VERSION', '6.3.1 0' );17 define( 'AIWP_CURRENT_VERSION', '6.3.11' ); 18 18 } 19 19 if ( ! defined( 'AIWP_ENDPOINT_URL' ) ) { -
analytics-insights/trunk/config.php
r3199876 r3295607 102 102 'ga_event_precision', 103 103 'ga_optout', 104 'ga_dnt_optout',105 104 'tm_optout', 106 'tm_dnt_optout',107 105 ); 108 106 foreach ( $numerics as $key ) { … … 285 283 'ga_force_ssl', //v5.1.2 286 284 'ga_optout', //v5.2.3 287 'ga_dnt_optout', //v5.2.3288 285 'frontend_item_reports', 289 286 'tm_optout', //v5.3.1.2 290 'tm_dnt_optout', //v5.3.1.2291 287 ); 292 288 foreach ( $zeros as $key ) { … … 329 325 'site_jail', //v6.0.3 330 326 'sites_list', //v6.0.3 331 'backend_realtime_report', //v6.4 327 'backend_realtime_report', //v6.0.4 328 'ga_dnt_optout', //v6.3.10 329 'tm_dnt_optout', //v6.3.10 332 330 ); 333 331 foreach ( $unsets as $key ) { -
analytics-insights/trunk/front/tracking-analytics.php
r3199876 r3295607 343 343 } 344 344 $tracking_script_path = apply_filters( 'aiwp_gtag_script_path', 'https://www.googletagmanager.com/gtag/js' ); 345 if ( $this->aiwp->config->options['ga_optout'] || $this->aiwp->config->options['ga_dnt_optout']) {346 AIWP_Tools::load_view( 'front/views/analytics-optout-code.php', array( 'gaid' => $this->gaid, 'ga DntOptout' => $this->aiwp->config->options['ga_dnt_optout'], 'gaOptout' => $this->aiwp->config->options['ga_optout'] ) );345 if ( $this->aiwp->config->options['ga_optout'] ) { 346 AIWP_Tools::load_view( 'front/views/analytics-optout-code.php', array( 'gaid' => $this->gaid, 'gaOptout' => $this->aiwp->config->options['ga_optout'] ) ); 347 347 } 348 348 AIWP_Tools::load_view( 'front/views/analytics-code.php', array( 'trackingcode' => $trackingcode, 'tracking_script_path' => $tracking_script_path, 'gaid' => $this->gaid ) ); -
analytics-insights/trunk/front/tracking-tagmanager.php
r2998407 r3295607 138 138 $vars = "{}"; 139 139 } 140 if ( ( $this->aiwp->config->options['tm_optout'] || $this->aiwp->config->options['tm_dnt_optout']) && ! empty( $this->gaid ) ) {141 AIWP_Tools::load_view( 'front/views/analytics-optout-code.php', array( 'gaid' => $this->gaid, 'ga DntOptout' => $this->aiwp->config->options['tm_dnt_optout'], 'gaOptout' => $this->aiwp->config->options['tm_optout'] ) );140 if ( ( $this->aiwp->config->options['tm_optout'] ) && ! empty( $this->gaid ) ) { 141 AIWP_Tools::load_view( 'front/views/analytics-optout-code.php', array( 'gaid' => $this->gaid, 'gaOptout' => $this->aiwp->config->options['tm_optout'] ) ); 142 142 } 143 143 AIWP_Tools::load_view( 'front/views/tagmanager-code.php', array( 'containerid' => $this->aiwp->config->options['web_containerid'], 'vars' => $vars ) ); -
analytics-insights/trunk/front/views/analytics-optout-code.php
r2787742 r3295607 9 9 ?> 10 10 <script> 11 var aiwpDnt = false;12 11 var aiwpProperty = '<?php echo esc_js ( $data['gaid'] )?>'; 13 var aiwpDntFollow = <?php echo $data['gaDntOptout'] ? 'true' : 'false'?>;14 12 var aiwpOptout = <?php echo $data['gaOptout'] ? 'true' : 'false'?>; 15 13 var disableStr = 'ga-disable-' + aiwpProperty; 16 if(aiwpDntFollow && (window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) { 17 aiwpDnt = true; 18 } 19 if (aiwpDnt || (document.cookie.indexOf(disableStr + '=true') > -1 && aiwpOptout)) { 14 if (document.cookie.indexOf(disableStr + '=true') > -1 && aiwpOptout) { 20 15 window[disableStr] = true; 21 16 } -
analytics-insights/trunk/install/install.php
r3199876 r3295607 83 83 $options['ga_force_ssl'] = 0; 84 84 $options['ga_optout'] = 0; 85 $options['ga_dnt_optout'] = 0;86 85 $options['tm_optout'] = 0; 87 $options['tm_dnt_optout'] = 0;88 86 89 87 add_option( 'aiwp_options', json_encode( $options ) ); -
analytics-insights/trunk/readme.txt
r3282791 r3295607 5 5 Requires at least: 3.5 6 6 Tested up to: 6.8 7 Stable tag: 6.3.1 07 Stable tag: 6.3.11 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 141 141 142 142 == Changelog == 143 144 = 6.3.11 (2025.04.27) = 145 * Bug Fixes: 146 * bugfix for Google Analytics opt-out feature 147 * Enhancements: 148 * drop support for DNT (Do Not Track) header, since it is deprecated 143 149 144 150 = 6.3.10 (2025.04.27) =
Note: See TracChangeset
for help on using the changeset viewer.