views:

235

answers:

2

I need a Javascript which monitors keyboard and mouse events to track how much time a user spends on the page. Specifically, actively using the page by typing, or moving/clicking with the mouse.

Thought I'd ask if anybody knows of something that might work for me to save some time. Otherwise, Javascript and Aspirin here I come... lol

A: 

Theoretically all DOM elements can react on events like onClick, onMouseOver, onKeyPress etc. From a whole page down to each element. I would start that way, with any JavaScript library you like.

Janko Mivšek
+1  A: 

Example of recording mouse movement: http://pure.rednoize.com/movelogger/

Aron Rotteveel