hugo-awesome-identity icon indicating copy to clipboard operation
hugo-awesome-identity copied to clipboard

Google Analytics not work properly

Open nicolasfara opened this issue 2 years ago • 0 comments

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?

nicolasfara avatar Jun 08 '22 07:06 nicolasfara