Template tags for including tracker codes
Project description
This module allows specifying tracking codes through settings (and therefore through the environment). It currently supports Google Tag Manager and Google Analytics tracking codes, but pull requests for adding support for additional trackers is very welcome!
Usage variant 1
Install the module using pip install django-privacy-killer
Add privacy_killer to INSTALLED_APPS and add the list of tracking IDS to your settings as PRIVACY_KILLER_IDS = ['GTM-****', 'UA-****', ...] (Note! This is a stupid example – specifying both GTM and UA codes is probably not what you want
Load the template tag library ({% load privacy_killer %}) and add the two tags, {% privacy_killer_head %} near the <head> of your site, and {% privacy_killer_body %} near the <body> element.
Usage variant 2
Do not use this module, and also do not use any trackers at all.
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-privacy-killer-0.2.0.tar.gz
.
File metadata
- Download URL: django-privacy-killer-0.2.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d74d90f2c508ae22db8598bd834bc825178050fcf63bf236034b348a9157d96f |
|
MD5 | f420ba2bf1f3f995a3f1b4f81223ee88 |
|
BLAKE2b-256 | 3185b8c2df5ec7dea231d2733159da017ba92bedba20934836b5c33d73ce76f9 |
File details
Details for the file django_privacy_killer-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_privacy_killer-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9b8f420ca6609d0f39aebb061a01818c9fbd5c79ba14ccd6a4f661102ba1103 |
|
MD5 | a97ce64b840c7da034045aa48209cf86 |
|
BLAKE2b-256 | 53f1d739386b9ebbdb6359961b322da680d49f9c0d514b23eac90fed204e2e0c |