Linux 软件免费装
Banner图

Corvet Stats – Cookieless Analytics & Affiliate Click Tracking

开发者 corvet
更新时间 2026年11月6日 05:23
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

analytics cookieless click-tracking affiliate-links outbound-links

下载

1.8 1.9 1.9.1

详情介绍:

Corvet Stats answers the questions a content or affiliate site owner actually has: what gets read, where the traffic comes from, and which pages send clicks to partners. It sets no cookies, uses no browser storage, stores no IP addresses and sends nothing to third parties. Statistics are stored as small daily counters in your own database, so the data stays on your server. Affiliate and outbound click tracking, no setup What the dashboard shows (Tools → Corvet Stats, 7 / 30 / 90 / 365 days) Built for real sites Countries are optional. The plugin never calls IP-lookup services and does not bundle a geo database. It reads the visitor's country from your server or CDN (Cloudflare, or a GeoIP module on your server). Without a source, the Countries box is simply hidden.

安装:

  1. Upload the corvet-stats folder to /wp-content/plugins/, or install the plugin from the Plugins screen.
  2. Activate Corvet Stats.
  3. Open Tools → Corvet Stats. Statistics start collecting from the moment you activate the plugin.
If you use a page cache, purge it once after activating, so cached pages include the tracking script.

屏幕截图:

  • Top pages with click rate per page, and a filter for pages that have traffic but no clicks.
  • Traffic sources (referrers) and outbound link clicks by destination.
  • Content clusters: the same numbers grouped by category, with click rate per cluster.
  • Outbound clicks by page and destination: which page sent which click to which partner.
  • Estimated revenue per page and per cluster, with revenue per 1,000 views.

升级注意事项:

1.9.1 No functional changes: updated plugin name and description. 1.9 Adds optional estimated revenue per page. Nothing changes until you add a payout rule. 1.8 Security hardening and a fix for uninstalling. If you use Cloudflare with the real visitor IP restored at server level, see the FAQ about the lstats_trust_cloudflare filter.

常见问题:

How is estimated revenue calculated?

You enter, one per line, a destination text and your average payout per click, for example discovercars.com = 0.40 or /go/discovercars = 0.40 for a cloaked link. Take the payout from your partner report (earnings divided by clicks). The dashboard then multiplies the clicks each page sent to a matching destination by that payout. It is an estimate based on an average, not your real earnings: sales happen on the partner's site and the plugin never reads partner reports. Clicks to destinations without a rule count as zero.

Do I need a cookie banner?

Corvet Stats sets no cookies and uses no browser storage. Rules differ by country and by how you use the data, so check your own legal situation. Consider mentioning anonymous, cookieless statistics in your privacy policy. The plugin adds suggested text to the Privacy Policy Guide.

How are unique visitors counted without cookies?

For each pageview the server computes a short hash of the visitor's IP address and browser user agent, the current date and a secret site key. The hash only answers "already counted today?" and limits events per visitor. The IP address is never stored, the date is part of the hash so a person cannot be followed from one day to the next, and hashes are deleted after two days. The figure for a period is the sum of daily uniques, not unique people across the whole period.

Does the plugin send data to other websites?

No. It makes no external requests and does not use third-party services.

Why are affiliate clicks on my own domain not counted?

Cloaked links such as https://example.com/go/partner look internal to the browser. Corvet Stats counts links whose path starts with /go/, /out/, /recommends/ or /refer/, and links with rel="sponsored". To add your own prefix: add_filter( 'lstats_affiliate_prefixes', function ( $prefixes ) { $prefixes[] = '/visit/'; return $prefixes; } );

How do I get country statistics?

Put the site behind Cloudflare (the free plan is enough; the Cloudflare headers are only trusted when the request really comes from Cloudflare), or provide a country code from your server, for example with the nginx GeoIP2 module or Apache mod_maxminddb (GEOIP_COUNTRY_CODE / MM_COUNTRY_CODE). Other CDNs that send a country header (CloudFront, Vercel) can be enabled with add_filter( 'lstats_trust_country_headers', '__return_true' );. You can also plug in your own source with the lstats_country filter, which must return a two-letter country code.

I use Cloudflare but my server already restores the real visitor IP. Countries are missing.

Add add_filter( 'lstats_trust_cloudflare', '__return_true' ); so the plugin trusts the Cloudflare headers on your setup.

Can I stop tracking for some visitors?

Yes. Return false from the lstats_should_track filter, for example for visitors who opted out on your site.

Nothing is counted.

Purge the page cache, then check in your browser's network tab that a POST to /wp-json/lstats/v1/hit returns status 204. A security plugin or firewall may block the REST route; allow /wp-json/lstats/. A JavaScript optimizer that delays or removes inline scripts can also stop the counter: exclude the script with id corvet-stats-tracker.

Which database versions are supported?

MySQL 5.7+ or MariaDB 10.2+. On older versions the plugin shows an admin notice because its tables cannot be created.

更新日志:

1.9.1 1.9 1.8 1.7 1.6 1.5 1.0 – 1.4