Linux 软件免费装
Banner图

Turf Stats

开发者 freakstar
更新时间 2026年7月17日 14:23
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

privacy statistics analytics page views cookieless

下载

1.18.1 1.19.0 1.20.0 1.20.3 1.21.0 1.18.0 1.21.1

详情介绍:

Turf is a self-hosted, cookieless analytics plugin. No Google Analytics, no Jetpack, no external network calls - everything is measured and stored in your own WordPress database. Why Turf What it tracks The admin pages use native WordPress postboxes: collapsible, draggable, hideable via Screen Options, and styled by your admin color scheme. The interface is English and ships with a full Dutch (nl_NL) translation.

安装:

  1. Install and activate the plugin.
  2. That's it - views start counting immediately for every public post type and taxonomy. Find the reports under the "Statistics" menu in wp-admin.
Optional extras (a visible view counter, click tracking on specific elements, social-share links, importing historical Jetpack/entry-views view counts via the "Statistics > Import" admin page or WP-CLI) are documented in the plugin's README on GitHub.

屏幕截图:

  • Analysis - landing pages with bounce rate, on-site search terms
  • Bots & LLMs - crawler and AI-bot visits (Googlebot, GPTBot, ClaudeBot, ...)

升级注意事项:

1.18.1 Listing/packaging update only (screenshots); no functional changes. 1.18.0 Updates now come from wordpress.org instead of GitHub; postbox order/collapse state now actually persists. Rename turf_dorpsapp_route_patterns to turf_connector_app_route_patterns if you used it. 1.17.2 Packaging fix only (duplicate Plugin/Author URI headers); no functional changes. 1.17.1 Plugin Check warning cleanup; no changes to tracking or reports. 1.17.0 Compliance/packaging release; no changes to tracking or reports.

常见问题:

Does Turf set cookies or require a consent banner?

Turf sets no cookies and sends no data to any external service. Deduplication uses a one-way hash of IP + user-agent; the raw IP is never stored. It is designed to fit a "legitimate interest" basis for first-party, aggregate analytics - but that is not legal advice: check with whoever maintains your privacy policy.

What data does Turf collect, and where does it go?

Per page view Turf stores, in your own database only: a one-way visitor hash, timestamp, the page viewed, device type / browser / OS family (parsed from the user-agent), language, country code (only if Cloudflare provides it), referrer hostname, UTM parameters, scroll depth, and reading time. Raw event rows are pruned automatically after 18 months (filterable); aggregate totals are kept. Nothing is ever transmitted off your server.

Why are Turf's numbers lower than Jetpack's or a raw hit counter's?

"Views" is deduplicated: a repeat view of the same page by the same visitor within 30 minutes doesn't count again (the same default Google Analytics and Matomo use). The separate "Raw views" number counts every page load, for an apples-to-apples comparison with hit-counting tools.

Does it work with page caching?

Yes. Tracking runs client-side, so cached pages are still counted. Turf even reports how much of your traffic is served from cache.

Where is the country data coming from?

From Cloudflare's CF-IPCountry request header, if your site is behind Cloudflare. Turf deliberately does not call any geolocation API - that would mean sending visitor IPs to a third party. Without Cloudflare, country stays empty unless you hook up your own local database via the turf_visitor_country filter.

Does uninstalling remove my statistics?

By default, no - analytics history is precious, so the data survives an uninstall/reinstall. To remove everything on uninstall, add define( 'TURF_REMOVE_DATA_ON_UNINSTALL', true ); to wp-config.php (or set the turf_remove_data_on_uninstall option to 1) before deleting the plugin.

Where do I suggest a feature or report a bug?

On the plugin's GitHub repository: https://github.com/fbloemhof/turf-stats/issues

更新日志:

1.21.1 1.21.0 1.20.3 1.20.2 1.20.1 1.20.0 1.19.0 1.18.1 1.18.0 1.17.2 1.17.1 1.17.0 1.16.1 1.16.0 1.15.0 1.14.0 Earlier