I did this in like 2005. I don't recall it taking more than an hour. For simple sites, probably faster to just implement it than find a library and read the docs.
Collection is easy. Just capture every key even and read the location of the the mouse in a sufficiently tight loop. Timestamp everything, bunch it and send it to the server on a regular interval. You can do it in 10ish lines of JavaScript.
Playback is the hard part, depending on your infrastructure. But if your site is simple enough you don't even need a library; just load up the page the user was on and play back the data.
I'd be surprised if there isn't already a Dropbox company out there going the final 20% on this "just rsync it" comment though.
throwawayjava|8 years ago
Collection is easy. Just capture every key even and read the location of the the mouse in a sufficiently tight loop. Timestamp everything, bunch it and send it to the server on a regular interval. You can do it in 10ish lines of JavaScript.
Playback is the hard part, depending on your infrastructure. But if your site is simple enough you don't even need a library; just load up the page the user was on and play back the data.
I'd be surprised if there isn't already a Dropbox company out there going the final 20% on this "just rsync it" comment though.
mbb70|8 years ago
saltedmd5|8 years ago
Not really - the implementation flow for tools that do this sort of thing are typically:
1. Register account 2. Dump JS snippet into page 3. Start watching live user sessions