How to disable mouse movements in session recording?


(yaniv) #1

Hi,
My question is about Session recording plugin:

Is it possible to disable mouse movement recording without disable the “capture keystroke” ?


(Lukas Winkler) #2

Hi,

So if I understand you correctly, you want to track only keyboard events? Or also clicks?


(yaniv) #3

Hi,

Only keyboard events and clicks.
No mouse movements.


#4

We have added a new method to do this. You can view the documentation already here: Document new methods to disable the recording of mouse movements by tsteur · Pull Request #250 · matomo-org/developer-documentation · GitHub

Basically, you only need to call this JS as part of your tracking code:

_paq.push(['HeatmapSessionRecording::disableRecordMovements']);

(yaniv) #5

Great, I’ll try it.
10x