I have a script in a custom Theme that tracks the user's mouse movement while he is answering a question.
Each question is displayed as a separate page.
I then store all this data in the Limesurvey database in custom tables.
If i had access to the QID i could store it alongside the movement data, making a query like "get all movements for question 2" very simple.