I have a website with a main page and a lot of small pages (in subdirectiories) generated by users, using the main page. For each small page I have a separate Piwik site, which lets users track statistics of their pages. I also have a Piwik site (id = 1) for the main page.
What I would like to do, is to track the statistics from all the small pages using the main Piwik site (id = 1), while still making it possible for the users to track the stats of their pages only. I tried to add two Piwik tracking codes to small pages, one with a site id appropriate for the specific small page, and one with site id of 1. Unfortunately, it didn’t work.
Ciao Matt,
I was reading documentation pages linked above about tracking two idSites in the same page but I still can’t understand how.
As far I know the examples provided inside that documentation are correct using the “old style” tracker. In the new javascript code we’re pushing items inside the _paq array so that’s my question: is enough to _paq.push([‘setSiteId’, 6]); twice in the same call?
Maybe we need to duplicate both?
[ul]
[li] _paq.push([‘setSiteId’, 6]);
[/li][li] _paq.push([‘trackPageView’]);
[/li][/ul]
What about NOSCRIPT portion? Should be duped as many times as many idSites we want to track?
Using the old style synced tracker would be deprecated in the next future or will be always supported?
If there are no plans about supporting the synced tracker, would be an idea setting multiple IdSite in the asyncronous tracker?
I mean for example using an object: