Display Cookie Disclaimer & Add Analytics

Display the cookie disclaimer to visitors. Add analytics to the site
unless the user has Do Not Track enabled.
This commit is contained in:
Cøbra 2015-10-12 18:10:24 +01:00
parent 550ff42390
commit 67bbe0ca12
2 changed files with 19 additions and 0 deletions

6
js/analytics.js Normal file
View file

@ -0,0 +1,6 @@
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(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('send', 'pageview');