| 开发者 | aph5 |
|---|---|
| 更新时间 | 2026年9月15日 01:26 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
hopcount-click-tracking folder to /wp-content/plugins/, or install it from the Plugins screen.Yes, by design. The tracking token is part of the cached HTML and the click beacon goes to a REST endpoint that bypasses page caches. WP Rocket, WP Super Cache, W3 Total Cache, Cloudflare APO and similar all work without special configuration.
No. Only hourly aggregate counts per link are stored. The optional rate limiter keeps a short-lived per-IP counter in your object cache (a few seconds to a minute) and never writes it to the database.
There are no cookies, no personal data and no per-visitor records, so no consent banner is needed for this plugin. Always check with your own adviser for your specific situation.
No. Links keep their original href. The plugin only adds a data attribute at render time.
Any link in post or page content whose host is not your site (including its www and non-www forms) and not in your internal-hosts list. Links elsewhere in the theme (menus, widgets, footers) are not tracked.
Yes, since 1.2.0. The plugin sends a small signed request for each same-site link to your own server, with redirects disabled, and reads the answer. If the answer is a redirect to another host, the link is tracked under that destination, exactly like a link written out in full, so the host filter, labels and grouping all work. If the answer is a normal page, a 404 or an on-site redirect, the link stays untracked. Redirects made by Redirection, Pretty Links, ThirstyAffiliates, your web server or your host all look the same to this check. Answers are kept in a small table and re-checked about once a week by WP-Cron. It is best-effort: redirects that depend on cookies, geography or the request method are not seen, and redirect rules applied at a CDN in front of your origin are not visible to it.
No. Work is bounded by content, not by traffic: one row per distinct same-site link, checked about once a week. An uncached page view checks at most three never-seen links with a three-second budget; everything else is done by cron in small batches. Any transport error pauses all checks for an hour, there is a daily cap of 10,000 requests, and the Status screen shows the state. Fully cached page views never touch it. To turn the feature off entirely, define the constant OCTK_DISABLE_RESOLVE as true or return false from the octk_resolve_enabled filter; behaviour then matches 1.1.x.
Visitors and logged-in users whose role is not in the excluded-roles list (administrators and editors by default).
Yes, by adding two filters in a small site plugin or your theme's functions.php:
add_filter( 'octk_report_capability', fn() => 'edit_published_posts' );
add_filter( 'octk_label_capability', fn() => 'edit_published_posts' );
Not yet. Activation on a multisite network is refused.
Data is kept by default. Tick the option on the Settings screen if you want the tables and settings removed when the plugin is deleted.
octk_resolve_enabled, octk_pre_resolve_same_site, octk_resolve_ttl, octk_resolve_daily_cap, octk_resolve_probe_origin, octk_resolve_probe_sslverify; new action octk_resolution_changed; new constant OCTK_DISABLE_RESOLVE.hopcount-click-tracking). Code prefix, hooks, tables, options and the REST route are unchanged, so existing data and site code carry over.octk prefix.