Config - analytics (#130)

* Config - Update analytics

* Config - Enable analytics IP anonymization
This commit is contained in:
thephez 2019-05-20 12:08:22 -04:00 committed by GitHub
parent e98d344734
commit 85f779bfc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -30,6 +30,7 @@ http://opensource.org/licenses/MIT.
}
</script>
<script type="text/javascript" src="/js/cookieconsent/cookieconsent.js"></script>
-->
<script>
if( navigator.doNotTrack != "yes" && navigator.doNotTrack != "1" && window.doNotTrack != "1" && navigator.msDoNotTrack != "1" ){
var script = document.createElement('script');
@ -37,4 +38,3 @@ if( navigator.doNotTrack != "yes" && navigator.doNotTrack != "1" && window.doNot
document.getElementsByTagName("head")[0].appendChild(script);
}
</script>
-->

View file

@ -4,7 +4,8 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46627233-1', 'auto');
ga('create', 'UA-118991016-3', 'auto');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
/* jshint ignore:end */