Google Analytics in Hugo, theme=osprey-delight

Hey folks, i’ve added my tracking id to my config file and everything looks like its matching up. Yet I haven’t seen any realtime data come in when I launch https://analytics.google.com/

googleAnalytics = “G-12345689” (example)

githublink

When i deploy to firebase, i do see a script tag for ga in my main index.html file, here it is below -

<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
	window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
	ga('create', 'G-12345689', 'auto');
	
	ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>

What am i missing?

I am afraid that we cannot offer support for GA in this forum.

Please try StackOverflow and similar.

1 Like