Plausible Analytics: Self-Hosted CE
Plausible CE is the self-hosted community edition of Plausible Analytics. It’s an excellent GDPR-compliant alternative to Google Analytics, but a few things differ from the cloud version.
The 404 tracking plugin does not exist in CE
The 404 error page tracking extension is not available in self-hosted Plausible CE. The UI lets you select it, but the resulting script URL does not exist on the server (returns HTTP 404).
Valid script extensions:
script.js
script.outbound-links.js
script.tagged-events.js
script.outbound-links.tagged-events.js
script.file-downloads.js
script.outbound-links.tagged-events.file-downloads.js
Test any combination before deploying:
curl -o /dev/null -w "%{http_code}" https://plausible.yourdomain.com/js/script.EXTENSIONS.js
CSP must include Plausible in both script-src and connect-src
If your site has a Content Security Policy, Plausible needs to be in two directives:
script-src ... https://plausible.yourdomain.com;
connect-src ... https://plausible.yourdomain.com;
Missing either one causes silent failure — no error to the user, just no tracking.