diff --git a/web/app/assets/javascripts/ga.js b/web/app/assets/javascripts/ga.js index 3ff2c28b8..68a6c629a 100644 --- a/web/app/assets/javascripts/ga.js +++ b/web/app/assets/javascripts/ga.js @@ -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)