I am looking for a way to track 3 different sites in a roll up property without using the meta site functionality:
There are a couple of reasons for this setup:
-
A meta site is not optimal because we want to track complete user journey across site B, C D
-
Access to data for these sites will differ across the client’s organization, as some teams should only have access to specific data relevant to their roles.
-
It is important for the client to view data independently without segmentation within the same reporting modules under the same site in Piwik PRO.
From my understanding, implementing multiple tag manager containers is not feasible; however, it is possible to send data to multiple site IDs using the addTracker
functionality. Tracking will be configured within the respective tag managers of Sites B, C, and D.
The plan is as follows:
On each site - B, C, and D - an adjusted container script will be implemented to ensure data is sent to both the relevant site and the roll-up property. This will allow data to be viewed and analyzed individually, as well as in the roll-up property for a complete user journey. The site ID in the addTracker
part of the code will send data to the roll-up property.
Or would it make more sense to let roll-up be the “main” site ID to enable tracking across domain/ subdomain and let addTracker IDs be the ID of the 3 sites?
I would greatly appreciate an extra set of eyes on the adjusted container code to verify its accuracy:
After
.slice.call(arguments,1)})}}(i[c])}(window,“ppms”,[“tm”,“cm”]);
code line in container script, I will adjust as follows:
tags.onload = function() {
window._paq = window._paq || ;
window._paq.push(‘setTrackerUrl’, ‘[https://mysite.piwik.pro/ppms.php’]);
window._paq.push([‘setSiteId’, ‘23bbb672-8e9d-41d1-9452-c3905b645a07’]);
window._paq.push([‘addTracker’, ‘https://mysite.piwik.pro/ppms.php’, ‘ff3b9d5d-3241-49f4-9e7d-b0d997d46b34’]);
};
})(window, document, ‘dataLayer’, ‘23bbb672-8e9d-41d1-9452-c3905b645a07’);
Full script:
Could you please confirm if this code is correct for the desired tracking setup?
I look forward to your input.
Thanks in advance.
Best regards,
Kristian