diff --git a/layouts/404.html b/layouts/404.html index bc53fc4..00455e1 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -34,7 +34,10 @@ {{ partial "footer.html" . }} - {{ template "_internal/google_analytics_async.html" . }} + + {{ if eq (getenv "HUGO_ENV") "production"}} + {{ template "_internal/google_analytics.html" . }} + {{ end }}