From c6e50979d2840abdf85bbcb3951e561a4fd100f0 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Tue, 16 Aug 2022 07:19:08 -0400 Subject: [PATCH] Google analytics: use GA4 site tag --- config.toml | 3 +-- layouts/partials/head.html | 13 +------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/config.toml b/config.toml index 5f57ed32488..f00c26b36eb 100644 --- a/config.toml +++ b/config.toml @@ -117,8 +117,7 @@ anchor = "smart" [services] [services.googleAnalytics] -# Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback]. -id = "UA-00000000-0" +id = "G-JPP6RFM2BP" [params] copyright_k8s = "The Kubernetes Authors" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ccfb47f8f1c..b9ab93d3648 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,17 +6,6 @@ {{- else -}} {{- end -}} -{{- if in (slice "production" "nonprod") hugo.Environment -}} - - - -{{- end -}} {{ range .Translations -}} @@ -36,7 +25,7 @@ {{- template "_internal/schema.html" . -}} {{- template "_internal/twitter_cards.html" . -}} {{- if hugo.IsProduction -}} -{{ template "_internal/google_analytics_async.html" . }} +{{ template "_internal/google_analytics.html" . }} {{ end }} {{ partialCached "head-css.html" . "asdf" }}