Skip to content

ReLauncher/behavior-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Behavior Tracker


What this is for?

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.

Setup

  1. create a bucket at firebase
  2. 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>

TRACK

  1. Go to console.firebase.google.com/project/YOUR_FIREBASE_BUCKET_NAME/database/data/ and browse users behavior in real time
  2. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published