Tagged: GDPR
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>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘UA-93794843-3’,{ ‘anonymize_ip’: true });
</script>
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
Thanks Ismael, now it works.
Have nice day
Carlo
Hi Carlo,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria