mirror of https://github.com/grpc/grpc.io.git
Analytics: use GA4 tag only (#1010)
This commit is contained in:
parent
ca6c811bd6
commit
888828e1c3
|
|
@ -1,5 +1,6 @@
|
|||
baseURL: https://grpc.io/
|
||||
disableKinds: [taxonomy, term]
|
||||
googleAnalytics: G-8H17ZWYV40
|
||||
|
||||
theme: [docsy]
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -1,5 +1,2 @@
|
|||
{{ if hugo.IsProduction -}}
|
||||
{{ partial "google-analytics.html" . -}}
|
||||
{{ end -}}
|
||||
{{ partial "meta.html" . -}}
|
||||
{{ partial "favicons.html" . -}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue