diff --git a/src/layouts/partials/analytics.html b/src/layouts/partials/analytics.html
index c238a6276..818c82a55 100644
--- a/src/layouts/partials/analytics.html
+++ b/src/layouts/partials/analytics.html
@@ -1 +1,3 @@
+{{- if hugo.IsProduction }}
+{{- end }}
diff --git a/src/layouts/partials/head.html b/src/layouts/partials/head.html
index 890ceb095..f1543193b 100644
--- a/src/layouts/partials/head.html
+++ b/src/layouts/partials/head.html
@@ -25,6 +25,4 @@
{{ partial "favicons" . -}}
{{ partial "social" . -}}
{{ partial "scripts" . -}}
-{{- if hugo.IsProduction }}
{{ partial "analytics" . -}}
-{{- end }}