Super simple Django application for easily tracking events and submitting them asynchronously to KISSmetrics.
Project description
# django-funkymetrics
django-funkymetrics is a super simple Django application for easily tracking events and submit them asynchronously to KISSmetrics using celery tasks.
## Features
Track app events easily
Submits analytics events asynchronously to KISSmetrics
## Installation
Add the KISSmetrics JS snippet to your project template(s).
Install django-funkymetrics:
pip install django-funkymetrics
Alternatively, download the source code and manually add it to your PYTHONPATH.
Set your KISSmetrics API key:
KISS_API_KEY = ‘<your_api_key>’
Track events and profit.
## Prerequisites
The library assumes that Celery is installed and configured for the Django project. Tasks are automatically created for each record_event.
## Usage
Simply import record_event in your code where you want to track events, and call it as needed:
from funkymetrics.events import record_event
# Without properties record_event(‘downgraded’)
# With properties record_event(‘upgraded plan’, {‘to_plan’: ‘Standard’})
## Identifying users
Anonymous users are identified by their KISSmetrics anonymous ID (ie. the value of the km_ai cookie).
Authenticated users are identified by their username.
## Future stuff
Overriding user identifiers
Queue events locally and submit in batches
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-funkymetrics-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5799bb928b2b20d7e10d6bec3e685e58acd4bf986ea7458dc95b9b710613b7a |
|
MD5 | 8cd184a179df999e5d6dccce895ab62f |
|
BLAKE2b-256 | d1dd8103dbe748a2dc3e1de5a6072a29fba5d4bf1b06763bb5916503aa0d11b3 |