User actions tracking and analytics for Django sites.
Project description
User actions tracking and analytics for Django sites
Requirements
Django 1.9 or later.
Django Countries 3.4.1 or later.
Django IPWare 1.1.5 or later.
Django User Agents 0.3.0 or later.
GeoIP2 2.3.0 or later.
Installation
Install Django Tracking Analyzer from PyPI by using pip:
pip install django-tracking-analyzer
Add 'tracking_analyzer' entry to Django INSTALLED_APPS setting.
Run the migrations to load the Tracker model in your database:
python manage.py migrate tracking_analyzer
- Install the MaxMind® GeoIP2 Country dataset. You can do this in two ways:
4.1. By running the provided management command for this:
python manage.py install_geoip_dataset
4.2. Or manually, by following the instructions in GeoIP2 Django documentation.
After following those steps, you should be ready to go.
Contribution
All contributions or fixes are welcome. Just make sure to follow this rules:
Always include some unit tests for the new code you write or the bugs you fix. Or, update the existent unit tests, if necessary.
Stick to PEP-8 styling.
Make your pull requests to development branch.
Testing
Run tests:
python setup.py test
Run tests with coverage:
python setup.py test --pytest-args "--cov-report xml --cov tracking_analyzer tests/ --verbose --junit-xml=junit.xml --color=yes"
Run tests with coverage and Pylint/PEP8 checking:
python setup.py test --pytest-args "--cov-report xml --cov tracking_analyzer tests/ --verbose --junit-xml=junit.xml --color=yes --pylint --pylint-rcfile=pylint.rc --pep8"
Acknowledgements
Django Tracking Analyzer makes use of this technologies and apps, without which it wouldn’t be possible:
Django Countries, by Chris Beaven.
Django IPWare, by Val Neekman.
Django User Agents, by Selwin Ong.
Datamaps, by Marc DiMarco.
TopoJSON, by Mike Bostock.
D3 bar chart w/tooltips, original code by Justin Palmer.
D3 area chart, by Mike Bostock.
Of course, the D3.js library.
And MaxMind, the company behind all the geographical datasets that made them publicly available.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-tracking-analyzer-0.1b4.tar.gz
.
File metadata
- Download URL: django-tracking-analyzer-0.1b4.tar.gz
- Upload date:
- Size: 107.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b615c5acbd65509d7ac1f561bd58a1bd9795d6237eadb9c4a12d6f3c208977d7 |
|
MD5 | e0e9824c747a09fbc79d7d108112c137 |
|
BLAKE2b-256 | d9e940979e948657c42dd1f5aa2747dbc4256600e98cfed648c2129de1192e3a |
File details
Details for the file django_tracking_analyzer-0.1b4-py2.py3-none-any.whl
.
File metadata
- Download URL: django_tracking_analyzer-0.1b4-py2.py3-none-any.whl
- Upload date:
- Size: 115.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41eadeeee8dc5303651d03fe32bf7a8fe65f0b4d9ded045beb4ebbcca9b104dd |
|
MD5 | 21dff32a016ddd35c51dd3fc06a10aa1 |
|
BLAKE2b-256 | 3a3f93690a38784394a965860310e6afb3e298b76a4b2a0564532d61bc7c3a8d |