Tracking two websites on one page

Hey there,

is it possible to count a visitor and his actions for two websites while there is only one tracking code added on the page?
I need this beause i am running a small project where people can manage their own small website. And i want to track the visitors for alle pages together and for the small pages too.

Is piwik able to do this, for example through including two tracking IDs?
Or can you imagine to add this feature in future?

Thanks and enjoy the sunday evening.

Within your tracking-code you will see the try { … } segment. You can expand this to track to other website-IDs (tracked websites in Piwik) as well:


try {
var piwikTracker = Piwik.getTracker(pkBaseURL + “piwik.php”, 1);
var piwikTracker2 = Piwik.getTracker(pkBaseURL + “piwik.php”, 2);
} catch( err ) {}

So long,

so great! Thanks :-).