HTTPS SSH

Installing with pip

pip install -e hg+https://amjoconn@bitbucket.org/amjoconn/django-analytics#egg=django-analytics

Basic Usage

In settings.py

TEMPLATE_CONTEXT_PROCESSORS = ( "django.contrib.auth.context_processors.auth", ... "analytics.context_processors.analytics")

In your base template at the end of your head block (using async analytics)

<head> ... {{ analytics }} </head>

Configure

In your settings.py

GOOGLE_ANALYTICS_UNIVERSAL = True # Defaults to False GOOGLE_ANALYTICS_DOMAIN = 'domain.name.com' GOOGLE_ANALYTICS_UA = 'UA-XXXXXXX-X'

In a local_setting.py file for you development machine say:

DISABLE_ANALYTICS = True