Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Integration between django-oscar and Jirafe

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 jirafe
Octocat-spinner-32 sandbox
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.rst
Octocat-spinner-32 setup.py
README.rst

Jirafe integration for Oscar

This is an extension for django-oscar that makes integration with the Jirafe e-commerce tracking easy.

Installation

Install from Github (not on PyPi yet):

pip install git+git://github.com/tangentlabs/django-oscar-jirafe.git#egg=django-oscar-jirafe

Now add jirafe to your INSTALLED_APPS and update your TEMPLATE_CONTEXT_PROCESSORS to include jirafe.context_processors.jirafe. Also, set JIRAFE_ID to be your Jirafe ID.

Finally, you need to include the tracking javascript in your templates. You can do this by including:

{% include 'jirafe/tracking.html' %}

within your base.html template. An example base.html is included which you can copy into place to get you started.

That's it - the stats should start appearing in your Jirafe dashboard.

Something went wrong with that request. Please try again.