Global site tag (gtag.js) – Google Analytics
-
Hi,
I am having problems with getting this gtag.js to work (I have removed my personal account ID numbers)
<!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-X”></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());gtag(‘config’, ‘UA-UA-XXXXXXXX-X’);
</script>When I remove all the script tags it’s not doing anything – doubtless my lack of knowledge. Could you just show me what it should be without the script tags. I don’t think I am understanding correctly.
By the way the other updates were fantastic and it all works great.
Thanks a lot for all the work.
Gruff
- The topic ‘Global site tag (gtag.js) – Google Analytics’ is closed to new replies.