An affiliate commission only exists if two things happen: the sale is recorded, and it is matched back to you. Everything in affiliate tracking is about making that match reliable across browsers, devices, apps and privacy settings that all try, for good reasons, to limit how people are followed around the web.
This guide explains each layer in the order a visitor experiences it, and what can go wrong at each step.
Step 1: the tracking link and the redirect
Your affiliate link rarely points straight at the store. It points at a tracking server first. In a fraction of a second that server:
- records the click with a timestamp, the referring page, the device type and a hashed or truncated network address used for fraud checks,
- creates a unique click ID,
- attaches your publisher ID and any sub-ID you added,
- redirects the visitor to the destination page, passing the click ID along in the URL.
If the redirect chain is slow or broken, visitors drop off before they ever see the product, so speed matters as much as accuracy.
Step 2: the cookie
Traditionally, the merchant or network also stores the click in a browser cookie. When the visitor later reaches the order confirmation page, the cookie tells the system which affiliate sent them. The cookie duration sets how long that memory lasts, from 24 hours to 90 days or more depending on the program.
Cookies have three weaknesses:
- They can be blocked or cleared. Privacy features in browsers limit third-party cookies, and many users clear cookies regularly.
- They don't follow people across devices. Click on a phone, buy on a laptop, and a cookie-only setup sees two different people.
- They can be overwritten. Under last-click attribution, a later affiliate click for the same store usually replaces yours.
Step 3: the conversion signal
When the purchase completes, the merchant has to tell the tracking platform. There are two main ways to do it.
Client-side: the tracking pixel
A tracking pixel is a snippet on the confirmation page that fires in the customer's browser and reports the order. It is easy to install, but it depends on the browser: ad blockers, script errors or a customer closing the tab early can all stop it firing.
Server-side: the postback
A server-to-server postback is sent from the merchant's server directly to the tracking platform, carrying the click ID that arrived with the visitor. Because no browser is involved, it keeps working when cookies are blocked. The trade-off is that the merchant must store the click ID and send it back correctly, which takes a proper integration.
Most serious platforms use both: the pixel covers simple setups and the postback fills the gaps. When they agree, the conversion is confirmed with high confidence.
Step 4: attribution
Once a conversion arrives, the platform decides who earns it. In most programs that means the last valid affiliate click within the cookie window. Some programs split credit or reward the first touch. Our guide to attribution models walks through each option and how it affects creators.
Step 5: validation and fraud checks
Recorded conversions are not final. During the validation period the merchant removes returns and cancellations, and the platform checks for suspicious patterns: impossible click-to-purchase timing, many conversions from the same network address, or clicks with no visible source. Learn more in affiliate fraud explained.
Why the click ID matters so much
The click ID is the thread that ties everything together. It lets a postback work without cookies, lets the platform trace each sale to a specific click for fraud review, and lets you see which link, post or video produced each sale when combined with sub-IDs.
It is also fragile. If a merchant's site strips unknown URL parameters, or a link shortener drops them, the click ID disappears and the sale can't be matched. That's why testing your important links end to end is worth the five minutes it takes.
A quick checklist for creators
- Use the platform's official link generator rather than editing links by hand.
- Add a sub-ID to every link so you can see which content performs.
- Test key links on mobile as well as desktop, especially if the store has an app.
- Prefer deep links to the exact product over homepage links.
- Read each program's attribution and cookie rules so your expectations match reality.
If your numbers still look wrong, our troubleshooting guide on why affiliate sales go missing walks through the most common causes one by one.
Keep learning
This article is part of the Tracking & Attribution hub. For campaign links to your own pages, use our UTM builder, and to compare offers by performance rather than headline rate, try the EPC calculator.