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