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
- You publish a tracking link. It points to the merchant but carries an identifier that says “this visitor came from you.”
- 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.
- They land on the merchant’s site and browse like any other visitor.
- They buy — now, or days later.
- The merchant checks the cookie, sees your ID is still valid (within the attribution window), and records a commission to you.
- 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:
- 24 hours — Amazon-style, short and unforgiving.
- 30–90 days — typical for SaaS and many networks.
- Lifetime — some recurring programs credit you for as long as the customer stays.
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:
- Prefer programs/networks with robust, modern tracking so your clicks aren’t silently lost.
- Don’t cloak or mislead — it breaks attribution and violates disclosure rules.
- Watch your click-to-sale ratio over time; a sudden drop can signal a tracking problem, not just a slow month.
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:
- Direct / network programs (ShareASale, Impact, CJ, Awin, or a brand’s own program): you apply per merchant, get a unique link per program, and manage multiple dashboards. Best rates, most admin.
- Aggregators like Sovrn Commerce / Skimlinks: a single account connects you to tens of thousands of merchants. Their JavaScript can even auto-convert ordinary outbound links into tracked ones, and you get one dashboard and one payout. Less admin and no per-merchant approval grind — at the cost of a revenue share with the aggregator. (Aggregators set cookies and run a script on your site, which is exactly why your privacy policy must disclose it.)
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:
- Confirmed/paid commissions — the only number that’s real money.
- Conversion rate (sales ÷ clicks) — tells you whether your recommendations land.
- 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.