Privacy-focused, performant, and server-side analytics for your Django project
Project description
Django Privacy Analytics
Django Privacy Analytics is a minimalist, performant, and privacy-focused analytics system that runs in your Django app.
Do Not Track
Django Privacy Analytics fully respects the 'Do Not Track' (DNT) header; if a request has DNT enabled, Django Privacy Analytics will not store a page view.
Installation
- Install Django Privacy Analytics by running
pip install django-privacy-analytics
or addingdjango-privacy-analytics
to yourrequirements.txt
- Add
privacy_analytics
to yourINSTALLED_APPS
setting. - Add
privacy_analytics.middleware.AnalyticsMiddleware
to yourMIDDLEWARE
setting, ideally somewhere towards the end (and afterAuthenticationMiddleware
). - Create the new necessary models by running
python3 manage.py migrate
. - Optionally add a place to view the analytics by adding
path('analytics/', include('privacy_analytics.urls'))
to your URL routing configuration.
Access
Currently, the dashboard is only visible to superusers. This will be configurable in a future version.
Settings
In settings.py
, you can set the following:
ANALYTICS_IGNORE_PATHS
: ignore requests whose paths start with members of this list
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
Close
Hashes for django-privacy-analytics-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34343fc8d85106bebbd5e5eb7add8b6fd814a635524a4255607e8e81f6d8746b |
|
MD5 | af6795e28ed0fbecd5d4005cf8adf186 |
|
BLAKE2b-256 | dde541a82af6913c46cb6a0eda03b374fb65bdb3ac9fe64d7867b8f155184c2e |
Close
Hashes for django_privacy_analytics-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e26984caff7aff93a33fbb55ce323e4b6feeccc4b8f2fa9662fe60532def2ea |
|
MD5 | f57f0851fc0db1bc31c70dab051deb25 |
|
BLAKE2b-256 | 15ec46e77b9d6b2be3bee514eb6fa06409e946dd34ad32d0b6a1260feadfadd3 |