I setup a GA property:

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

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?


1 Answer 1


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 and acknowledge you have read our privacy policy.

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