Skip to main content

Provides a Django template tag to insert the Google Analytics tracking code.

Project description

Django Google Analytics

Django Google Analytics provides a template tag for inserting the tracking code to provide [Google Analytics]( data.


Run `pip install django-google-analytics`

Add `google_analytics` to your `INSTALLED_APPS` setting:


Template Tags

Inserts the Google Analytics' tracking code in your template. Takes the tracking code as an argument.

{% load analytics %}
<title>My Site</title>
<h1>My Site</h1>
<p>My site's content.</p>
{% google_analytics 'UA-XXXXXXX-XX' %}

Project details

Release history Release notifications

This version
History Node


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 (7.0 kB) Copy SHA256 hash SHA256 Source None Nov 2, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page