Tracking & analytics · Glossary

Click ID Unique click identifier (click_id, gclid, fbclid)

In plain words

A click ID is a unique serial number stamped on every single click. When a sale or sign-up happens later, that number comes back with it, so everyone can see exactly which click, and therefore which ad and which affiliate, produced the result.

Definition

A click ID is a unique string generated for each click and carried through every hop of the funnel so that a later conversion can be matched to it. In affiliate tracking there are usually several at once: the affiliate’s tracker mints its own ID, the network generates another when the click hits its tracking link, and the advertiser stores the network’s ID with the order. Scaleo, for example, creates a 32-character click_id for every click and accepts the affiliate’s own value in aff_click_id. When the conversion happens, each system receives the ID it issued in a postback and looks up the click stored under it.

Ad platforms use the same idea for their own attribution. Google Ads auto-tagging appends gclid to the landing URL, Meta appends fbclid, Microsoft Advertising msclkid and TikTok ttclid. These values let the platform connect a later conversion upload or server event to the ad that was clicked, which is also why landing pages must never strip unknown query parameters from the URL.

Click IDs are fragile in transit. They disappear when a redirect drops the query string, when a prelander links to the offer without passing the value on, when it is sent under the wrong parameter name, or when the browser removes it: since iOS 17, Safari’s Link Tracking Protection strips known identifiers such as gclid and fbclid from links opened in Mail, Messages and Private Browsing, while leaving UTM tags intact. A lost ID does not stop the sale; it only stops the credit.

Good practice is short. Generate one ID per click on the server side of the tracker, pass it to the network in the dedicated click-ID parameter rather than a generic sub-ID field, confirm that the network returns it through the right postback macro, and test one click from ad to conversion before spending. When reports diverge, the first thing to count is how many conversions arrived with an empty or unknown click ID.

In practice

Worked example — illustrative numbers

Following one click through three systems

A visitor clicks a native ad, reads a prelander and signs up for a VPN trial. Here is the chain of identifiers that makes the sign-up count.

StepWhat happensID in play
1Native source sends the click to the trackersource macro, e.g. n-88412
2Tracker logs the click and shows the prelandertracker ID 7f3a9c…
3Prelander button opens the network tracking linkaff_click_id=7f3a9c…
4Network logs its own click, redirects to the offernetwork click_id (32 characters)
5User signs up; advertiser posts back to the networknetwork click_id
6Network posts back to the tracker7f3a9c… returned from aff_click_id
7Tracker reports the conversion to the native sourcen-88412

If step 3 loses the value, for instance because the prelander button was hard-coded with the plain tracking link, the network still records and pays the conversion, but the tracker receives a postback with an empty ID and the native source never learns which placement worked. Optimisation then runs on guesswork. IDs are illustrative.

Common mistakes

  • Generating the click ID only with browser JavaScript. When the script is blocked the click has no ID; server-side generation in the tracker is safer.
  • Sending the click ID in a sub-ID field that the network truncates, hashes or does not return in postbacks.
  • Hard-coding the offer link on the prelander instead of passing the tracker token, so every conversion comes back without an ID.
  • Passing a campaign or creative ID where a unique value is expected; the network may then treat real conversions as duplicates.
  • Never testing clicks from iOS Mail or Private Browsing, where some known click identifiers are removed before the page loads.

Go deeper

FAQ

What is a click ID in affiliate marketing?

A unique value created for each click and passed along to the offer, so the conversion can be matched back to that exact click and, through it, to the affiliate, source and creative.

What is the difference between a click ID and a sub ID?

A click ID is unique to one click and identifies one visit. Sub IDs are labels you choose, such as source or campaign, that repeat across many clicks and group them in reports.

Why do conversions arrive without a click ID?

Usually a redirect or hard-coded link dropped the parameter, it was sent under the wrong name, or the postback macro is not mapped. On some iOS surfaces known identifiers are also stripped.

What are gclid and fbclid?

Click identifiers that Google Ads and Meta add to ad URLs automatically, so their systems can tie later conversions back to the ad click that produced them.

Sources

  1. Parameters and Macros — Scaleo Help Center (help.scaleo.io)
  2. About auto-tagging — Google Ads Help (support.google.com)
  3. Link Tracking Protection in iOS 17 — 9to5Mac (9to5mac.com, 2023)
  4. Postback troubleshooting for ad networks — AppsFlyer Help Center (support.appsflyer.com)

References are listed as plain text on purpose; look them up by title and publisher. Updated: 2026-10-09.

Terms are the easy part.

Run them inside a network with real tracking, roughly 48-hour payouts and a dedicated manager.

Join the network