Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #974521

    Good evening,
    I’m having a strange behavior by using the option anonymize_ip’: true into gtag.js in the related Enfold’s field.
    The problem is that when I place above said option there, I can not see any traffic in Google Analytics and I’m quite sure that it is written correctly because on another site, with same Enfold theme, it works properly.
    Any suggestion? Thanks in advance

    This is the code:

    <!– Global site tag (gtag.js) – Google Analytics –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-93794843-3″></script&gt;

    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘UA-93794843-3’,{ ‘anonymize_ip’: true });
    </script>

    #974606

    Hey Menny79,

    Thank you for using Enfold.

    Adjust the single quotes.

    ‘anonymize_ip’
    

    to..

    'anonymize_ip'
    

    If it doesn’t work, please provide the login details in the private field so that we can can test further.

    Best regards,
    Ismael

    #974696

    Thanks Ismael, now it works.

    Have nice day
    Carlo

    #974931

    Hi Carlo,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

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