Skip to content

Ensure that analytics is disabled for non-production builds #357

@chalin

Description

@chalin

If you look at the page source of a preview build like https://deploy-preview-347--kubernetes-contributor.netlify.app/, you'll see that analytics are enabled. We only want analytics for the main site.

The source of the problem is this config:

[build.environment]
HUGO_VERSION = "0.69.2"
HUGO_ENV = "production"

We don't want to specify all builds as being "production" builds (HUGO_ENV).

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions