added google analytics

This commit is contained in:
Ellpeck 2019-10-20 01:32:46 +02:00
parent d8f6a4b894
commit a37793537a

View file

@ -29,6 +29,18 @@
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/prettify.js"></script> <script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/prettify.js"></script>
<script src="scripts/main.js"></script> <script src="scripts/main.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-150032076-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
let gtag = function () {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-150032076-2');
</script>
</head> </head>
<body data-spy="scroll" data-target="#navbar"> <body data-spy="scroll" data-target="#navbar">