Hacker News new | ask | show | jobs
by AlexC04 5428 days ago
neat. I wish I had a bit more time to play with your TOS gist. Unfortunately, I just skipped my morning workout to get what I got in the comment there, and now have to run off to work. (boo)

Oh well... that's why they call it a gist right? :) I think focus and blur events on the document or window are key to getting "perfect" TOS. Just have to think about how to make it most efficient ... I prefer doing away with the timer and just sending the data once in the UNLOAD event.

There's peril to that (browser crashes?) and maybe the 10 second 'tick' is better.

Dunno. I really have to go now. Breakfast! Starving.

1 comments

Yeah the timer is a bit crude, working on a better script which considers an interaction as a click, scroll, or keydown and sends minimal events to GA.