mixpanel-mxit
Mixpanel analytics for express applications catering to the mxit mobi web api.
Getting Started
Install the module with: npm install mixpanel-mxit
var mixpanel_mxit = ;app; /* Or with optional error callback: */app;
The only error defined right now is:
number: 0 message: 'Header missing: x-mxit-userid-r, probably not a real mxit request'
Documentation
This is a simple connect (express) style middleware to log mxit user information to mixpanel, it includes all the headers available in each request:
- 'x-device-user-agent'
- 'x-mxit-contact'
- 'x-mxit-nick'
- 'x-mxit-profile'
- 'x-mxit-location'
Important note
This library has never been used in production and the tests while looking awesome do not actually test what is being sent to mixpanel. The code does appear to work and in my limmited testing I havn't encountered anything unexpected.
TODO
Implement an optional increment to the people.requests variable per request. Full out tests so that the actual data going to mixpanel is tested.
Examples
(Coming soon)
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt. Please write tests for any changes and make sure they pass :)
grunt nodeunit
Release History
- v0.0.1 - Basic functionality and tests. Never been used in production.
License
Copyright (c) 2013 Pierre Hugo
Licensed under the MIT license.