In GTM create a Custom HTML tag in which you paste this code
Add all pages trigger
Click Save. Click Submit. Click Publish.
Of course the best way to install it would be directly in the code of the website but if that’s not possible then the GTM solution from above should work perfectly fine
Thank you for your help! Great to join Piwik community
I just checked. This is exactly the tag which is already running on GTM.
Could it be a conflict with Matomo? I read articles about it. Matomo was installed before Piwik. Should I stop using Matomo? (not a problem for me, we want to change).
Hi Olivier
Yes, Matomo and Piwik PRO do not work together well. There are ways around it but removing Matomo is by far the simplest way to fix the issue.
But in case you’d like to use both we have articles on how to go about it.
Check this article: Can I use Piwik PRO and Matomo at the same time? | Piwik PRO help center