feat: upgrade Google Analytics to gtag.js
This commit is contained in:
parent
9be473b033
commit
5bdb7051c0
1 changed files with 11 additions and 9 deletions
20
index.html
20
index.html
|
|
@ -4,6 +4,17 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Caesar Schinas</title>
|
<title>Caesar Schinas</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-837569-4"></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'UA-837569-4');
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="icon" type="image/jpeg" sizes="500x500" href="./images/caesar.jpg" />
|
<link rel="icon" type="image/jpeg" sizes="500x500" href="./images/caesar.jpg" />
|
||||||
<link rel="icon" type="image/webp" sizes="500x500" href="./images/caesar.webp" />
|
<link rel="icon" type="image/webp" sizes="500x500" href="./images/caesar.webp" />
|
||||||
<link href="https://fonts.googleapis.com/css?family=Gentium+Basic&subset=latin-ext" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Gentium+Basic&subset=latin-ext" rel="stylesheet">
|
||||||
|
|
@ -66,14 +77,5 @@
|
||||||
document.getElementById('contact').appendChild(li);
|
document.getElementById('contact').appendChild(li);
|
||||||
})();
|
})();
|
||||||
</script>
|
</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','https://www.google-analytics.com/analytics.js','ga');
|
|
||||||
|
|
||||||
ga('create', 'UA-837569-4', 'auto');
|
|
||||||
ga('send', 'pageview');
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue