Documentation Sections
Why Your WordPress Analytics Are Lying to You
If your site runs behind Cloudflare, WP Rocket, or any caching plugin, server-side analytics see only the 5 to 20% of requests that reach PHP. The other 80 to 95% are served directly from cache and never counted. CloudScale fixes this with a JavaScript beacon that fires after the browser loads the page, regardless of where the HTML came from. Every real visit is counted.
| Feature | Google Analytics | Jetpack Stats | Server-side counters | CloudScale |
|---|---|---|---|---|
| Works behind Cloudflare/CDN | β | β | β | β |
| Data stays on your server | β (Google) | β (Automattic) | β | β |
| No cookie consent banner needed | β | β | β | β |
| View counts in posts list | β | β | β | β |
| Free, no subscription | Paid tiers | Paid tiers | β | β |
| Top pages per referrer drill-down | Custom reports | β | β | β |
| Geography / country tracking | Requires consent | β | β | β |
| 404 error log | Custom setup | β | Log files only | β |
| No external scripts loaded | β (Google CDN) | β (wp.com) | β | β |
| Open source | β | β | Varies | β |
Setup checklist (5 minutes):
- Download and install the plugin: grab the zip from S3 (direct download) or clone from GitHub, then upload via Plugins β Add New β Upload Plugin. The beacon starts counting immediately on activation.
- Cloudflare Cache Rule: in your Cloudflare dashboard, create a Cache Rule: URI Path contains
/wp-json/cloudscale-site-analytics/, Cache Status: Bypass. This is the critical step for CDN-accurate counting. - Test Cache Bypass: click the button on the Statistics tab to confirm the Cloudflare rule is working. A green badge means every visit will be counted.
- IP Throttle: enable bot protection and configure your deduplication window so repeat reloads don’t inflate counts.
- Top Posts widget: add it to your sidebar via Appearance > Widgets so readers can discover your most popular content.






