diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e50da7a..2098e2c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -31,6 +31,7 @@ {{ hugo.Generator }} + {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} {{ template "_internal/google_analytics_async.html" . }} {{ end }}