3

I setup a GA property:

<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-XXXXXXXXX-2', { 
‘anonymize_ip’: true });
</script>

However I'm not seeing any hits show up in Realtime, even when I manually trigger the URLs. Any ideas on how to trouble shoot this?

migrated from superuser.com May 24 at 19:37

This question came from our site for computer enthusiasts and power users.

3

I had instead of ' around anonymize_ip. Thus the syntax highlighting around anonymize_ip is different in the code snippet. This kept the script from firing.

Heads up when copying the snippet from Googles documentation page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.