From a32cc6e08e4a190e30b0d63a9524509afc967501 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 10 Feb 2014 00:04:40 +0200 Subject: [PATCH] Add Google Analytics --- js/90-ga.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 js/90-ga.js diff --git a/js/90-ga.js b/js/90-ga.js new file mode 100644 index 0000000..4c829f1 --- /dev/null +++ b/js/90-ga.js @@ -0,0 +1,11 @@ +var dnt = navigator.doNotTrack == "yes" || navigator.doNotTrack == "1" || navigator.msDoNotTrack == "1"; + +if(!dnt) { + (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-47497115-1', 'mindcoding.ro'); + ga('send', 'pageview'); +} -- 2.39.2