* fix navigation timings

This commit is contained in:
Seth Call 2015-05-28 13:57:07 -05:00
parent de4411fbdd
commit 90dbb395bd
1 changed files with 3 additions and 1 deletions

View File

@ -303,11 +303,13 @@
};
logger.debug("page load time: " + computed.frontEnd)
context._.each(computed, function (key, value) {
context._.each(computed, function (value, key) {
if (value > 0 && value < 60000) {
console.log("key, value", key, value)
context.ga("send", "timing", "NavigationTiming", key, value);
}
})
context.stats.write('web.timing.navigation', computed)
}
catch(e) {
logger.error("loading times failed in ga.js", e)