Piwik4Trac is a Trac plugin that will enable your Trac environment to be logged by Piwik. It ads the necessary javascript code to log your environment.Download and Install:

The easiest way to install is using EasyInstall_:

sudo easy_install Piwik4Trac

Then, to enable the plugin add to the "[components]" section in your "trac.ini":

[components] tracext.piwik.* = enabled

Configuration:

The necessary configuration is: * **Tracking server** : Consist on the URL of the Piwik server without the "http://" or "https://" and without the trailing slash (ex: piwik.mydomain.org) * **Tracking site** : Consist on the Piwik's tracked site ID. This ID is needed to know which site is tracked.