Can I use Piwik PRO with Content Security Policy?

Content Security Policy is an extra layer of security that helps to spot and protect from some types of attacks, for example, cross-site scripting (XSS), clickjacking, and other code injections. The attacks usually aim to steal data, infect the website with malware or destroy its content.

Content Security Policy restricts third-party tools from loading codes on the website and allows to fetch only approved origins of content. For that reason, you need to modify the tracking code and whitelist container domain in your Content Security Policy settings.

To set up the Content Security Policy mechanism, use these guidelines:

Was this article helpful?

Technical support

If you still have some questions, visit our community.
There’s always someone ready to help!

Back to help center