Asynchronous event tracking for Mixpanel using Celery
Python Shell
Latest commit 1075a5a Jan 2, 2016 @agriffis agriffis Merge pull request #34 from brad/py3-rebased
support python 3, django 1.8
Permalink
Failed to load latest commit information.
docs feat(pt): add ignore_time param for PeopleTracker Mar 31, 2014
mixpanel support python 3, django 1.8 Dec 31, 2015
requirements support python 3, django 1.8 Dec 31, 2015
scripts
testproj
.gitignore don't check in .egg-info directory Sep 23, 2013
.travis.yml support python 3, django 1.8 Dec 31, 2015
AUTHORS
CHANGELOG.rst
LICENSE Initial commit with project cruft stuff and some documentation Feb 1, 2010
MANIFEST.in
README.md Enable Python syntax highlighting Jan 6, 2015
pypi_description.rst Add an RST description for pypi May 22, 2013
setup.py support python 3, django 1.8 Dec 31, 2015
tox.ini support python 3, django 1.8 Dec 31, 2015

README.md

mixpanel-celery

Asynchronous event tracking for Mixpanel

Build Status

mixpanel-celery helps you use Celery to asynchronously track your Mixpanel events. Waiting on HTTP requests to Mixpanel's api to complete every time you want to record something slows you down. Using mixpanel-celery gives you all of the Mixpanel goodness without any of the potential performance impact.

Works wherever Celery works

mixpanel-celery works great with Django, but because Celery works with just python, so does mixpanel-celery.

But how do I do the thing?

I'll tell you how! Have Celery running and want to asynchronously track an event? Is your event called my_event? You're in luck!

from mixpanel.tasks import EventTracker

EventTracker.delay(
    'my_event',
    {'distinct_id': 1},
    token='YOUR_API_TOKEN',
)

Boom. Once your Celery worker gets hold of that bad boy, it's tracked.

Full-on Docs

Would you like to know more? Well then you should read the docs, citizen.

Contributing

We love pull requests! Send us one, and you'll probably make Wes's day.

For details, check out the contribution tips documentation.

We like Mixpanel and Celery

This project isn't affiliated with the Mixpanel company. Just a customer's implementation of a client for their service.