Troubleshooting
Fix Content Security Policy (CSP) errors
When a Content-Security-Policy header blocks the script, add SuprAnalytics to script-src and connect-src, and to img-src and media-src for live chat.
If your website sends a Content-Security-Policy header, the browser blocks scripts and requests to hosts it doesn't list. The console shows something like "Refused to load the script".
Add SuprAnalytics's address to script-src (the script) and connect-src (its events):
Content-Security-Policy: script-src 'self' https://supranalytics.app; connect-src 'self' https://supranalytics.app;
- With the managed proxy, list your proxy subdomain (
https://a.yourdomain.com) instead. - With session recordings or heatmaps on, keep SuprAnalytics's address (https://supranalytics.app) in
script-srcandconnect-srceven with a proxy: the recorder (/js/recorder.js) and what it sends (/api/recording,/api/heat) always use it. - With live chat, also add SuprAnalytics's address to
img-src(logos, avatars and pictures) andmedia-src(videos people send). - Next.js: the header is usually set in
next.config.js(headers()) or your proxy file.
AI agent or LLM? Read this page as Markdown