Hello, I’m looking to add my google analytics tracking code in Enfold Child -> Google Services -> Google Analytics Tracking Code. The help text says I can add the full tracking code, so this is what I’ve added:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXX-X"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-XXXXXX-X');
</script>
Just wanted to double check that this is the correct code to add. Thanks
Hey swibbycreations,
This looks correct, if it has been a couple of days you should start seeing the analytics of this, do you?
Best regards,
Mike
Hi Mike
So sorry, I completely forgot that I posted this thread. Yes, in fact I was already seeing the analytics.
I just wanted to be sure that I hadn’t added the code in a way that would cause it to double count or something.
Thanks