Linux 软件免费装
Banner图

CloudScale Site Analytics

开发者 cloudscale
andrewjbaker
更新时间 2026年6月30日 18:51
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

statistics analytics page views view counter cdn analytics

下载

2.9.373 2.9.399

详情介绍:

CloudScale Site Analytics solves the fundamental problem with page view tracking on cached WordPress sites. When Cloudflare, Fastly, or any CDN serves a cached HTML page, WordPress never executes. Server side counters like Jetpack Stats miss the view entirely, resulting in severe undercounting — typically 5 to 10 times lower than actual traffic. CloudScale uses a lightweight JavaScript beacon that fires after the cached page loads, recording every view through a REST API endpoint that bypasses the CDN cache. The result is accurate view counts regardless of cache status. Key Features How It Works
  1. Cloudflare serves the cached HTML page at full speed
  2. The browser loads the page and executes the beacon script
  3. The beacon fires a lightweight POST to a WordPress REST endpoint
  4. That endpoint bypasses CDN caching via headers and Cloudflare Cache Rules
  5. WordPress records the view in the database and increments the counter
  6. The page counter updates live without a reload
Requirements

安装:

  1. Upload the cloudscale-site-analytics folder to /wp-content/plugins/
  2. Activate the plugin in Plugins > Installed Plugins
  3. The database table is created automatically on activation
  4. Add the Cloudflare Cache Rule (see FAQ)
  5. Configure display settings in Tools > CloudScale Site Analytics > Display tab

常见问题:

What Cloudflare Cache Rule do I need?

In the Cloudflare dashboard go to Caching > Cache Rules > Create Rule:

  • Field: URI Path
  • Operator: contains
  • Value: /wp-json/cloudscale-site-analytics/
  • Action: Cache Status: Bypass
The plugin also sends no cache headers on every REST response, but the Cache Rule is the primary protection.

How do I migrate from Jetpack Stats?

Go to Tools > CloudScale Site Analytics > Migrate Jetpack tab. Click the migration button to import all Jetpack lifetime view counts into CloudScale. The migration preserves your historical totals as a starting point and the plugin blends them with new beacon data during a 28 day transition period.

Does it work without Cloudflare?

Yes. The beacon approach works on any WordPress site. The Cloudflare Cache Rule is only needed if you use Cloudflare caching. Without Cloudflare, the REST endpoint is already accessible and the plugin works out of the box.

Does refreshing the page count as another view?

No. The beacon uses sessionStorage to deduplicate views. Each browser session records only one view per post. A new tab or new session counts as a new view.

How is visitor privacy protected?

IP addresses are hashed using SHA256 combined with your site wp_salt before storage. Raw IP addresses are never written to the database. The IP hash is used only for throttle protection.

更新日志:

2.9.399 2.9.218 2.9.94 2.9.12 2.9.11 2.9.10 2.9.9 2.9.0 2.8.7 2.8.5 2.8.4 2.8.3 2.8.2 2.8.1 2.8.0 2.7.0 2.6.9 2.6.2 2.4.0 2.3.0 2.2.0 2.1.0 1.1.0 1.0.0 2.5.4