Track / record mouse movement, clicks, etc. and export it

Hey everyone!

Is there a way or maybe an Addon that makes it possible to track / record every mouse movement, click etc. a user dose and export it? I don’t want to make a video. I want all the information exported maybe as an csv file.

In my example I’ve got an interior scene. The user is able to change the floor and some interior. After he was playing around I need the information wich floors he choosed and how long every floor was active. This are just the basic information. If it is possible I wannt much more informations in a format that makes it possible to do some statistics.

Thanks to everyone for help and best regards!