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