javascript - Average Visit Duration spikes at midnight -
last thursday implemented change our ga script - added enhanced link attribution , added setdomainname attribute. since then, of our stats fine, average visit duration has gone insane.
we went averaging around 4mins/visit massive spikes every morning after midnight of visit times exceeding 2 hours. figure must did wrong, started going out of control same hour deployed change.
i don't want flail making changes on production until can figure out cause - or suggestions appreciated.
hourly analytics average visit duration:
the current ga script
var _gaq = _gaq || []; var pluginurl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js'; _gaq.push(['_require', 'inpage_linkid', pluginurl]); _gaq.push(['_setcustomvar', 1, 'locale', 'en_ca', 2]); _gaq.push(['_setaccount', 'redacted']); _gaq.push(['_setsitespeedsamplerate', 10 ]); _gaq.push(['_setdomainname', 'redacted']); _gaq.push(['_trackpageview']); (function() { var ga = document.createelement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getelementsbytagname('script')[0]; s.parentnode.insertbefore(ga, s); })();
just guess time zone related bug.
try change time zone ga account , see if changes report.
Comments
Post a Comment