diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index d7fd03b..c05e93b 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -33,7 +33,7 @@
- {{- if and (eq hugo.Environment "production") (or .Site.GoogleAnalytics .Site.Config.Services.GoogleAnalytics.ID) }}
+ {{- if and (eq hugo.Environment "production") .Site.Config.Services.GoogleAnalytics.ID }}
{{ partial "google-analytics.html" . }}
{{- end }}