Skip to content

Commit b9e4d8e

Browse files
committed
refactor(website): update ga
1 parent 0f810e8 commit b9e4d8e

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

index.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@
3131
<link
3232
rel="stylesheet"
3333
href="style.css">
34+
<!-- Global site tag (gtag.js) - Google Analytics -->
35+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-42732947-3"></script>
3436
<script>
35-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
36-
(i[r].q=i[r].q||[]).push(arguments)
37-
},i[r].l=1*new Date();a=s.createElement(o),
38-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
39-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
37+
window.dataLayer = window.dataLayer || [];
38+
function gtag(){dataLayer.push(arguments);}
39+
gtag('js', new Date());
4040

41-
ga('create', 'UA-42732947-3', 'auto');
42-
ga('send', 'pageview');
41+
gtag('config', 'UA-42732947-3');
4342
</script>
4443
</head>
4544
<body>

0 commit comments

Comments
 (0)