https://github.com/peekbehind/peekbehind-ghost-recorder
PeekBehind Recorder records a ghost of user activity in a web page.
Run the unit tests by opening the files in the tests/ folder in a browser and read the source code and comments to get familiar with the implementation in the code/ folder.
You can then customize the implementation, for example adding your own function to submit recorded data to your server.
JavaScript, HTML
Eric Bréchemier
http://eric.brechemier.name
for
PeekBehind.com
http://peekbehind.com
MIT License for the code and documentation
LICENSE.txt