Well, i had a similar necessity, so i would suggest:
1- fill an Array object with any Mouse event that you want to track;
2 - save this Array by either user Gamesaves or Localstorage, in this way it is possibile to restore it when the app loads a second time;
3 - send this "event log" to a web service on a public server using JSON, this way you don't need to ask the user to save a file on his system and send it to you.
All of the bold words are C2 objects or plugins to use