Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Analytics not work properly #19

Open
nicolasfara opened this issue Jun 8, 2022 · 0 comments
Open

Google Analytics not work properly #19

nicolasfara opened this issue Jun 8, 2022 · 0 comments

Comments

@nicolasfara
Copy link

nicolasfara commented Jun 8, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant