{jenkins-plugin-info:pluginId=piwikanalytics|sourceDir=piwikanalytics-plugin} |
This plugin decorates all web pages with the Piwik Analytics tracking script. |
Use this plugin to add the Piwik Analytics tracking script to all web pages that are served by the Jenkins installation.
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:
var _paq = _paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//stats.mydomain.io/piwik/"; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', {6}]); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })(); |
the Site Id is 6, the piwik host is stats.domain.net and the piwik path is /piwik/