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?

0

1 Answer 1

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.