Skip to content

Increase Support for Google Analytics #74

@LucasSymons

Description

@LucasSymons

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions