I am mainly using Xerte Online Toolkits object inserted into a Moodle classroom on a hosted linux server. I want to be able to track the users' keystrokes and time how long they spend on each screen. For example, I want to make a navigator connection page update my database with a note about what connector page option button they clicked on first. Knowing this keystroke history makes it a whole lot easier to figure out how to help them regain fiscal stability.
Preferred method: Where do I look in the XOT code to figure out where to insert a custom, new database record's save call that updates my central mysql database?
Alternatively, if I should customize a toolkit page using Xerte desktop, how do I pull the Online Toolkit lesson object down locally into Xerte, then customize that lesson object by embeding a PHP mysql call and a PHP timer function into that page and upload it back up to the server's Xerte Online Toolkits and/or Moodle framework?