hugo-awesome-identity
hugo-awesome-identity copied to clipboard
Google Analytics not work properly
I've configured google analytics placing in the config.toml
file the propoerty googleAnalytics = "G-**********"
but no data are available on the dashboard on google analytics.
I've seen that on the file layouts/index.html
you placed the {{ template "_internal/google_analytics_async.html" . }}
under the <body>
tag but on the google analytic guide, they suggest to place them under the <head>
tag. Moreover, in the hugo guide, the suggest that using v4 of google analytics you should include the {{ template "_internal/google_analytics.html" . }}
template.
Moving the analytics tag under <head>
might fix the problem?