I am adding piwik script into my website. And I have added the trackingcode js file ie
if(domains && tracker_url && site_id ) {
var _paq = _paq || [];
_paq.push(["setDomains", [domains]]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u= tracker_url;
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', site_id]);
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);
})();
}
My question is do we need to include any piwik files other than this? ie whether we need to include the piwik.js file and all? Is there any package that is to be included into web root?