Plugin Directory

Changeset 3295607


Ignore:
Timestamp:
05/18/2025 07:43:47 AM (7 months ago)
Author:
deconf
Message:

6.3.11 (2025.05.18)

  • Bug Fixes:
    • bugfix for Google Analytics opt-out feature
  • Enhancements:
    • drop support for DNT (Do Not Track) header, since it is deprecated
Location:
analytics-insights/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • analytics-insights/trunk/admin/settings.php

    r3199876 r3295607  
    2727                $options['ga_anonymize_ip'] = 0;
    2828                $options['ga_optout'] = 0;
    29                 $options['ga_dnt_optout'] = 0;
    3029                $options['ga_event_tracking'] = 0;
    3130                $options['ga_enhanced_links'] = 0;
     
    4140                $options['tm_pagescrolldepth_tracking'] = 0;
    4241                $options['tm_optout'] = 0;
    43                 $options['tm_dnt_optout'] = 0;
    4442                $options['amp_tracking_analytics'] = 0;
    4543                $options['amp_tracking_clientidapi'] = 0;
     
    578576        <?php self::html_switch_button('options[ga_enhanced_links]', 1, 'ga_enhanced_links', $options['ga_enhanced_links'], __( "enable enhanced link attribution", 'analytics-insights') ); ?>
    579577        <?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') ); ?>
    580579        <?php self::html_section_delimiter(__( "Cross-domain Tracking", 'analytics-insights' ), false); ?>
    581580        <?php self::html_switch_button('options[ga_crossdomain_tracking]', 1, 'ga_crossdomain_tracking', $options['ga_crossdomain_tracking'], __( "enable cross domain tracking", 'analytics-insights') ); ?>
     
    650649        <?php self::html_section_delimiter(__( "Advanced Tracking", 'analytics-insights' ), false); ?>
    651650        <?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') ); ?>
    653651    </table>
    654652</div>
  • analytics-insights/trunk/analytics-insights.php

    r3282791 r3295607  
    55 * Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
    66 * Author: DeConf
    7  * Version: 6.3.10
     7 * Version: 6.3.11
    88 * Author URI: https://deconf.com
    99 * Text Domain: analytics-insights
     
    1515// Plugin Version
    1616if ( ! defined( 'AIWP_CURRENT_VERSION' ) ) {
    17     define( 'AIWP_CURRENT_VERSION', '6.3.10' );
     17    define( 'AIWP_CURRENT_VERSION', '6.3.11' );
    1818}
    1919if ( ! defined( 'AIWP_ENDPOINT_URL' ) ) {
  • analytics-insights/trunk/config.php

    r3199876 r3295607  
    102102                                'ga_event_precision',
    103103                                'ga_optout',
    104                                 'ga_dnt_optout',
    105104                                'tm_optout',
    106                                 'tm_dnt_optout',
    107105            );
    108106            foreach ( $numerics as $key ) {
     
    285283                                'ga_force_ssl', //v5.1.2
    286284                                'ga_optout', //v5.2.3
    287                                 'ga_dnt_optout', //v5.2.3
    288285                                'frontend_item_reports',
    289286                                'tm_optout', //v5.3.1.2
    290                                 'tm_dnt_optout', //v5.3.1.2
    291287            );
    292288            foreach ( $zeros as $key ) {
     
    329325                                'site_jail', //v6.0.3
    330326                                '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
    332330            );
    333331            foreach ( $unsets as $key ) {
  • analytics-insights/trunk/front/tracking-analytics.php

    r3199876 r3295607  
    343343            }
    344344            $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, 'gaDntOptout' => $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'] ) );
    347347            }
    348348            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  
    138138                $vars = "{}";
    139139            }
    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, 'gaDntOptout' => $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'] ) );
    142142            }
    143143            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  
    99?>
    1010<script>
    11 var aiwpDnt = false;
    1211var aiwpProperty = '<?php echo esc_js ( $data['gaid'] )?>';
    13 var aiwpDntFollow = <?php echo $data['gaDntOptout'] ? 'true' : 'false'?>;
    1412var aiwpOptout = <?php echo $data['gaOptout'] ? 'true' : 'false'?>;
    1513var 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)) {
     14if (document.cookie.indexOf(disableStr + '=true') > -1 && aiwpOptout) {
    2015    window[disableStr] = true;
    2116}
  • analytics-insights/trunk/install/install.php

    r3199876 r3295607  
    8383            $options['ga_force_ssl'] = 0;
    8484            $options['ga_optout'] = 0;
    85             $options['ga_dnt_optout'] = 0;
    8685            $options['tm_optout'] = 0;
    87             $options['tm_dnt_optout'] = 0;
    8886
    8987            add_option( 'aiwp_options', json_encode( $options ) );
  • analytics-insights/trunk/readme.txt

    r3282791 r3295607  
    55Requires at least: 3.5
    66Tested up to: 6.8
    7 Stable tag: 6.3.10
     7Stable tag: 6.3.11
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    141141
    142142== 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
    143149
    144150= 6.3.10 (2025.04.27) =
Note: See TracChangeset for help on using the changeset viewer.