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
Not sure if I gather this correctly, but we can do this like:
var count = 0,interval=5000;
setInterval(function(){
// increment "count" by 5 each time setInterval is run
ga('send', 'event', 'time', 'tracking', 'seconds', count+interval);
}, interval);