| 开发者 | supportfromrichard |
|---|---|
| 更新时间 | 2026年5月5日 01:22 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
sfran_bot_patterns filter192.168.1.0/24)/sfran/v1/summary — overview stats with optional comparison/sfran/v1/top-content — most viewed content with pagination/sfran/v1/traffic-sources — referrer breakdown/sfran/v1/time-series — daily views/visitors/sessions/sfran/v1/campaigns — campaign performance/sfran/v1/entry-pages and /sfran/v1/exit-pages/sfran/v1/referrers — top referring domains/sfran/v1/devices, /sfran/v1/browsers, /sfran/v1/geographic/sfran/v1/online-now — current active visitor count for the last N minutes (default 5)manage_options capability. Use these to build custom dashboards, export data, or integrate with other tools.
Performance
navigator.sendBeacon (non-blocking)sfr-analytics folder to /wp-content/plugins/, or install directly from the WordPress plugin screen.No. All data is stored locally in your WordPress database. No external API calls are made for tracking.
Yes. The plugin stores only anonymous hashed identifiers — no IP addresses, names, emails or any personally identifiable information. It also supports Do Not Track headers and provides ready-made privacy policy text.
No. Visitor and session identification is based on anonymised hashing of request headers, not cookies.
Two layers: first, the User-Agent string is checked against 200+ known bot patterns. Second, a lightweight inline JavaScript verification confirms that the visitor is a real browser. Only verified pageviews appear in your dashboard stats.
Yes. Go to Analytics → Settings and click the "Ignore My IP" button, or manually add IP addresses and CIDR ranges.
A built-in tool to plan marketing campaigns and generate UTM-tagged URLs. When visitors arrive via those links, the campaign performance is tracked automatically and shown on your dashboard.
Country detection relies on CDN headers (e.g. Cloudflare's CF-IPCountry). If your site is not behind a CDN that provides country headers, the geographic section will show no data — but all other tracking works normally.
Yes. In Analytics → Settings, set the retention period from 30 days to 10 years. Old data is cleaned up automatically via a daily scheduled task, or you can trigger cleanup manually.
Yes. The tracking script runs client-side after the page loads, so it works correctly with page caching, CDN caching and server-side caching.
No. The only frontend output is a small inline JavaScript snippet (no external files). It uses navigator.sendBeacon for non-blocking requests and does not affect page load time.
Yes. The plugin provides a full REST API with 11 endpoints. Authenticate with WordPress Application Passwords (or any REST API authentication method) and you can retrieve any data shown on the dashboard. Ideal for custom dashboards, reporting tools, or external integrations.
Yes. Install SFR Analytics Hub on a central WordPress site, then connect each site running SFR Analytics using WordPress Application Passwords (administrator account required on each feeder site).
mb_chr) — avoids fatal errors on hosts without that extension/bulk endpoint — returns all data types in a single request/daily endpoint — returns per-day snapshots for external integrations