Behavior Tracker logs users activity (key presses, mouseclicks, tab visibility) on your website, so that you can view it in realtime on Firebase or download in .CSV format and analyse locally.
- create a bucket at firebase
- integrate with your website:
<script src="https://relauncher.github.io/behavior-tracker/logger.js"></script>
<script>
BT.init({
firebase_bucket: "YOUR_FIREBASE_BUCKET_NAME",
page_id: "ID_OF_CURRENT_PAGE_YOU_TRACK",
unit_id:"OPTIONAL_ID_OF_CURRENT_DATAITEM",
user_id: "OPTIONAL_ID_OF_CURRENT_USER"
});
</script>
- Go to console.firebase.google.com/project/YOUR_FIREBASE_BUCKET_NAME/database/data/ and browse users behavior in real time
- Download .csv files with logs:
cd csv_generator
npm install requestify
.generate_logs.sh https://YOUR_FIREBASE_BUCKET.firebaseio.com/YOUR_WEBSITE YOUR_PAGE_ID