From 7f185788e0b9caa64a16a9451fde382f97821712 Mon Sep 17 00:00:00 2001 From: Daniel Riesner Date: Fri, 16 Feb 2018 12:27:21 +0100 Subject: [PATCH] Move Google Analytics tracking code to head element. This is the suggested location by Google for the Google Analytics tracking code: https://support.google.com/analytics/answer/1008080 Also it is needed for easy site ownership verification in Google Search Console: https://support.google.com/webmasters/answer/35179 --- layouts/partials/head.html | 3 +++ layouts/partials/scripts.html | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2651fc97e..7c9f096fd 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -64,4 +64,7 @@ + + {{ template "_internal/google_analytics.html" . }} + diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 33d9762d6..af8cd382a 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,4 +1,3 @@ -{{ template "_internal/google_analytics.html" . }}