1

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

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
jimeh
  • 1,391
  • 1
  • 16
  • 32

2 Answers2

1

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

Aron Rotteveel
  • 81,193
  • 17
  • 104
  • 128
0

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
  • 3,954
  • 3
  • 23
  • 29