From 5405c604dce58d867cba7839a273ae69551c49fb Mon Sep 17 00:00:00 2001 From: Mitchell Cash Date: Sat, 31 Oct 2015 21:08:13 +1000 Subject: [PATCH] Visitors that have Do Not Track enabled are not tracked Fixes point 3 in Issue #30 --- index.html | 12 ++++-------- js/analytics.js | 7 +++++++ 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 js/analytics.js diff --git a/index.html b/index.html index 7d6d1d3..5f5fb71 100644 --- a/index.html +++ b/index.html @@ -427,15 +427,11 @@

Useful sites

+ diff --git a/js/analytics.js b/js/analytics.js new file mode 100644 index 0000000..13235e6 --- /dev/null +++ b/js/analytics.js @@ -0,0 +1,7 @@ +(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-69138554-1', 'auto'); +ga('send', 'pageview');