mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-19 15:43:49 +02:00
Migrate from UA -> GA4
This commit is contained in:
@@ -2,16 +2,12 @@
|
||||
---
|
||||
|
||||
<script src='./analytics.ts'></script>
|
||||
<script async src='https://www.googletagmanager.com/gtag/js?id=UA-139582634-1'
|
||||
></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-EZHDT2S2LF"></script>
|
||||
<script is:inline>
|
||||
// @ts-nocheck
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
// @ts-nocheck
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-139582634-1');
|
||||
</script>
|
||||
gtag('config', 'G-EZHDT2S2LF');
|
||||
</script>
|
Reference in New Issue
Block a user