Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.
/ django-piwik Public archive

A simple app to add the Piwik JS tracking code to your template.

Notifications You must be signed in to change notification settings

jasjukaitis/django-piwik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django-Piwik

A simple app to add the Piwik JS tracking code to your template.

Requirements

  • Django

Installation

Using PyPI you can simply type into a terminal:

pip install django-piwik

or

easy_install django-piwik

Configuration

Add piwik to the list of INSTALLED_APPS in your settings.py file.

Also PIWIK_SITE_ID (e.g. 1) and PIWIK_URL (e.g. 'https://piwik.example.com/', please don't forget the trailing slash!) are required.

In the template, put {% load piwik_tags %} to the top and add {% tracking_code %} before the </body> tag.

That's it. Happy tracking!

Author

Copyright 2013 Raphael Jasjukaitis <[email protected]>

Released under the BSD license.

About

A simple app to add the Piwik JS tracking code to your template.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages