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

Increase Support for Google Analytics #74

Open
LucasSymons opened this issue Oct 7, 2019 · 1 comment
Open

Increase Support for Google Analytics #74

LucasSymons opened this issue Oct 7, 2019 · 1 comment

Comments

@LucasSymons
Copy link

Is your feature request related to a problem? Please describe.
I have an issue where the google analytics code isn't added to the default landing page (/index.html) once the site is built. However the code is added to my "posts pages"

Describe the solution you'd like
Please include the Google Analytics code into the default landing page so that more accurate analytics can be collected.

Describe alternatives you've considered
I am looking into manually adding it in via my hugo build, if i work it out I will raise a PR :)
I also looked at just adding it at the cloudflare level but I seem to be having an issue with that due to other parts of my setup.

Additional context
To enable it on the posts pages all i did was add,

googleAnalytics = "UA-111111111-1"

To the root of the config.toml right under the robots.txt param.

@zxkane
Copy link
Contributor

zxkane commented Nov 6, 2019

Not sure it's an actual issue. I do see GA code in index page of my site.

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

2 participants