Analytics: use GA4 tag only (#1010)

This commit is contained in:
Patrice Chalin 2022-07-18 18:17:45 -04:00 committed by GitHub
parent ca6c811bd6
commit 888828e1c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 16 deletions

View File

@ -1,5 +1,6 @@
baseURL: https://grpc.io/
disableKinds: [taxonomy, term]
googleAnalytics: G-8H17ZWYV40
theme: [docsy]

View File

@ -1,13 +0,0 @@
{{ $ga4_id := "G-8H17ZWYV40" -}}
{{ $cnfc_id := "UA-163836834-2" -}}
{{ $google_id := "UA-60127042-1" -}}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ $ga4_id }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ $ga4_id }}');
gtag('config', '{{ $cnfc_id }}');
gtag('config', '{{ $google_id }}');
</script>

View File

@ -1,5 +1,2 @@
{{ if hugo.IsProduction -}}
{{ partial "google-analytics.html" . -}}
{{ end -}}
{{ partial "meta.html" . -}}
{{ partial "favicons.html" . -}}