Skip to content

Plausible not rendering snippit when hugo builds theme #266

@therealrobster

Description

@therealrobster

Past Issues Searched

  • I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

  • This is a bug report and not a feature request, nor asking for support

Describe the bug

I entered my details into plausible settings in hugo.toml, but the generated HTML does not contain any plausible details, and Plausible can't see my site to track it.

If I look at the HTML (page source) there is no mention of Plausible.

Here is the relevant part of the hugo.toml file:

  [params.analytics] # Parameters for Analytics (Google, Plausible)
      plausibleURL    = "/docs/s" # (or set via env variable HUGO_PARAM_ANALYTICS_plausibleURL)
      # plausibleAPI    = "/docs/s" # optional - (or set via env variable HUGO_PARAM_ANALYTICS_plausibleAPI)
      plausibleDomain = "docs.redactedDomainName.com"      # (or set via env variable HUGO_PARAM_ANALYTICS_plausibleDomain)

Expected behavior

I would have thought I would add the Plausible details into the hugo.toml, and it would interact with Plausible.

Screenshots

No response

Environment

- OS: LMDE 7 - Cinnamon 64-bit
- Browser: Firefox
- Browser Version: 148.0.2 (64-bit)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions