1
0
Fork 0

Fix GA tracking

This commit is contained in:
Daniel Kempkens 2014-03-27 22:14:13 +01:00
parent 223792cda9
commit a36257a7c7

View file

@ -10,18 +10,9 @@
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
(function() { (function() {
var linkerOptions = {{ site.google_analytics_linker | jsonify }};
var host = window.location.host; var host = window.location.host;
if (linkerOptions !== null) {
ga('create', '{{ site.google_analytics }}', host, 'auto', {
'allowLinker': true
});
ga('require', 'linker');
ga('linker:autoLink', linkerOptions[host]);
} else {
ga('create', '{{ site.google_analytics }}', host); ga('create', '{{ site.google_analytics }}', host);
}
ga('send', 'pageview'); ga('send', 'pageview');
})(); })();
</script> </script>