https://github.com/jorgeramirez/tracker
A tiny library to track browser events for behavior analysis
https://github.com/jorgeramirez/tracker
Last synced: about 1 month ago
JSON representation
A tiny library to track browser events for behavior analysis
- Host: GitHub
- URL: https://github.com/jorgeramirez/tracker
- Owner: jorgeramirez
- License: mit
- Created: 2020-12-10T20:54:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-10T21:00:37.000Z (over 4 years ago)
- Last Synced: 2025-01-26T14:48:45.293Z (3 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Audit: auditors/clicks_specific.js
Awesome Lists containing this project
README
# tracker
A tiny library to track browser events. The code is primarily from [turkey](https://github.com/CuriousG102/turkey), with just minor adaptations to make it work outside Amazon Mechanical Turk.
## Build & Usage
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)
```javascript
requestAnimationFrame(setupTracker);
```once set, the library automatically starts listening for events, you can obtain a snapshot by
```javascript
window.auditor.dump()
```