• Resolved kawee03

    (@kawee03)


    Hi, If I set double tracking (ga3 and ga4) with anonymize ip only the ga3 tag is anonymize ip. Do you know how we can fix this?

    I look forward to hearing from you.

    <!-- BEGIN AIWP v5.8.1 Global Site Tag - https://deconf.com/analytics-insights-for-wordpress/ -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-..-1"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
      gtag('config', 'UA-..-1', {
    	'allow_display_features': false, 
    	'anonymize_ip': true
      });
      gtag('config', 'G-..');
    
      if (window.performance) {
        var timeSincePageLoad = Math.round(performance.now());
        gtag('event', 'timing_complete', {
          'name': 'load',
          'value': timeSincePageLoad,
          'event_category': 'JS Dependencies'
        });
      }
    </script>
    <!-- END AIWP Global Site Tag -->
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alin Marcu

    (@deconf)

    Hi,

    In GA4 the IP anonymization feature is activated by default and cannot be adjusted by users.

    I can’t figure out how you concluded, from the tracking code posted above, that GA4 doesn’t anonymize IPs.

    If there’s something I am missing please point me in the right direction.

    Thread Starter kawee03

    (@kawee03)

    Hi,

    Thanks for your reply. I make a mistake. I thought it was the same as in UA.

    And if I activate GA4 tracking + anonymization in the plugin settings. The code below was showing up. That made me confused.


    gtag('config', 'G-..', {
    'allow_display_features': false,
    'anonymize_ip': true
    });

    Thanks!

    Kind Regards

    Plugin Author Alin Marcu

    (@deconf)

    No worries, thanks for the feedback!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Double tracking anonymize IP’ is closed to new replies.