Skip to main content

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.


  1. Install Django Privacy Analytics by running pip install django-privacy-analytics or adding django-privacy-analytics to your requirements.txt
  2. Add privacy_analytics to your INSTALLED_APPS setting.
  3. Add privacy_analytics.middleware.AnalyticsMiddleware to your MIDDLEWARE setting, ideally somewhere towards the end (and after AuthenticationMiddleware).
  4. Create the new necessary models by running python3 migrate.
  5. Optionally add a place to view the analytics by adding path('analytics/', include('privacy_analytics.urls')) to your URL routing configuration.


Currently, the dashboard is only visible to superusers. This will be configurable in a future version.


In, you can set the following:

  • ANALYTICS_IGNORE_PATHS: ignore requests whose paths start with members of this list

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-privacy-analytics, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django_privacy_analytics-0.1.1-py3-none-any.whl (13.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django-privacy-analytics-0.1.1.tar.gz (10.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page