diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 5bc582fa55..fff9e09e73 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -40,22 +40,3 @@
{{ "" | safeHTML }}
{{ $script := resources.Get "js/script.js" | minify}}
-
-{{ "" | safeHTML }}
-{{ with .Site.Params.google_analytics_id }}
-
-{{ end }}
\ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 823c7edc61..9d5ff29fb0 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -25,4 +25,16 @@
-
\ No newline at end of file
+ {{ with .Site.Params.google_analytics_id }}
+ {{ "" | safeHTML }}
+
+
+ {{ end }}
+
+