diff --git a/config.toml b/config.toml index 4d565878..e83ef46e 100644 --- a/config.toml +++ b/config.toml @@ -46,7 +46,7 @@ anchor = "smart" [services] [services.googleAnalytics] -# Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback]. +# Comment out the id to disable the feature described in [params.ui.feedback]. # This ID can be found in Google Analytics -> Admin Panel -> Data Streams -> Spinnaker Website - GA4 -> Measurement ID id = "G-H0XE7ESBFR" @@ -96,6 +96,10 @@ copyright = 'Copyright © 2020 The Linux Foundation®. All rights reserved. The privacy_policy = "http://www.linuxfoundation.org/privacy" terms_of_use = "http://www.linuxfoundation.org/terms" +# Comment out the next line to disable GA tracking. +# This Tag ID can be found in Google Analytics -> Admin Panel -> Data Streams -> Spinnaker Website - GA4 -> Configure Tag Settings +google_tag_id="GT-W6BN9SN" + # First one is picked as the Twitter card image if not set on page. # images = ["images/project-illustration.png"] diff --git a/layouts/partials/google-analytics.html b/layouts/partials/google-analytics.html new file mode 100644 index 00000000..746b2dd7 --- /dev/null +++ b/layouts/partials/google-analytics.html @@ -0,0 +1,8 @@ + + + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index bf46d814..763a8442 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -13,9 +13,6 @@ {{- template "_internal/google_news.html" . -}} {{- template "_internal/schema.html" . -}} {{- template "_internal/twitter_cards.html" . -}} - {{ if eq (getenv "HUGO_ENV") "production" }} - {{ template "_internal/google_analytics.html" . }} - {{ end }} {{ partialCached "head-css.html" . "asdf" }}