diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 0663b80a7..f75ffe8dd 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -5,7 +5,7 @@
{{ block "main" . -}}{{- end }}
- {{ if not .Site.IsServer }}
+ {{ if ne hugo.Environment "development" }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}