Click tracking and privacy
What is recorded when a visitor clicks, what is counted without identifying anyone, and how to keep the numbers honest.
This section controls what happens when a visitor clicks one of your affiliate links, and the small script that does it (it loads only when something needs it: with nothing stored or sent, it does not load at all).
Clicks
- Store clicks in WordPress: feeds Analytics, the revenue estimate and the digest reports. Turn it off if this site must keep visitor activity out of its own database; those screens then stop updating.
- Keep click history: forever, or a number of days. Details of each click older than that (exact time, referrer and price) are deleted for good, after each day has been summed into daily totals per product, page and placement, which are kept, so Analytics still shows the full history.
Views
- Count product views (for click-through rate): a box counts as viewed once half of it has been on screen for a second. Only totals per product, page and day are kept: no cookies, no IP addresses, nothing that identifies a visitor. It adds one small request per page view, sent as the visitor leaves, and needs "Store clicks" on.
- Page views counted: every page view, or a share of them to send fewer requests on a very busy site (the totals are then scaled estimates).
Keeping the numbers honest
On the page these are two folded groups, Keeping the numbers honest and Visitors behind a proxy or CDN, while their settings are at the defaults: choose a title to open one.
- Ignore crawlers and scripts: search engines, uptime monitors, link checkers, AI crawlers and headless browsers announce themselves and are not counted. Turning it off raises your numbers, not their accuracy.
- Limit bursts: these reports can be sent by anyone, so one visitor sending far more than a person could, or a flood against the whole site, is dropped silently. You set how many reports one visitor may send per minute (10 to 1000). Nothing readable is kept.
- Header with the real visitor address: behind a proxy or CDN, name the header your own proxy sets. Without one, visitors behind a proxy cannot be told apart.
- Proxy addresses you trust (shown once a header is named): one address or range per line, or the word cloudflare for Cloudflare's published ranges. With any listed, the header is believed only for a visitor whose connection comes from one of them, so a request sent straight to your server cannot choose its own address; with none listed, the header is believed from any connection, as before. The same rule decides which address Geotargeting looks up by IP: a forwarding header nobody vouched for is not believed, and that visitor keeps the product's own link.
- On a site with an external object cache (Redis or Memcached) the per-visitor limit and the Geotargeting lookup budget are counted in one step, so a burst cannot overshoot them; without one they are counted approximately, and a few requests in the same instant can pass.
Audience
"Count visitors by country, device and how they arrived" shows the Audience report in Analytics. To count each visitor once a day the plugin combines their IP address and browser with a secret that changes daily into a short code that cannot be reversed, keeps it for two days at most, and stores only the resulting counts. The country comes from your host or CDN's own header; the address is never sent to anyone. Because the code comes from an IP address it counts as personal data while it exists: WordPress's suggested privacy text (Settings, Privacy) covers it.
Consent and your own analytics
- Only record visitors who agreed to statistics: asks a consent tool that supports the WP Consent API (such as Complianz or CookieYes) before recording a click, view or audience count. With no such tool active, nothing is recorded while this is on, and counts cover only visitors who agreed, so they are lower than your real traffic.
- Also send each click to Google Tag Manager (a dataLayer event), Google Analytics 4 (gtag.js) or Matomo. The screen warns if both Tag Manager and GA4 are on, which would count every click twice when GA4 is installed through Tag Manager.