diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 561bd3c..de35229 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -90,7 +90,7 @@
{{- end }}
-{{- if .Site.GoogleAnalytics -}}
+{{- if and (not .Site.IsServer) .Site.GoogleAnalytics -}}
{{ template "_internal/google_analytics_async.html" . }}
{{- end -}}