Django middleware reporting requests to Ackee
Project description
django-ackee-middleware
Django middleware reporting requests to Ackee, self-hosted analytics tool for those who care about privacy. Alternative to using the client-side JS tracker.
Installation
$ pip install django-ackee-middleware
If you don't have the Ackee instance yet, you can quickly deploy it on Heroku.
Configuration
Add the middleware as the first one in your Django settings.py
:
MIDDLEWARE = [
"ackee.middleware.TrackerMiddleware",
"django.middleware.security.SecurityMiddleware",
...
]
Then add the following properties:
ACKEE_SERVER = "https://myackeeserver.com"
ACKEE_DOMAIN_ID = "YOUR DOMAIN ID"
ACKEE_IGNORED_PATHS = [
"^/admin/.*"
]
Remember to change the server and domain ID to your values.
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-ackee-middleware-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f20132b0bd2a42d335d45de52923360e06a89355eeec94fbdbbdf116d5cb0e2f |
|
MD5 | b73dcae4c58bcb7d213536702d735213 |
|
BLAKE2b-256 | cf46c1d0b736b08093d5b6c83574724762569089697c55edaa23e6577d63e13e |
Close
Hashes for django_ackee_middleware-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0371dd2f614a7b4a577078f7ef84ccf90511bf3758c8332bcab0f02131079f3e |
|
MD5 | 8478f889fa4bd2b611812c3d728e1a2d |
|
BLAKE2b-256 | ea17498a179a4e76053f5c89a5db350cad5e1ef8b4ddd9a3804122e994854287 |