Django-event-tracker is a project mainly written in Python, based on the BSD-3-Clause license.
Simple django application for asynchronous tracking of events.
Django-event-tracker is a simple application that enables event tracking via a simple HTTP GET request.
virtualenv
configure celery
_ to work with your projecteventtracker
to your INSTALLED_APPS
and eventtracker.urls
somewhere in your URLseventtracker.conf
for complete list of
options and their default values.. _configure celery
: http://celeryproject.org/introduction.html#configuring-your-django-project-to-use-celery
To store an event, do a GET request on eventtracker.views.track_event
. The
parameter in the URL mapping will determine the name of the event (only
required attribute) and you can supply additional parameters by passing in a
json object as GET parameter params
.
Depending on your EVENTS_TRACKER_BACKEND
settings the event will either be
directly stored in the django database (value 'dummy'
, do not use in
production) or sent into a queue using carrot
. The data will be collected
by celeryd once every three minutes (by default) and stored into MongoDB.
Querying and analyzing of the data is left entirely to MongoDB since it is very good at that.