Giter Site home page Giter Site logo

chronos-project / chronos-tracker Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 0.0 100 KB

An automated tracker system for the Chronos framework

License: MIT License

JavaScript 100.00%
javascript nodejs tracking tracker event-processing analytics-tracking analytics browserify

chronos-tracker's Introduction

chronos-logo

chronos chronos version license

Overview

Chronos is an event-capturing framework for greenfield applications and is built with NodeJS, Apache Kafka, TimescaleDB, and PipelineDB. This repository contians the tracker file which captures events on the client side and sends them to the data pipeline. You can read about our story of creating Chronos here.

Installation

To build the tracker file you must have NodeJS and npm installed on your machine. Inside the root directory of the repository there is a config.json file. The properties are as follows:

Property Value Type Description
queueSize Number (Integer) Determines the maximum number of events that the buffer holds
errorHandling Boolean Detemines whether or not to handle errors on the client side. Will use the BeaconAPI if false, FetchAPI if true
linkClicks Boolean Determines whether or not to capture link click events
clicks Boolean Determines whether or not to capture mouse click events
pageviews Boolean Determines whether or not to capture pageview events
mousemoves Boolean Determines whether or not to capture mouse movement events
formSubmits Boolean Determines whether or not to capture form submission events
keypress Boolean Determines whether or not to capture key press events

We recommend using the defaults. Once the config.json file is set, go to the queue.js file in the src directory. On line 3, you must change the API_URL variable so that it points to your API server. Further, on line 26, make sure the value of the ACCESS_KEY property matches that on your API server as well.

Once this is done, from the root directory first install the dependencies and then run npm run build. The compiled tracker.js file will be in the javascripts directory. At this point just import the file into any pages that you need to track data, and events will automatically be captured and sent to the server!

The Team

Nick Calibey Software Engineer Tulsa, OK

Sasha Prodan Software Engineer San Francisco, CA

chronos-tracker's People

Contributors

naveed-fida avatar ncalibey avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.