do not track localhost activity

This commit is contained in:
Chris Waring 2019-02-14 14:19:13 +00:00
parent 9a0d0eb481
commit 6416172d1b
No known key found for this signature in database
GPG Key ID: 4D2E767CC8B1C083

View File

@ -1,8 +1,10 @@
<!-- Google Analytics --> <!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-96910779-8"></script> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-96910779-8"></script>
<script> <script>
window.dataLayer = window.dataLayer || []; if (location.hostname !== 'localhost') {
function gtag(){dataLayer.push(arguments);} window.dataLayer = window.dataLayer || [];
gtag('js', new Date()); function gtag(){dataLayer.push(arguments);}
gtag('config', 'UA-96910779-8'); gtag('js', new Date());
</script> gtag('config', 'UA-96910779-8');
}
</script>