Simple Analytics Blocked by Content Security Policy

Share
Fixed in latest version Web Updated November 13, 2026How we research

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. 1. Add the CSP hosts

    1. script-src: https://scripts.simpleanalyticscdn.com
    2. connect-src: https://queue.simpleanalyticscdn.com
    3. img-src: https://queue.simpleanalyticscdn.com and https://simpleanalyticsbadges.com if you show the badge
    4. '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 quote
Fixed it? Share this guide

The same problem in other apps

All plan limits, paywalls & watermarks guides →

Other Simple Analytics errors

All 11 Simple Analytics errors and fixes →