A tiny library to track browser events. The code is primarily from turkey, with just minor adaptations to make it work outside Amazon Mechanical Turk.
You can build the library by running build.sh
, and you are ready to import builds/tracker.js
and use the registered auditors in your frontend code.
Add the following line to setup the library (once imported)
requestAnimationFrame(setupTracker);
once set, the library automatically starts listening for events, you can obtain a snapshot by
window.auditor.dump()