From 20a715a1466c22a369ec970ebc6c3132b1e64305 Mon Sep 17 00:00:00 2001 From: Maik de Kruif Date: Wed, 2 Dec 2020 21:17:13 +0100 Subject: [PATCH] Add google analytics --- config.toml | 2 ++ themes/maik-blog/layouts/partials/head.html | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index be5741b..11ffd39 100644 --- a/config.toml +++ b/config.toml @@ -33,6 +33,8 @@ disableSitemap = false disable404 = false disableHugoGeneratorInject = false +googleAnalytics = "UA-136337666-1" + [permalinks] posts = "/posts/:year/:month/:title/" diff --git a/themes/maik-blog/layouts/partials/head.html b/themes/maik-blog/layouts/partials/head.html index 76d327c..6db0d01 100644 --- a/themes/maik-blog/layouts/partials/head.html +++ b/themes/maik-blog/layouts/partials/head.html @@ -64,4 +64,6 @@ {{ if .OutputFormats.Get "json" }} -{{ end }} \ No newline at end of file +{{ end }} + +{{ template "_internal/google_analytics_async.html" . }} \ No newline at end of file