Sometimes it’s needed to be able to completely decouple one Piwik instance from others on the same page … rename ‘_paq’, ‘window.Piwik’, … (For externally included JS Scripts which come with Piwik Tracking - to be sure not to collide with Piwik Instanced already present on Page)
Detailed explanation: Rename “_paq” possible?
thx for pointing out - rephrased initial post.
But I guess it won’t happen as it would produce a very a long rat tail to completely decouple instances … ?!
Use addTracker insteadOf getTracker it’s work very well
window.piwikAsyncInit = function(){
var tracker1 = Piwik.addTracker('url', id);
var tracker2 = Piwik.addTracker('url', id);
tracker1.setDocumentTitle('Viewer');
tracker2.setDocumentTitle('Map');
tracker1.trackPageView(); // only for Viewer tracker
tracker2.trackPageView(); // only for Map tracker
_paq.push(['trackPageView']) // both
}