A Content Security Policy (CSP) is a browser security
feature that restricts which external scripts and resources can load on your
website. If your site enforces a strict CSP and the Visual Visitor domain is
not whitelisted, the tracking script will be blocked and no visitors will be
identified.
Symptoms of a CSP block
- Zero identified visitors despite
confirmed script installation.
- Browser console error: Refused to
load script from [visualvisitor domain] because it violates the following
Content Security Policy directive: script-src...
- The Visual Visitor script appears
in your source code but does not load in the Network tab.
How to allow the Visual Visitor
script
Add the Visual Visitor script domain to your site's CSP
script-src and connect-src directives.

Contact Visual Visitor Support for the
exact domain(s) to whitelist, as these may vary based on your account type.
The
whitelist entry typically looks like:
script-src 'self'
https://[visualvisitor-script-domain];
connect-src 'self' https://[visualvisitor-api-domain];
CSP directives are typically set in one of these
locations:
- An HTTP response header on your
web server (nginx, Apache, AWS CloudFront, etc.).
- A meta http-equiv
Content-Security-Policy tag in your HTML head.
- Your CDN or WAF (Web Application
Firewall) configuration panel.
CSP and iframe embedding
If you are embedding the Visual Visitor dashboard inside a
third-party reporting tool (e.g., Agency Analytics) using an iframe, you may
also need to add Visual Visitor's domain to the frame-ancestors CSP directive.

Contact Visual Visitor Support to get the correct directive value.