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:
- Does it make sense at all to manually load the script?
- Can I simply grab the script from here https://static.cloudflareinsights.com/beacon.min.js without setting any client/site ids?