From: Clinton Ecker Date: Sun, 5 Apr 2009 21:27:25 +0000 (-0500) Subject: Editing readme X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=39656f435e6f8f2243cafe6ee22e7a651c126723;p=django-google-tools.git Editing readme --- diff --git a/README.mdown b/README.mdown index f807c81..172aeb4 100644 --- a/README.mdown +++ b/README.mdown @@ -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