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