Skip to main content

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.

Source Distribution

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