Skip to content

Commit 64533fb

Browse files
authored
Analytics: configure both GA4 and UA IDs explicitly (open-telemetry#1525)
1 parent 66e89a6 commit 64533fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

layouts/partials/google-analytics.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{{ $ua_id := "UA-154693307-1" -}}
44
{{ $ga4_id := "G-QZHM7YEG07" -}}
5-
{{ $ga_id := $ua_id -}}
5+
{{ $ga_id := $ga4_id -}}
66

77
<script async src="https://www.googletagmanager.com/gtag/js?id={{ $ga_id }}"></script>
88
<script>
@@ -11,5 +11,6 @@
1111
gtag('js', new Date());
1212

1313
gtag('config', '{{ $ga_id }}');
14+
gtag('config', '{{ $ua_id }}');
1415
</script>
1516
{{- /**/ -}}

0 commit comments

Comments
 (0)