Send data to Piwiki and Matomo

Hello
We are upgrading from Piwik 2.16 to Matomo.
For transition purposes I have included the JS on a website to gather data on both Piwik and Matomo servers.

I find that only the first occurrence of the JS in the header of the website is taken and the 2nd is ignored.

Should it be possible to do this and if so can someone please point out the method
Thanks for your feedback

Hi,

Simply pasting the tracking code twice doesn’t work.
If you want Matomo to track to two servers, you have to follow these guides:
https://developer.matomo.org/guides/tracking-javascript-guide#multiple-piwik-trackers

Keep in mind that the matomo.js is loaded from the first site, so features that only the second server supports, might not work correctly.