1. Zeit Code
  2. Untitled project
  3. django-google-analytics

Commits

megaman821  committed 121f51c

adding README content

  • Participants
  • Parent commits 48f307a
  • Branches default

Comments (0)

Files changed (3)

File MANIFEST.in

View file
  • Ignore whitespace
 recursive-include docs *
 include LICENSE
-include README
+include README.md

File README

  • Ignore whitespace
Empty file removed.

File README.md

View file
  • Ignore whitespace
+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 hg+https://bitbucket.org/nextscreenlabs/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>
+''''