View Source

{hudson-plugin-info:pluginId=piwikanalytics}
{excerpt}
This plugin decorates all web pages with the Piwik Analytics tracking script.
{excerpt}

Use this plugin to add the [Piwik Analytics|http://www.piwik.org] tracking script to all web pages that are served by the Hudson installation.

h3. Configuring

To configure this plugin you will need a Piwik Site Id, the piwik server hostname and the piwik path on this server.

In this sample of piwik tracker code:
{code}
var pkBaseURL = (("https:" == document.location.protocol) ?
"https://stats.domain.net/piwik/" : "http://stats.domain.net/piwik/");
...
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 6);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}...
{code}
the Site Id is _6_, the piwik host is _stats.domain_.net and the piwik path is _/piwik/_