Re:0 second visits according to Google Analytics
by dhimes on Sunday May 12, 2013 @01:58PM
(#5695140)
I have many tabs open that I'm not actually "on." I just took a shower and left HN open, for example. Can it detect that the tab is "active" or "focus?" That may help. But I'm not sure this is a problem worth a ton of work. It's, at best, a proxy for measuring things like interest.
[ Parent
| on HN ]
Re:0 second visits according to Google Analytics
by bsimpson on Sunday May 12, 2013 @02:06PM
(#5695188)
document.addEventListener('visibilitychange', onVisibilityChange);
Re:0 second visits according to Google Analytics
by shurcooL on Sunday May 12, 2013 @02:02PM
(#5695167)
Yeah, as you say, even if it just tells if a tab is open (active or inactive), that's already a good measure of interest.
But I think it may be possible to determine if the current tab is open with some javascript, and send that information through the websocket. Edit: what bsimpson said.