Re:0 second visits according to Google Analytics
by dangrossman on Sunday May 12, 2013 @02:03PM
(#5695173)
Everyone does do so already (though not necessarily with websockets; occasional pings are sufficient and more widely supported). Google Analytics has a real-time dashboard. So do most web analytics platforms these days.
[ Parent
| on HN ]
Re:0 second visits according to Google Analytics
by shurcooL on Sunday May 12, 2013 @02:06PM
(#5695182)
How do you ping a browser? Where can I find more info about this.
I figured the real-time dashboard of Google Analytics must be doing something similar, but I don't know what exactly they use.
Re:0 second visits according to Google Analytics
by dangrossman on Sunday May 12, 2013 @02:08PM
(#5695191)
The browser pings the server.
setInterval(function() {
$.ajax('http://analytics-site.com/ping?page=' + window.location.href);
}, 5000);
Re:0 second visits according to Google Analytics
by shurcooL on Sunday May 12, 2013 @02:09PM
(#5695203)
Ah, makes sense, thanks.
Re:0 second visits according to Google Analytics
by brokentone on Sunday May 12, 2013 @02:27PM
(#5695266)
GA realtime does not differ in tracking methodology, it uses the same onload beacon, just like the long-tail reporting.