Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #455326

    Hi Team,
    in order to comply with EU/Italian privacy and cookies policy, I would like to assure IP anonymization in Google Analytics in my blog.
    Is it possible to insert some code to Enfold theme option –> GA tracking code?
    Something like this:
    ga(‘set’, ‘anonymizeIp’, true)

    Thanks!

    #455465

    Hi turistai!

    Thank you for using Enfold.

    You need to place it directly in your ga analytics code. Refer to this link for more info: http://www.iubenda.com/blog/2013/11/13/ip-anonymization-google-analytics-privacy/#gajs

    The ga snippet should look something like this:

    <!-- Google Analytics -->
    <script async src='//www.google-analytics.com/analytics.js'></script>
    <script>
    window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
    ga('create', 'UA-XXXX-Y', 'auto');
    ga('set', 'anonymizeIP', true); // anonymize ip address
    ga('send', 'pageview');
    </script>
    <!-- End Google Analytics -->

    Cheers!
    Ismael

    #455546

    Hello Ismael,
    thanks I will try it.
    Regards!

    #455594

    Hey!

    Ok. Let us know if it works. You might see the result after a few days. I’m really not sure how they test if this is working though.

    Cheers!
    Ismael

    #954484

    I found this when I was doing research for GDPR. For those using the newer gtag.js, here is the code:

    <!– Global site tag (gtag.js) – Google Analytics –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID”></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘GA_TRACKING_ID’, { ‘anonymize_ip’: true });
    </script>

    #954487
    #955014

    Hi sojournerweb,

    Thanks for sharing, much appreciated :-)

    Best regards,
    Rikard

    #960504

    How do I do this when using a child theme?

    #960819

    gooflo, check out your theme settings page and look for “Google Services” tab. There is a Google Analytics tracking code tab.

    #961409

    Hi there,

    Where do I have to put that script? In the field in the tab Google-Services I filled in the Google Analytics Tracking Code. Do I have to place the script after that code?

    Greetings Marcel

    #961416

    Hi Marcel,

    Yes, you just need to put the script in the Google Analytics Tracking Code textarea.
    Hope this helps.

    Best regards,
    Nikko

    #961435

    Marcel, simply copy the whole script but don’t forget to replace GA_TRACKING_ID by your own tracking ID (at 2 places in the script)

    #961505

    Thanks a lot!

    Best Regards, Marcel

    #961589

    Hi Marcel,

    Glad that we could help. :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

    #962282

    Very helpful.
    Thanks!

    Mark

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.