From 9a946495a14629fb24c4fe87d02fa72e3c8d0a95 Mon Sep 17 00:00:00 2001 From: Maik de Kruif Date: Sun, 6 Dec 2020 14:43:40 +0100 Subject: [PATCH] Move Google Analytics to gtag.js --- themes/maik-blog/layouts/partials/head.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/themes/maik-blog/layouts/partials/head.html b/themes/maik-blog/layouts/partials/head.html index 6db0d01..ea17ad6 100644 --- a/themes/maik-blog/layouts/partials/head.html +++ b/themes/maik-blog/layouts/partials/head.html @@ -66,4 +66,17 @@ type="application/json" title="{{ .Site.Title }}" /> {{ end }} -{{ template "_internal/google_analytics_async.html" . }} \ No newline at end of file +{{ if .Site.GoogleAnalytics }} + + + +{{ end }} \ No newline at end of file