Multiple trackers


#1

Hey Piwik’ians,

i try to find informations about “how to add multiple Trackers” for one page, but the informations that i find are either old (piwik 2) or not really helpful for my knowledge.

I found this topic that explains a bit about it: JavaScript Tracking Client: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3
But i don’t really know how to add this code to the rest of the Piwik tracking code.
And it would be great if there would be a solution with the async for multiple trackers, but as in the topic above described:
"Note: When using multiple trackers, you must use the synchronous Javascript tracker object (ie. this will not work with the asynchronous tag):"
So i think there is no way to do it ?

Thanks a lot for your help.
Have a good evening.


(Matthieu Aubry) #2

To track data in two different piwik you must use the code show in JavaScript Tracking Client: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

this is similar to current async code except this one is “Synchronous”