Skip to content

Google Analytics not work properly #19

@nicolasfara

Description

@nicolasfara

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?

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