How affiliate tracking links actually work — cookies, attribution & SubIDs

You share a link, someone buys, you get paid. Simple on the surface — but understanding the machinery underneath helps you choose better programs, track what’s actually working, and avoid losing commissions you earned. Here’s the whole chain in plain English.

The journey of a single click

  1. You publish a tracking link. It points to the merchant but carries an identifier that says “this visitor came from you.”
  2. A reader clicks. They’re redirected through the network’s servers (often in milliseconds) and a cookie is dropped on their device recording your ID and the time.
  3. They land on the merchant’s site and browse like any other visitor.
  4. They buy — now, or days later.
  5. The merchant checks the cookie, sees your ID is still valid (within the attribution window), and records a commission to you.
  6. The network confirms the sale (after any return/refund period) and eventually pays out.

Every concept below is just a detail of that chain.

Cookies and the attribution window

The attribution (or cookie) window is how long after the click a purchase still credits you. Common windows:

Longer windows matter most for considered purchases, where people research for days before buying. A 24-hour window on a $2,000 B2B tool will lose you most of the commissions you actually earned.

Last-click attribution is the usual rule: if the buyer later clicks another affiliate’s link before purchasing, that affiliate gets the credit. This is why being the final, most useful touch (a detailed review at the decision point) converts better than being an early, forgettable mention.

Why tracking is getting harder (and what to do)

Third-party cookies are being restricted across browsers, and privacy tools block trackers. Networks have adapted with server-side tracking, first-party redirects, and other mechanisms — but the practical takeaways for you are simple:

SubIDs: the feature that makes you smarter

A SubID is a custom tag you append to a tracking link to label where it came from — a specific article, button, email, or campaign. The network reports conversions back broken down by SubID.

Why it matters: without SubIDs you know that you earned $300; with SubIDs you know the $300 came from your “best email tools” post and not the other nine you wrote. That tells you exactly what to make more of. Set a SubID convention early (e.g. article-slug or newsletter-2026-06) and your analytics get dramatically more useful.

Networks vs aggregators

There are two main ways to get tracking links:

For beginners, the aggregator route removes a huge amount of friction; established publishers often run a hybrid — aggregator for the long tail, direct deals for their top merchants.

Reading your reports without fooling yourself

Three numbers, in order of importance:

  1. Confirmed/paid commissions — the only number that’s real money.
  2. Conversion rate (sales ÷ clicks) — tells you whether your recommendations land.
  3. Clicks — top-of-funnel only; lots of clicks with no sales usually means a placement or audience-fit problem.

Beware pending vs confirmed: commissions sit “pending” through the return window and some get reversed (refunds, cancellations). Forecast on confirmed, not pending.

The bottom line

A commission is the end of a chain: link → click → cookie → window → purchase → confirmation → payout. Understand the window and last-click rule so you choose programs that actually credit you; use SubIDs so you know what’s working; and pick the network/aggregator mix that matches your stage. Then point your effort at the part that drives all of it — content people trust.

← All guides