skip to navigation
skip to content

Not Logged In

django-google-urchin 0.1a1

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

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>
My Site
</head>
<body>

My Site


My site's content.


{% google_analytics 'UA-XXXXXXX-XX' %}
</body>
</html>
```  
File Type Py Version Uploaded on Size
django-google-urchin-0.1a1.zip (md5) Source 2012-11-02 6KB
  • Downloads (All Versions):
  • 2 downloads in the last day
  • 21 downloads in the last week
  • 77 downloads in the last month