Permalink
Browse files

Editing readme

  • Loading branch information...
1 parent a1b40f6 commit 39656f435e6f8f2243cafe6ee22e7a651c126723 Clinton Ecker committed Apr 5, 2009
Showing with 7 additions and 5 deletions.
  1. +7 −5 README.mdown
View
@@ -12,10 +12,9 @@ be able to manage these Google analytics accounts from the Django admin page.
I also added a mode of operation that excludes the admin interface altogether
(you can just use the template tag)
-###Two modes of operation###
+##Two modes of operation##
-Administering and associating codes with Django `Sites` framework
-=================================================================
+###Administering and associating codes with Django `Sites` framework###
1. Add the `google_analytics` application to your `INSTALLED_APPS` section of your `settings.py`. This mode requires that you be using the Django sites framework too, so make sure you have that set up as well.
2. Add `GOOGLE_ANALYTICS_MODEL = True` to your `settings.py`
@@ -25,12 +24,15 @@ Administering and associating codes with Django `Sites` framework
6. In your base template (usually a `base.html`) insert this tag at the very top: `{% load analytics %}`
7. In the same template, insert the following code right before the closing body tag: `{% analytics %}`
-Just using the template tag
-===========================
+### Just using the template tag ###
+
+
1. Add the `google_analytics` application to your `INSTALLED_APPS` section of your `settings.py`.
2. In your base template, usually a `base.html`, insert this tag at the very top: `{% load analytics %}`
3. In the same template, insert the following code right before the closing body tag: `{% analytics "UA-xxxxxx-x" %}` the `UA-xxxxxx-x` is a unique Google Analytics code for you domain when you sign up for a new account.
+=====================================
+
### License ###
The MIT License

0 comments on commit 39656f4

Please sign in to comment.