We are developing an affiliate program for one of our client, and we are planning to use Piwik in order to track trafic stats, but we need to track trafic on different sites, with a special parameter, which is the partner id.
In fact, all sites’ links for partners are like this one : www.piwik.org/?partnerId=$partnerId, and our client need to have in his stats :
Yes you can, using Campaign tracking. You will get, in the Referers section, the number of visits/pages/etc. brought by Each campaign (which in your cases, are partners). See http://dev.piwik.org/trac/ticket/517 for a quick help (still waiting for proper documentation for this one)
Matthieu, as every pages on sites are rewrited, even with the partnerId, i.e: http://example.org/partnerId/options/page.html, do you think that piwik will track these pages as campaigns?
Maybe, I can make the piwik tracking code dynamic, regarding partnerId ?