Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

django-configurations Google Analytics settings and template tag

Project description

Installation

$ [sudo] pip install django-configurations-google-analytics
settings.py
from configurations import Configuration
from django_configurations_google_analytics import GoogleAnalyticsMixin

class Base(GoogleAnalyticsMixin,Configuration):
    # GA_ID = 'UA-XXXXXXXX-Y'
.env
DJANGO_GA_ID="UA-XXXXXXXX-Y"
Templates
{% load google_analytics %}
...
{% google_analytics %}

Links

readme42.com

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-configurations-google-analytics, version 2020.10.25
Filename, size File type Python version Upload date Hashes
Filename, size django-configurations-google-analytics-2020.10.25.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page