Skip to content

How clicks are counted ​

Learn what counts as a click and a unique click, which visits are left out, and why Clicks and All-time clicks can differ.

A click is one visit to your short link that Link Manager Pro sends on and records. Here's how link clicks are counted:

  • Clicks in reports are the clicks recorded with their details. All-time clicks is a lifetime counter per short link.
  • A unique click is a visitor's first click on one short link, told apart by a cookie or by IP address plus browser.
  • Not counted: known bots while Ignore bots is on, Blocked IP addresses, clicks after the 30th in 5 minutes from one address on the same short link, browser preloads, and HEAD requests. Those visitors still reach the destination, except a preload, which the browser drops. Your own clicks as an administrator do count.

What counts as a click? ​

A click is a visit to a short link, or to one of its other addresses, while the link is active. Link Manager Pro redirects it and counts it. That happens on your server, before the destination page loads. No script runs in the visitor's browser.

Each recorded click keeps:

  • the time and the short link
  • the visitor's IP address, shortened if Anonymize IP addresses is on
  • the browser details (the user agent), from which reports work out device and browser
  • the page the visitor came from (the referrer), and the post on your site the click came from, when there is one
  • the country, if it's known (where it comes from)
  • the tracking cookie's random ID, when the visitor has one
  • the routing rule that matched, any utm_ values in the address, and the WordPress user of a logged-in visitor
  • whether it's the visitor's first click on this link (unique)

Some visits are never clicks. A browser's background load of your short link, such as Chrome's address-bar preloading, isn't counted. The browser loads the link for real when the person follows it, and that visit counts once. A scheduled or expired link doesn't redirect, so nothing is counted. On a password-protected link, the password form isn't a click. The click counts once the right password lets the visitor through.

Clicks and All-time clicks: why are there two numbers? ​

Clicks counts the click records you still keep. All-time clicks, in the Short Links list, is a counter that goes up by one with every counted visit. The two start equal and drift apart, mostly for these reasons:

  • Click tracking was off for a while. Visitors are still sent on, and All-time clicks still goes up, but no click is recorded. The Dashboard shows a notice while tracking is off. A report shows the same notice at the top when it has clicks, and says Click tracking is off in its chart when it has none.
  • Keep click data for deleted older click records. All-time clicks doesn't go down when that happens.
  • A backup was restored. Restoring Short links without Clicks keeps each link's counter from the backup (Back up and restore).

So All-time clicks is often higher than Clicks. Bots, Blocked IP addresses and clicks over the repeat limit count in neither number.

A routing rule's Clicks condition uses the same counter as All-time clicks. The Rank in a link report's At a glance goes by all-time clicks too.

What is a unique click? ​

A unique click is a visitor's first click on one particular short link. A click isn't unique when an earlier click on the same link has either:

  • the same tracking cookie, from any IP address, or
  • the same stored IP address and the same browser details.

Every click still counts in Clicks. Being unique only adds it to Unique clicks as well. One visitor who clicks three of your short links adds three unique clicks, one per link.

Three things change who counts as "the same visitor":

  • Anonymize IP addresses (on by default on new sites). Stored addresses are shortened, so more people count as one: anyone on the same network with the same browser. Without it, people behind one public address, like an office router, with the same browser count as one too.
  • Cookie consent. Without the cookie, Link Manager Pro can only compare IP address and browser.
  • Keep click data for. Uniqueness has no time limit of its own. But once a visitor's earlier clicks are deleted, their next click is unique again.

A private browser window doesn't make your test a first click. It has no cookie, but it usually sends the same IP address and browser details as your normal window.

In a link report, Recent clicks marks each click as New (unique) or Returning in its Visitor column. The total is under Link details, as Unique clicks.

The tracking cookie is named link_manager_pro_id. It holds a random ID, lasts 1 year and exists only to tell first clicks from repeat ones. Link Manager Pro sets it when a visitor goes through a short link or a redirect, and only while Click tracking is on.

  • Say Complianz, CookieYes or Cookiebot is active, and Respect visitor consent is on (the default). Then the cookie waits until the visitor accepts the Consent category, Statistics by default.
  • With none of those plugins active, or with the switch off, the cookie is set without waiting.
  • Without consent, no cookie is set. An existing one is removed the next time the visitor goes through a short link or redirect.
  • The click is recorded either way. Only the cookie waits, so consent changes Unique clicks, not Clicks.

How each consent plugin is read is on Integrations settings.

Which clicks aren't counted? Bots, blocked IPs and repeat clicks ​

Several kinds of visits are left out of the click count. Most are still sent on to the destination. Everything else counts, including clicks by administrators and logged-in users.

