I have installed Matomo self-hosted, integrated to my website with the wordpress plugin. Presently, I have installed CookiePro as the consent solution, which I am trying to set up with their autoblocking.js on page load. In general t, he autoblock.js should fire before any other script, of course. But even with placing the cookie blocking script in the wp_head with highest priority, Matomo always sets its cookies first.
How could I manage to ensure that Matomo doesn’t fire so incredibly fast, giving me a chance to target the cookies with the blocking script?
After three days of failing I’d be grateful for any idea.
Thanks for your help!