From 4fa4fc0f67cf5fc1dc7983a7d1c0be939c79db9b Mon Sep 17 00:00:00 2001 From: Miguel Puerta Date: Fri, 8 Dec 2023 15:44:35 +0100 Subject: [PATCH] feat: adds google analytics --- hugo.toml | 1 + themes/hello-friend/layouts/partials/head.html | 3 +++ 2 files changed, 4 insertions(+) diff --git a/hugo.toml b/hugo.toml index 4e8bafe..b73e017 100644 --- a/hugo.toml +++ b/hugo.toml @@ -3,6 +3,7 @@ languageCode = "en-us" theme = "hello-friend" paginate = 5 publishDir = "src/public" +googleAnalytics = "G-XLN4KF6SDM" [params] contentTypeName = "posts" diff --git a/themes/hello-friend/layouts/partials/head.html b/themes/hello-friend/layouts/partials/head.html index 8303056..7e933d1 100644 --- a/themes/hello-friend/layouts/partials/head.html +++ b/themes/hello-friend/layouts/partials/head.html @@ -1,3 +1,6 @@ + +{{ template "_internal/google_analytics.html" . }} +{{ template "_internal/google_analytics_async.html" . }}