Filter out localhost analytics
This commit is contained in:
parent
599a5872b4
commit
f771bb4960
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user