Plugin for Piwik - Open source web analytics / a replacement for Google Analytics
Compatible with DokuWiki
2011-11-10
Similar to googleanalytics
Piwik plugin for DokuWiki. Piwik is an open source web analytics software that aims to be a replacement for Google Analytics. This plugin allows you to track visitors statistics of your DokuWiki installation using Piwik. Optionally admin/users can be excluded from the statistics.
See https://gitorious.org/dokuwiki-piwik/pages/Home for installation instructions.
In my opinion I got my DokuWiki/Piwik system working easier without this plugin. This is because you need to edit the appearance template's main.php anyway, you can use the code (or snippet) provided by your Piwik-service.
It is not longer necessary to do manual work to modify templates. Piwik plugin now uses TPL_METAHEADER_OUTPUT hook to insert the piwik tracker code. The new version is also backwards compatible.
— Ciove 2008/07/14
Don't know why but the code to insert is shown on the plugin page as an image which is not easy to copy/paste, so here it is:
<?php if (file_exists(DOKU_PLUGIN.'piwik/code.php')) { include_once(DOKU_PLUGIN.'piwik/code.php'); piwik_code(); } ?>