Send data to Piwiki and Matomo

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


Simply pasting the tracking code twice doesn’t work.
If you want Matomo to track to two servers, you have to follow these guides:

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.