Free Download

Site Search

 

Top Download

Saturday, October 27, 2007

Record Mouse Movement


I just found some piece of code i created one or two years ago. The “movelogger” records the mouse movement a users does on a web site. Just before the user leaves the current page, the recorded data get posted back to the server using AJAX.
The cool thing is that you can “replay” these movements afterwards. The movelogger records clicks on links and other elements. In replay mode this events are fired in the exact same order as they have been recorded.
That way it would be possible to record a websesion (the click-flow) in a heavy AJAX based application. It would even be possible to record keyboard strokes and other type of events.

Check out the little demo of the movelogger here.

This technique may be usefull or not. But some use cases could be:

Instead of eye tracking, use mouse tracking.
Analyze the usage of ajax enabled websites.
Spionage and other Bad Things™ (not recommended).
The whole thing is coded in javascript using Prototype and script.aculo.us with some php code on the server side.

The data recorded on the demo website is stored only in the php session on the server and gets deleted automatically, soon after you close your browser. But theoreticaly it would be possible to store that data in some kind of database for further analysis.

Please let me know what you think about this. Do you have any ideas for other uses of this technique ?


No comments: