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](http://www.google.com/analytics/) data.

Installation
------------

Run `pip install django-google-analytics`

Add `google_analytics` to your `INSTALLED_APPS` setting:

```python
INSTALLED_APPS = (
...
'google_analytics',
)
```

Template Tags
-------------

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

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

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-google-urchin, version 0.1a1
Filename, size File type Python version Upload date Hashes
Filename, size django-google-urchin-0.1a1.zip (7.0 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