Skip to content

bhell/django-piwik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-piwik - Application to add Piwik analytics to a Django site

This app adds basic support for Piwik web analytics to a Django web site:

  • Install Piwik. Yes, you need PHP. But this is a Non-Evil PHP App™.
  • Add a site in Piwik for the site to be tracked. Write down the number by which Piwik recognises the site.
  • Add piwik to INSTALLED_APPS.
  • Sync database.
  • Set up a site for your Django web site (if you don't already have one)
  • In the admin you should find a Piwik site analysis table.
  • Add an entry for your site. The Piwik base URL is where piwik.php can be accessed. The Piwik site number is the number you wrote down earlier. The preview does not work yet.
  • {% load piwik_tags %} in your base html template and add {% piwik_tracking_code %} either before the <body> closing tag, or in the <head>.
  • Done.

Doing

TODO

Have fun. BSD licensed.

About

Application to add Piwik analytics to a Django site

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages