跳到内容

Trafficle

v1.6.0

lavluda · 2026年11月27日 上架

Privacy-first, self-hosted analytics. No third-party trackers: visitor data is stored in your own database and never leaves your server.

正在使用
10 以下
评分
暂无
累计下载
0
最近更新
2026年11月28日
需要 WordPress 6.2+已测试到 7.1.5PHP 8.1+

贡献者

Trafficle is a lightweight, privacy-first analytics plugin that stores all visitor data in your own WordPress database. There are no third-party servers, no trackers, and (by default) zero external network requests.

Features

  • Pageviews & Visitors with a date-range picker (Today / 7 / 30 / 90 days / 12 months / custom). Daily aggregates keep long ranges fast and available after raw data expires.
  • Real-time active visitors and the pages they are on.
  • Top Pages, Referrers, Devices, Browsers, Operating Systems and Countries.
  • Returning visitors and weekly retention cohorts (opt-in, cookie mode).
  • Goals & Conversions — define a URL or event goal and measure conversion rate.
  • Conversion funnels — chain existing goals into an ordered multi-step path and see drop-off per step. Reuses recorded conversions (no extra tracking).
  • Custom Events API — window.Trafficle.track('event_name', value) for button clicks, form submissions, outbound links and more.
  • UTM / Campaign attribution — source, medium, campaign, term and content reporting.
  • Landing & exit pages, bounce rate and average time on page.
  • Geo — uses the Cloudflare CF-IPCountry header automatically, or an optional MaxMind GeoLite2 database for non-Cloudflare sites.
  • CSV export of every report.
  • Configurable data retention. Full IP addresses are never stored; the visitor log shows a truncated address only. Query strings are stripped from stored URLs.
  • First-party cookie for accurate visitor counts, with a cookieless mode for strict privacy.
  • Bot & crawler detection — search engines, AI crawlers (GPTBot, ClaudeBot, CCBot, PerplexityBot…), social bots, SEO tools, uptime monitors and scrapers are tagged automatically and logged server-side (most crawlers never run JavaScript). Optional reverse-DNS verification runs after the response is sent.
  • Visitor Log — filterable, paginated table of individual visits with a per-visit detail drawer. Bots are badged by type; no raw IPs or user-agent strings are stored.
  • Engagement & scroll depth — per-page scroll-depth % and engaged-session rate, captured without cookies or external calls.
  • Core Web Vitals — LCP, CLS, INP and TTFB collected via the Performance API, rated against Google’s good / needs-work / poor thresholds.
  • User Flow — the top page-to-page navigation paths, derived from each visit’s ordered pageviews (no extra client capture).
  • Content intelligence — top posts, authors, categories and content types.
  • Outbound, affiliate and download clicks captured automatically (host + path hash only).
  • Anomaly alerts — optional daily email when human, bot or AI-crawler traffic leaves its normal range.
  • Google Search Console import (optional) — connect your own Google Cloud OAuth client to see the queries behind your organic traffic. Data is fetched to and stored on your server.
  • Click heatmaps (optional, off by default) — coarse, aggregated click positions per page and device; never element text, inputs or session replay.
  • WooCommerce — purchases attributed to the visit that checked out, with revenue stored only as a bucket.

Privacy

  • All data is stored on your own server.
  • Visit ids are random UUIDs; no emails, names or full IP addresses are stored.
  • Visitors can view, download or delete their own data, or opt out, with the [trafficle_privacy] shortcode. Admins can export / erase by visitor ID.
  • Trafficle can wait for explicit analytics consent before tracking when you enable the built-in consent gate in Settings.
  • The optional MaxMind database is downloaded once with your license key and queried locally — no runtime external calls.

External services

Trafficle works fully offline by default. The following optional features make network requests only after an administrator enables them.

MaxMind GeoLite2 (optional country detection)

Used to map visitor IP addresses to countries on sites that are not behind Cloudflare. When you enter a GeoLite2 license key in Trafficle Settings, the plugin downloads the GeoLite2-Country database from download.maxmind.com once, then refreshes it monthly. The request sends only your MaxMind license key. All lookups then happen locally on your server; visitor IPs are never sent to MaxMind.

  • Terms of use: https://www.maxmind.com/en/geolite2/eula
  • Privacy policy: https://www.maxmind.com/en/privacy-policy

Google Search Console (optional keyword import)

Used to show the search queries that bring visitors to your site. Only active after you add your own Google Cloud OAuth client and click “Connect” under Trafficle Search Console. The plugin then contacts:

  • accounts.google.com – to let you sign in and grant read-only Search Console access (your browser is redirected there).
  • oauth2.googleapis.com – to exchange and refresh the access token (sends your OAuth client ID, client secret and the authorization/refresh token), and to revoke it when you disconnect.
  • www.googleapis.com/webmasters/v3 – to download daily query/page statistics for your site (sends your site URL and a date range), on a daily schedule while connected.

No visitor data is sent to Google.

  • Google Terms of Service: https://policies.google.com/terms
  • Google API Services User Data Policy: https://developers.google.com/terms/api-services-user-data-policy
  • Google Privacy Policy: https://policies.google.com/privacy

Reverse-DNS crawler verification (optional)

Off by default. When “Verify search engines” is enabled, Trafficle checks requests whose user agent claims to be a known crawler (for example Googlebot) with a reverse DNS lookup of the request IP, followed by a forward lookup of the returned hostname. The lookups use your server’s configured DNS resolver (usually run by your hosting provider), so that resolver receives the claimed crawler’s IP address. The result is cached for a day per IP. No other data is sent and no third-party API is involved.

Third-party libraries

  • Chart.js v4.6.1 (MIT) – bundled minified as assets/vendor/chart.umd.min.js. Unminified source: https://github.com/chartjs/Chart.js/tree/v4.6.1
  • MaxMind DB Reader for PHP v1.15.0 (Apache-2.0) – bundled in includes/vendor/MaxMind.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums