Skip to content

Commit 2081133

Browse files
authored
Remove Universal Analytics tracking (#2921)
* Remove Universal Analytics tracking This commit should be merged in once we are ready to fully move away from Universal Analytics. The Google Analytics 4 tracking codes are already in place from the work on #2917. This commit just removes Universal Analytics Closes #2916 * Use staging GA4 instead of UA With removing Universal Analytics, we can have the default one be the staging environment
1 parent b2c1d3f commit 2081133

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

webapp/templates/_ga.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{{- /* no data */ -}}
22
<!-- Global site tag (gtag.js) - Google Analytics -->
3-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-89387706-1"></script>
3+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-R9Z49K7QCN"></script>
44
<script>
55
window.dataLayer = window.dataLayer || [];
66
function gtag(){dataLayer.push(arguments);}
77
gtag('js', new Date());
88

9-
// TODO: Remove when ready to move away from Universal Analytics
10-
gtag('config', 'UA-89387706-1');
11-
129
// Configure Google Analytics 4
1310
// TODO: Look into using Google Tag Manager
1411
// https://github.com/web-platform-tests/wpt.fyi/issues/2919

0 commit comments

Comments
 (0)