Simple Analytics Blocked by Content Security Policy
Quick answer
If the Network tab shows blocked:csp, add the script, queue and optional badge hosts to your CSP.
Most likely fix: Add the CSP hosts
How to fix it
Try these in order — the most common fix is first.
1. Add the CSP hosts
- script-src: https://scripts.simpleanalyticscdn.com
- connect-src: https://queue.simpleanalyticscdn.com
- img-src: https://queue.simpleanalyticscdn.com and https://simpleanalyticsbadges.com if you show the badge
- 'unsafe-inline' only for inline placeholder or sa_settings; not needed for script version 12+
Did this fix it?
Symptoms
Console reports a CSP violation and latest.js status is blocked:csp.
Why it happens
- script-src missing scripts.simpleanalyticscdn.com
- connect-src missing queue.simpleanalyticscdn.com
- img-src missing queue host or badge host
This guide also covers
- simple analytics content security policy
- simple analytics csp
Still not working?
If Simple Analytics keeps failing, you're not alone. See every Simple Analytics problem users report or the alternatives people switch to.
Done fighting Simple Analytics? Our small team builds your own Simple Analytics alternative, made for how you work. On your domain or hosted by us. Price agreed together.
Get a quoteThe same problem in other apps
All plan limits, paywalls & watermarks guides →
- Plausible Blocked by Ad Blockers (How to Set Up a Proxy) (Plausible Analytics)
- Fathom Analytics Blocked by Ad Blockers (Fathom Analytics)
- Umami Blocked by Ad Blockers (uBlock Origin, Brave) (Umami)
- Matomo Archiving Slow or Out of Memory on Large Sites (Matomo)
- PostHog Blocked by Ad Blockers (PostHog)
Other Simple Analytics errors
- Simple Analytics Not Working (No Data Showing)
- Simple Analytics Blocked by Ad Blockers
- Simple Analytics Visitors Lower Than Pageviews
- Simple Analytics Events Not Showing
- Simple Analytics Not Counting Do Not Track Visitors
- Simple Analytics Free Plan Badge Missing (Dashboard Locked)
- Simple Analytics Google Analytics Import Not Working
- Simple Analytics Counting My Own Visits