top | item 15744456

(no title)

piratebroadcast | 8 years ago

Whats a js library that would do this? Would love to put a demo up on my website to show the user.

discuss

order

throwawayjava|8 years ago

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.

mbb70|8 years ago

FullStory, LogRocket, HotJar and Mouseflow all fit the bill, the search term of choice appears to be "session replay".

saltedmd5|8 years ago

> For simple sites, probably faster to just implement it than find a library and read the docs.

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