diff --git a/config.yaml b/config.yaml index edd6d3216..85044b28f 100644 --- a/config.yaml +++ b/config.yaml @@ -3,6 +3,7 @@ disableKinds: [taxonomy, taxonomyTerm] theme: [docsy] disableAliases: true # We do redirects via Netlify's _redirects file enableGitInfo: true +googleAnalytics: G-QZHM7YEG07 # Language settings enableMissingTranslationPlaceholders: true @@ -54,7 +55,6 @@ params: github_repo: https://github.com/open-telemetry/opentelemetry.io github_branch: main gcs_engine_id: bde3d634eca9cd335 - googleAnalytics: [G-QZHM7YEG07, UA-154693307-1] ui: footer_about_disable: true diff --git a/layouts/partials/google-analytics.html b/layouts/partials/google-analytics.html deleted file mode 100644 index d6fce01a3..000000000 --- a/layouts/partials/google-analytics.html +++ /dev/null @@ -1,16 +0,0 @@ -{{/* Global site tag (gtag.js) - Google Analytics */ -}} - -{{ with .Site.Params.GoogleAnalytics -}} - -{{ $ga_ids := . -}} - - - -{{- end -}} diff --git a/layouts/partials/hooks/head-end.html b/layouts/partials/hooks/head-end.html deleted file mode 100644 index a8142b8e4..000000000 --- a/layouts/partials/hooks/head-end.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ if hugo.IsProduction -}} - {{ partial "google-analytics.html" . -}} -{{ end -}}