You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm trying to link my blog to Google Analytics.
What I've done, is simply set the Hugo parameter googleAnalytics to my Google-released ID.
Unfortunately, it seems from Analytics is still not linked. Google expects this:
<!-- Google tag (gtag.js) --><scriptasyncsrc="https://www.googletagmanager.com/gtag/js?id=G-12345678"></script> # THIS IS MISSING ONLINE
<script>window.dataLayer=window.dataLayer||[];functiongtag(){dataLayer.push(arguments);}gtag('js',newDate());gtag('config','G-12345678');</script>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to link my blog to Google Analytics.
What I've done, is simply set the Hugo parameter
googleAnalytics
to my Google-released ID.Unfortunately, it seems from Analytics is still not linked. Google expects this:
Indeed the online site blog.maxgio.me doesn't contain it.
This is the related repo: github.com/maxgio92/maxgio92.github.io.
And the full raw config here.
The thing is that the local build served with:
seems to contain the expected scripts (especially the googletagmanager.com script, missing from the online build).
For the online site, I build and deploy to the Github Page (https://blog.maxgio.me), made via Github Action, where basically it's simply run:
The full publish workflow here.
I'm probably missing something. Does this looks correct to you? Do you have any hints?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions