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.

Installation

  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 manage.py migrate.
  5. 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


Download files

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

Source Distribution

django-privacy-analytics-0.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

django_privacy_analytics-0.1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file django-privacy-analytics-0.1.tar.gz.

File metadata

  • Download URL: django-privacy-analytics-0.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for django-privacy-analytics-0.1.tar.gz
Algorithm Hash digest
SHA256 0f7a2d1c4c21067dce771b2bd8fbca04f44acab9519e15b6bf4f7da2d98c6a6d
MD5 056cc101c5ec4693c0a9e2089ba0f8e4
BLAKE2b-256 900d4d163de005970cdfaf1a2b985f022416962f04d5a8118cd1695b0dcdb96b

See more details on using hashes here.

File details

Details for the file django_privacy_analytics-0.1-py3-none-any.whl.

File metadata

  • Download URL: django_privacy_analytics-0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for django_privacy_analytics-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 735df9ee039c0aa7d183d86fe7797275f41fbd82f33336058c6f9507d6d9672d
MD5 ebd4f1092e5f61519ea5277a6b8d8bd7
BLAKE2b-256 e776b2b1115aa380f08fad0ce5a61a3c3910e25eb12e5cafbbca227a263edebf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page