Merge pull request #9 from qoomon/develop

fix ga
This commit is contained in:
Bengt Brodersen 2015-01-28 02:12:08 +01:00
commit 1ea6982269

View File

@ -1,4 +1,4 @@
version = "3.1.10"; version = "3.1.12";
console.log("Version: " + version); console.log("Version: " + version);
var isDev = typeof isDev === 'undefined' || isDev ; var isDev = typeof isDev === 'undefined' || isDev ;
@ -19,12 +19,13 @@ cors = "https://cors-anywhere.herokuapp.com/";
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 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'); })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-50840116-3', 'auto', {'alwaysSendReferrer': true}); ga('create', 'UA-50840116-3', {'alwaysSendReferrer': true});
ga('set', 'location', window.location.protocol + '//' + window.location.host + window.location.pathname);
ga('set', 'hostname', window.location.hostname);
ga('set', 'page', '/cardprinter'); ga('set', 'page', '/cardprinter');
ga('set', 'title', document.title); //ga('set', 'referrer', window.location.hostname);
ga('set', 'referrer', window.location.hostname); //ga('set', 'location', window.location.protocol + '//' + window.location.host + window.location.pathname);
//ga('set', 'hostname', window.location.hostname);
//ga('set', 'title', document.title);
//ga('set', 'campaignSource', '(direct)'); //ga('set', 'campaignSource', '(direct)');
//ga('set', 'campaignMedium', '(none)'); //ga('set', 'campaignMedium', '(none)');
// </GoogleAnalytics> // </GoogleAnalytics>