Hi, I’m trying to use piwik in my web, and I have a question about widgets: Is possible to show only the stats that belongs to a concrete page. In my web every enterprise have a detail page and I want to show in their personal space only the stats (how many time their detail page have been see) of this enterprise.
In the meantime, a possible solution could be to create different websites in Piwik for the different enterprises / sections of your website. You would therefore have to insert different tracking codes per enterprise / website section. If you would like to also have an overall view over all sections you could use multiple trackers: http://piwik.org/docs/javascript-tracking/#toc-multiple-piwik-trackers.
Lets assume your “overall website” has id #1 and this page belongs to enterprise / section A with id #2 you would insert something like:
[...]
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
var piwikTracker2 = Piwik.getTracker(pkBaseURL + "piwik.php", 2);
piwikTracker2.trackPageView();
[...]
For the pages of enterprise / section B with id #3 you would use:
[...]
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
var piwikTracker2 = Piwik.getTracker(pkBaseURL + "piwik.php", 3);
piwikTracker2.trackPageView();
[...]
With this approach it would be easy to give people access only to the stats of the website sections that are relevant to them.