I\'m trying to use Google Analytics events to track time spent on site more accurately (without relying on delta time between visits to another page on site). I\'m using s
var count = 0;
setInterval(function(){
count = count + 5;
// increment "count" by 5 each time setInterval is run
ga('send', 'event', 'time', 'tracking', 'seconds', count);
}, 5000);