The most current version is 1.1, released 2011-08-17.
Piwik is an open source real time web analytics software
that aims to be like Google Analytics and its use is considered appropriate to German
ExtFilterDefine add-piwik mode=output cmd="/path/to/addpiwik" intype=text/html outtype=text/html \ enableenv=PIWIK_IDSITE
Please note that there are no quotes allowed for the parameters, except for cmd.
Now we have an output filter called add-piwik that is only active for data with a content type of text/html (so it won't be used for eg. images) and the environment variable PIWIK_IDSITE has to be set for the filter to be active.
Activate the filter for a directory:
<Directory /var/www/html/piwiktest/> SetEnv PIWIK_URL "www.example.com/piwik" SetEnv PIWIK_IDSITE "1" SetOutputFilter add-piwik </Directory>
To install the program it should be sufficient to either
$ chmod 755 addpiwik.py or $ cc -o addpiwik addpiwik.c
and then copy it to whatever location you like.
Markus Stumpf <email@example.com>