Yes but no. When I deactivated the plugin, the site went back online. Not working now since I added the script. If I remove it (I will do this now, I only let everything that way so that someone didn’t just walk through and say that the site is ok), everything will be back to normal.
So how do I add the script (plugin or not) and keep my site working please?
For people still looking for a solution. I had the same issue (403 server errors after the first pageload). The issue was the Web Application Firewall (= WAF), which you can configure in Plesk.
If you check the Modsecurity log file (there should be a link on the WAF page) you will find the firewall is triggered by the Piwik cookies for some reason. You need to look up the ID’s of the rules that are triggering the blocking by searching for id " .
In my case, the rules that were an issue were the following ones:
942260
942200
942340
942370
I added those numbers in the field “security rule ID’s” in the section “switch off security rules”. After that I saved the settings, removed all cookies from my browser and refreshed my site: everything works as expected now.
Hopefully I can save some people some headaches this way.
This should be documented somewhere in the Piwik Pro documentation really, because in my search for a solution I’ve seen a ton of people with this issue.