Filter out localhost analytics

This commit is contained in:
Marcus Noble 2018-02-04 14:22:15 +00:00
parent 599a5872b4
commit f771bb4960

View File

@ -44,9 +44,11 @@
<!-- Global site tag (gtag.js) - Google Analytics --> <!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-321884-1"></script> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-321884-1"></script>
<script> <script>
window.dataLayer = window.dataLayer || []; if (window.location.host.indexOf('marcusnoble.co.uk') >= 0) {
function gtag(){dataLayer.push(arguments);} window.dataLayer = window.dataLayer || [];
gtag('js', new Date()); function gtag(){dataLayer.push(arguments);}
gtag('config', 'UA-321884-1'); gtag('js', new Date());
gtag('config', 'UA-321884-1');
}
</script> </script>
</head> </head>