Manually load beacon.js

I have an issue with the website performance measurement inline script aka beacon.js.

Since I use CSP3 with a nonce provided I am not able to just whitelist cloudflare domains in order to pass my CSP rules. Which means the inline execution of the beacon.js performance measurement script from cloudflare is not allowed.

Therefore I thought about manually loading the script for example through gtag manager or directly via an inline script with the nonce set.

So my questions are:

  1. Does it make sense at all to manually load the script?
  2. Can I simply grab the script from here https://static.cloudflareinsights.com/beacon.min.js without setting any client/site ids?

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.