| 开发者 | corvet |
|---|---|
| 更新时间 | 2026年11月6日 05:23 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
rel="sponsored" are counted./go/, /out/, /recommends/, /refer/ by default, changeable with a filter).corvet-stats folder to /wp-content/plugins/, or install the plugin from the Plugins screen.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.
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.
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.
No. It makes no external requests and does not use third-party services.
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;
} );
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.
Add add_filter( 'lstats_trust_cloudflare', '__return_true' ); so the plugin trusts the Cloudflare headers on your setup.
Yes. Return false from the lstats_should_track filter, for example for visitors who opted out on your site.
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.
MySQL 5.7+ or MariaDB 10.2+. On older versions the plugin shows an admin notice because its tables cannot be created.
lstats_should_track and lstats_trust_* filters.