summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2022-11-14 11:39:19 +0200
committerYuval Adam <_@yuv.al>2022-11-14 11:39:19 +0200
commit615db86bea582f9219487bf98aea2e516186b80b (patch)
tree4b5d2e764985e2083e7ab4a02c57f8bb3db7b461 /src
parentaeb5ee41de34128548a7cff074b97ea7dba3fd16 (diff)
Update GA4
Diffstat (limited to 'src')
-rw-r--r--src/index.html12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/index.html b/src/index.html
index bfa05de..5ddd550 100644
--- a/src/index.html
+++ b/src/index.html
@@ -12,14 +12,12 @@
<meta name="author" content="Yuval Adam">
<link rel="canonical" href="https://cidr.xyz">
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-31LHNP2G97"></script>
<script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
- ga('create', 'UA-71263113-1', 'auto');
- ga('send', 'pageview');
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+ gtag('config', 'G-31LHNP2G97');
</script>
</head>
<body>