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).
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:
contributor-site/netlify.toml
Lines 5 to 7 in 1a8d9c6
We don't want to specify all builds as being "production" builds (
HUGO_ENV).