Data is not being collected (ppms.js blocked)

Hello,

We have the PIWIK code installed on mt-g.com, and it was functioning properly until recently. However, we are now experiencing issues:

  1. No data appears in the debugger.
  2. We are seeing very little data overall.

Upon reviewing the code, I noticed that ppms.js is being blocked. I tried the following troubleshooting steps:

  • Turned off the ad blocker.
  • Used different browsers.
  • Tested on multiple devices.

Unfortunately, none of these actions resolved the issue.

Could you please help us understand:

  • Why this might be happening?
  • Whether the lack of data is directly related to the blockage of ppms.js?
  • Can this be associated with the cookie banner settings maybe?

Thank you for your assistance!

Hi there!

Yes, the lack of data is directly related to ppms.js being blocked (since the container is not loading, no data goes through). If you look into the developer tools console you will see a lot of errors that say “Refused to load the script […] because it violates the following Content Security Policy directive: […]”. That is the cause :slight_smile:

Here is a guide on how to set up your CSP: Content Security Policy (CSP) — Piwik PRO Analytics Suite 18.32 documentation

1 Like

Thank you! I will look into this.