Skip to main content

Template tags for including tracker codes

Project description

https://travis-ci.org/matthiask/django-privacy-killer.png?branch=master Documentation Status

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

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_privacy_killer-0.1.0-py2.py3-none-any.whl (6.2 kB) Copy SHA256 hash SHA256 Wheel py2.py3
django-privacy-killer-0.1.0.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None

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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page