how to record user's interaction?

hi there. i need to record user’s interaction pattern and send it to my mail. how to do it? example when user click a button or GUI it will be recorded in excell document or notepad( user pressed A ) then document will be automatically sent to my mail after the user quit application.

I’m keen to see what other members post here, but I shall give a completely off-the-wall answer. You can log statistics and send information from your game to a Playtomic account. Apart from that, what you are asking is pretty much classed as spyware, and that is not cool.

You can have every action the user does write to an .xml document, but you need an external program to do emailing. That might require the professional edition of unity.