A small wrapper around analytics APIs
npm install wizanalyticsThis component is a wrapper around different analytics APIs
So far we support the following:
- Mixpanel
- Localytics
- Flurry
An extra API called "analog" is there for debugging purpose if you wanna see what you are supposed to log.
You'll need to register the APIs you wanna use to send logs to them
``javascript`
var analytics = require('analytics');
analytics.register(require('mixpanel'), 'your_token', config);
`javascript`
analytics.freeze(userId, { age: 21, sex: 'm' });
javascript
analytics.send('player.levelUp', { level: 5 });
`Track view change
Some APIs support specifically view changes.
If not it will log as a regular events.
`javascript
analytics.screen('viewName');
``