Recording user data for heatmap with javascript

Posted by Hanpan on Stack Overflow See other posts from Stack Overflow or by Hanpan
Published on 2010-03-22T22:37:21Z Indexed on 2010/03/22 22:41 UTC
Read the original article Hit count: 431

Filed under:
|

Hi,

I was wondering how sites such as crazyegg.com store user click data during a session. Obviously there is some underlying script which is storing each clicks data, but how is that data then populated into a database? It seems to me the simple solution would be to send data via AJAX but when you consider that it's almost impossible to get a cross browser page unload function setup, I'm wondering if there is perhaps some other more advanced way of getting metric data.

I even saw a site which records each mouse movement and I am guessing they are definitely not sending that data to a database on each mouse move event.

So, in a nutshell, what kind of technology would I need in order to monitor user activity on my site and then store this information in order to create metric data? I am not looking to recreate GA, I'm just very interested to know how this sort of thing is done.

Thanks in advance

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about metrics