This is our JS tracking library that we use to define and send events to Backtrack. Backtrack then forwards the events to Mixpanel.
It's available from the rest of Polecat under an alias '@Tracking'
.
The main reason we have this library is to add order to our Mixpanel events. For that reason events are defined with a schema. The properties dispatched with events are then validated against the schema in Backtrack before being forwarded to Mixpanel.