Not countedWhenSet it on
Bots and crawlersIgnore bots is on (the default) and the browser name contains a pattern from the bot list, in any letter case. A visit that sends no browser name counts as a bot tooTracking
Blocked IP addressesThe visitor's address matches a line in the list: one address, or a range such as 203.0.113.0/24Tracking
Fast repeat clicksMore than 30 clicks from one IP address on one short link within 5 minutes. The 31st and later aren't counted until the 5 minutes are overFixed, no setting
Browser preloads and prefetchesThe browser loads the short link in the background before anyone clicks it (Chrome's "Preload pages", speculative prefetching, Firefox and Safari previews). The browser drops the answer, and loads the link again when the person follows itFixed, no setting
HEAD requestsA link checker or curl -I asks only for the redirect, not the page. It gets the redirect and no cookieFixed, no setting
Clicks while Click tracking is offNot recorded in reports, but these still add to All-time clicksTracking

Every row except the last counts nowhere, not even in All-time clicks.

The bot list catches link previews too. Pasting your short link into Slack, WhatsApp or Telegram makes those apps fetch it, and those fetches aren't counted. A bot that sends a normal browser name isn't caught: the check reads only that name.

Note

Patterns you enter in Extra bot patterns are added to the built-in bot list. They never replace it, so Googlebot and the other crawlers stay filtered. Tracking settings has the details.

Behind Cloudflare, Link Manager Pro recognizes Cloudflare by its published addresses and reads the visitor's own address and country from Cloudflare's headers. No setting is needed.

Behind another CDN or proxy, every visitor may reach your site from the proxy's address. Blocking and the repeat limit then apply to all your visitors at once. Site Health in WordPress shows a notice when it sees this. Set up Trusted proxy IPs or CIDR ranges or Trust proxy headers to fix that (Advanced settings).

Where does a click's country come from? ​

A click gets its country at the moment it's recorded, from one of three places. A click with neither shows as Unknown in Recent clicks.

  1. Cloudflare. When the visit comes from a Cloudflare address, Link Manager Pro reads the CF-IPCountry header automatically.
  2. A CF-IPCountry or X-Country-Code header from another CDN. Link Manager Pro reads these only when the visit comes from an address in Trusted proxy IPs or CIDR ranges. While that list is empty, it reads them when Trust proxy headers is on. With the default settings, they're ignored.
  3. The GeoIP database, once you download it in the GeoIP database row of the Tracking tab. It needs PHP 8.1 or later.

If the downloaded database can't be read, Site Health says so, and no country is recorded from it. Clicks recorded before a country source was in place keep no country. Setup details are on Tracking settings.

How long is click data kept? ​

Link Manager Pro deletes old click records on its own only when you set Keep click data for under Link Manager › Settings › Tracking. With a number of days set, a daily task deletes every click record older than that, with its IP address and other details. Deleting a short link or a redirect also deletes its clicks or hits.

  • All-time clicks, and the Hits in the Redirects list, don't go down.
  • Reports and the Dashboard show fewer clicks, or none, for the deleted days.
  • A visitor whose earlier clicks were deleted counts as unique again.

Deleted records can't be brought back. The timing and the WP-CLI command are on Tracking settings.

Redirect hits and clicks on your own pages ​

Visits through your redirects are Hits, not clicks. They're counted with the same rules: bots, blocked addresses, the repeat limit and unique visitors. But they're kept apart, so no short link report and no Clicks number on the Dashboard includes them. The details are on How are redirect hits counted?

Clicks on ordinary links between your own pages are counted only while Click tracking and Track clicks on internal links are both on. They're kept apart too (Clicks on links to your own pages).

Where the numbers show up ​

Each screen shows recorded clicks, except the places that use the lifetime counter.

WhereNumberCounts
Short Links listAll-time clicksThe lifetime counter
Link report, At a glanceClicksRecorded clicks on that link
Link report, Link detailsUnique clicksRecorded first clicks on that link
Link report, Recent clicksOne row per click, New or ReturningRecorded clicks, newest first
DashboardClicks, Unique clicks on the chartRecorded clicks on all short links in the date range (14 days when it opens)
Dashboard, All timeAll clicksEvery recorded click on your short links that's still kept
Dashboard, All timeRedirect hits, Internal link clicksCounted apart from clicks
Affiliates and CampaignsClicks, Unique clicksRecorded clicks on their short links

A new click doesn't always show everywhere at once. Short link and affiliate reports keep a saved copy for up to the Refresh reports every time (600 seconds by default). Recent clicks is read fresh. Campaign reports and the Dashboard's top numbers can be up to 60 seconds old (Advanced settings).

A worked example ​

Here's an invented week of yoursite.com/link/spring-sale, a new short link, with the default settings except where a row says otherwise.

What happensAdds to ClicksAdds to Unique clicksAdds to All-time clicks
Ana opens the link from your newsletter three times on her laptop313
Ben opens it on his phone, then on his work laptop222
You test it twice in your browser as an administrator212
Slack fetches a preview when you share it with your team000
Click tracking is off for a day, and 4 more visitors open it004
Total that week7411

Ben counts twice as unique: his phone and his laptop have different cookies and different browser details. Now say you set Keep click data for to 90 days. Once those 7 clicks are older than 90 days, they leave the report. All-time clicks stays at 11.

Your own test click counts, so expect to see it. Open the short link in your browser, then reload its report.

  1. Your click shows at the top of Recent clicks, and All-time clicks in Short Links goes up by one.
  2. Your first click on that link shows as New. Later tests from the same browser usually show as Returning, even in a private window.
  3. Placed in and Rank update at once. Clicks under At a glance and Unique clicks under Link details catch up when the report's saved copy refreshes, and on a link's first click the chart shows No clicks yet until then (When the numbers update).

Short link redirects are sent with no-cache headers, so the browser asks your site again on every test. Test with a browser, not curl or another tool on the bot list, and stay under 30 tests in 5 minutes. Once you're done, you can keep your office's visits out of the numbers with Blocked IP addresses.

Why don't the numbers match Google Analytics? ​

Link Manager Pro counts a click on your server when the short link is opened, before the visitor reaches the destination. An analytics tool on the destination page usually counts only once that page loads and its script runs. So the two measure different moments and often don't match.

  • A visitor who leaves before the destination finishes loading is a click here, and no visit there.
  • Link Manager Pro records clicks with or without cookie consent and needs no script in the browser. A script-based tool can miss visitors who decline its cookies or block it.
  • Each tool filters bots its own way. Link Manager Pro's bot filter goes by the browser name only.
  • Your affiliate network's dashboard counts by its own rules, which Link Manager Pro can't see.

Compare trends over the same days rather than exact totals. If your short link adds UTM parameters, the destination's analytics can tell those visits apart (UTM parameters and forwarding).

What to change for privacy ​

You can keep counting clicks while storing less about visitors. These settings work on their own or together.

ToDo thisWhat changes
Store shortened IP addressesTurn on Anonymize IP addresses (Tracking tab; on by default on new sites)Countries, blocking and the repeat limit still use the full address. Unique clicks can merge visitors on one network
Keep click details for a set timeSet Keep click data for (Tracking tab)Older records go every day. All-time clicks stays
Set the cookie only with consentKeep Respect visitor consent on, with a supported consent plugin (Integrations tab)Clicks are still recorded. Unique clicks relies more on IP address and browser
Stop recording clicksTurn off Click tracking (Tracking tab)No click details and no new cookie. Visitors are still redirected and All-time clicks still counts

Anonymize IP addresses changes only clicks recorded from then on: stored clicks keep their full addresses. To remove one person's data, see Privacy and personal data.

Get more out of it ​

  • Read Unique clicks next to Clicks. On a link with 40 clicks and 12 unique clicks, that often means the same visitors come back. When the two numbers are close, most people click once.
  • Judge a link by its report, not by All-time clicks alone. The report shows which days, countries, posts and sites the clicks came from.
  • Set Keep click data for to a period you actually look back on, such as 365 days. You keep a year of detail for reports, and each link's All-time clicks keeps its total.
  • Download the GeoIP database before you share an important link. Countries are added only when a click happens, so earlier clicks stay Unknown.
  • Behind a CDN other than Cloudflare, fill Trusted proxy IPs or CIDR ranges on the Advanced tab. Cloudflare is recognized without it. Each click then carries the visitor's own address, so unique clicks and blocking work per visitor. The CDN's country header is read too, if it sends one.

If something goes wrong ​

  • If your test click doesn't show in the report, then look under Recent clicks first: it's read fresh. At a glance catches up within the Refresh reports every time.
  • If All-time clicks goes up but reports don't, then check that Click tracking is on under Link Manager › Settings › Tracking. Turning it on starts recording again; turn it off to undo.
  • If many clicks show as Returning, or all from one country, then your site is probably behind a proxy or CDN. Set up Trusted proxy IPs or CIDR ranges under Link Manager › Settings › Advanced, and empty the list to undo.
  • If crawler visits show up as clicks, then check the visitor's browser name. The bot check reads only that name, and a bot that sends a normal browser name isn't caught. Add part of its name to Extra bot patterns.
  • If returning visitors suddenly count as unique, then Keep click data for may have deleted their earlier clicks. Or Anonymize IP addresses was just turned on: new clicks store a shortened address that doesn't match the full one stored before.

More fixes are on Troubleshooting.