How Affiliate Tracking Works and Why Sales Go Missing
Written by Edward Cranmer on 20 minute read
Affiliate tracking connects every sale to the partner who drove it. Here is how it works and how to keep every sale on record.

When a partner sends you a customer who buys, tracking is what tells you the sale came from them, so you know who to pay. Get it right and partners are paid fairly, and your reports show where your revenue really comes from. When sales slip through untracked, partners lose earned commission and your programme looks smaller than it is.
Affiliate tracking records which partner sent a customer and credits that partner when the customer buys. A unique link carries the partner's ID, a cookie or the brand's server stores it, and a conversion tag reports the sale to the network, which pays the commission. Every part of how affiliate marketing works relies on that process.
This guide explains how tracking records a sale, why some sales go missing, and how brands and publishers can set it up to catch them.
What is an affiliate link
An affiliate link is a web address unique to one partner. It takes people to a brand's site like any other link, and it also carries IDs for the brand's programme and the partner who shared it. When someone clicks and goes on to buy, those IDs tell the network which partner to credit.
You'll also see them called tracking links, referral links or partner links. On Awin, every link carries the advertiser's ID (awinmid) and the publisher's ID (awinaffid), along with the page the customer should land on. Here's how those parts fit together in a single link.

How affiliate tracking works
Every tracked sale follows the same four steps, from the moment a customer clicks to the moment the partner is paid.

- The click. A customer clicks a partner's link. The click passes through the network, which records it and adds a unique click ID to the landing page address before the customer arrives on the brand's site.
- The record. A cookie in the customer's browser stores the click: which programme it belongs to, the date and time, and any extra details in the link. The cookie stays valid for a set period called the cookie window. Thirty days is the industry standard, and each programme sets its own.
- The sale. When the customer buys within the cookie window, a conversion tag on the order confirmation page sends the order details to the network. A brand can also send the same order from its own server, which acts as a backup if the browser blocks the tag.
- The commission. The network matches the sale to the click and applies the programme's attribution rules. The brand then validates the sale, approving it or declining it if the order is cancelled or returned, and the partner is paid.
Commission on a sale can be a percentage or a fixed amount, known as cost per acquisition (CPA).
Some programmes pay per click (CPC) or per lead (CPL) instead, and tracking records each of those actions the same way.
First party and third party cookies
A first party cookie is set on the brand's own domain. A third party cookie is set on another company's domain, such as the network's. Browsers increasingly restrict third party cookies to limit tracking across sites, and first party cookies set by the site the customer is visiting are treated more favourably.

That difference shapes how tracking is built today. On Awin, the MasterTag on the brand's site sets first party cookies, so the click is still recorded when a browser blocks third party ones.
Who gets the credit
When a customer clicks links from more than one partner before buying, the programme's attribution rules decide who earns the commission. Awin typically applies last click: the most recent click wins, and a click outranks weaker signals such as an ad view.
Some brands prefer to share credit across partners who helped earlier in the journey, using multi touch models. Our guide to attribution models compares the options.
The tracking methods that work together
Each tracking method has a weak spot. Tags and cookies in the browser are simple to set up, and privacy settings or ad blockers can stop them. Server side tracking skips the browser and takes more work to install. Awin's guidance is to combine several methods so that when one misses a sale, another records it.
Here's what each method does and the gap it covers.
| Method | How it records the sale | What it covers |
|---|---|---|
| MasterTag | Sits on every page of the brand's site and stores the click in a first party cookie | Browsers that block third party cookies |
| Conversion tag and Fallback Pixel | Sends the order details from the confirmation page, with the pixel as a backup when other methods fail | A tag that fails to load at checkout |
| Server to server | The brand's server sends the order and click ID straight to Awin | Ad blockers and browser privacy settings |
| App tracking | A mobile measurement partner records installs and in app sales and sends them to Awin | Customers who move from a link into the brand's app |
| Voucher code tracking | Credits the partner whose exclusive code the customer used | Sales with no affiliate cookie present |
| Bounceless Tracking | Sends the customer straight to the brand's site and records the click in the background | Delays from redirecting through the network |
Server-to-server tracking
With server-to-server (S2S) tracking, the sale is reported by the brand's server instead of the customer's browser. When a customer lands from a partner link, the brand's site saves the click ID from the address. When they buy, the brand's server sends the order to Awin, for example through the Conversion API, with that click ID attached. Awin then matches the sale to the click.
S2S runs alongside the conversion tag. It catches sales the tag misses when a script is blocked or fails to fire.

Awin's Conversion Protection Initiative asks advertisers to upgrade to S2S. Our guide to server-to-server tracking covers the setup in more depth.
App tracking
A customer who taps a partner link and finishes their purchase inside the brand's app leaves the browser behind, so the cookie can't follow them. App tracking closes that gap with a mobile measurement partner (MMP). The brand adds the MMP's software to its app, and the MMP sends installs and in app sales back to Awin as postbacks, so the partner who drove them is credited.
Brands with a transactional app are asked to enable app tracking under the Conversion Protection Initiative. Tracking sales in apps goes into the setup.

Voucher code tracking
Voucher code tracking credits a sale to the partner whose exclusive code the customer entered at checkout, even when no affiliate cookie is present. That makes it useful for codes shared on social media, in emails or offline, where a link may never be clicked.
Each programme's terms decide what happens when a code and a link point to different partners. Our guide to voucher attribution explains how those conflicts are settled.
Bounceless Tracking
Standard affiliate links send the customer through the network before they reach the brand's site. Bounceless Tracking removes that step. The customer goes straight to the brand's site, and the click is recorded in the background.
Publishers switch it on by installing the Publisher MasterTag on their own site. Brands benefit too, through faster journeys to their site and more visibility of the pages that referred each sale.
Six reasons affiliate sales go untracked
A sale goes missing when the customer buys and nothing links that order back to the partner's click. The partner loses commission they earned, and the brand's reports undercount the channel. Each cause has a fix, and most fixes come down to running more than one tracking method.
Browser privacy settings affect a large share of UK shoppers. Google confirmed in April 2025 that Chrome will keep offering third party cookies and leave the choice to users, so the restrictions come mainly from Safari and Firefox.

Here are the common causes, what each one does to tracking, and how to fix it.
| Cause | What happens | The fix |
|---|---|---|
| Browser tracking prevention | Safari blocks third party cookies, and Firefox confines each cookie to the site that set it | Set first party cookies with the MasterTag and add server to server tracking |
| Declined consent | Tracking cookies can't be set for customers who say no on the cookie banner | Pass consent information to the MasterTag and offer partners voucher codes, which track without cookies |
| Ad blockers | Tracking scripts are stopped before they load | Send orders from your server through the Conversion API |
| Cleared cookies or a new device | The record of the click is gone by the time the customer buys | Use cross device tracking and voucher codes to connect the sale to the partner |
| A broken tag after a site change | A new checkout, theme or tag manager setup stops the conversion tag firing | Run a test transaction after every change to your site |
| A purchase in the app | The browser cookie can't follow the customer into the brand's app | Set up app tracking with a mobile measurement partner |
Cookie consent in the UK
UK law requires consent before a site sets cookies for advertising purposes, and the ICO's guidance treats ad affiliation and measurement as part of that. When a customer declines tracking cookies on the banner, a standard affiliate click can't be recorded with a cookie.
Some activity may count as strictly necessary, such as the cookies a cashback or reward site needs to give the customer the reward they signed up for. When a brand passes consent information to the Awin MasterTag, it recognises those partners automatically.
Voucher code tracking works without cookies at all. Check how the rules apply to your own site with your legal or privacy team.
How brands set up affiliate tracking
Setting up tracking starts with your website's platform. In Awin, the Tracking Installation Guide (Support > Integration) asks how you want to install tracking. If your shop runs on an ecommerce platform, a ready made plugin is the easiest route.
Awin has integrations for 13 platforms, including Shopify, WooCommerce, PrestaShop, Magento and Shopware 6. A custom built site can have tracking installed directly, with help from Awin's Global Integrations team.

Whichever route you take, a complete setup has these parts:
- The MasterTag on every page. Add it to every page of your site, including the order confirmation page, and leave it off pages that handle payment details. It sets the first party cookie and loads any partner technology you approve.
- The conversion tag on the confirmation page. It sends each order's value and reference to Awin. The Fallback Pixel sits alongside it to record the sale if the tag fails.
- Server-to-server tracking. Your site saves the click ID when a customer arrives from a partner, and your server sends each order with that ID through the Conversion API.
- App tracking, if you sell through an app. Set up one of Awin's supported mobile measurement partners so in app sales reach Awin.
- Consent signals. Pass your cookie banner's consent choices to the MasterTag so it sets cookies only where it's allowed to.
You can also send extra details with each order, known as custom parameters, so you can report on the information that matters most to your business.
How to check your affiliate tracking works
Run a test transaction when you go live and after any change to your site, such as a new checkout, theme or tag manager setup. In Awin, go to Support > Integration > Tracking Diagnosis and select "Create a test transaction", then follow the steps to place an order and check it tracked.

Between tests, compare your own orders with the tracked sales in Awin, and review any transaction queries partners raise. Queries left unreviewed are approved automatically after 75 days.
If a test sale doesn't track, contact your Awin contact or the support team. Once tracking is reliable, you can measure affiliate performance with confidence.
How publishers track their affiliate links
Get your tracking links. Every link you share needs your publisher ID in it. Link Builder in the Awin platform turns a page on an advertiser's site into a tracking link. MyAwin, Awin's Chrome extension, does the same from your browser while you're on the advertiser's page.
Advertisers can also build deep links to specific product or category pages and send them to you. When they share a link through the Communication Centre, your publisher ID is added automatically.

- Cover your whole site. Convert-A-Link automatically turns advertiser links on your site into tracking links once you switch it on, so older posts and links you add later are tracked too.
- See which content earns. Add a click reference to your links, such as the article or placement name. It shows up in your reports, so you can see which pages and positions drive sales. MyAwin can track up to six click references.
- Check the terms before you promote. Each programme sets its own cookie window and attribution rules, and both are on the programme's profile. With last click, a customer who later clicks another partner's link before buying credits that partner.
- Report a missing sale. If a customer bought through your link and the sale doesn't appear, raise a transaction query in Awin with the order details. The advertiser reviews it like any other sale.
All of these are on Awin's publisher tools page.
FAQs on affiliate tracking
How are affiliate links tracked?
Affiliate links are tracked through the IDs inside the link. When a customer clicks, the network records the click and a cookie stores it on their device. When they buy, a conversion tag or the brand's server reports the order, and the network matches it to the click to credit the partner.
How long does an affiliate cookie last?
It depends on the programme. Each one sets its own cookie window, with 30 days as the industry standard. A sale only earns commission if the customer buys within that window. Publishers can check the window on each programme's profile before promoting it.
What is cookieless affiliate tracking?
Cookieless affiliate tracking records sales in ways that depend less on cookies in the customer's browser. Server to server tracking sends the order straight from the brand's server to the network, and voucher code tracking credits the partner whose code was used. Both help when browsers or consent choices block cookies.
Can a voucher code override an affiliate link?
Only if the programme's rules allow it. Some brands credit the partner whose voucher code was used, even when another partner's link was clicked last. Awin's Voucher Attribution can also credit the code's owner when no affiliate cookie is present. Before promoting codes, publishers should read the advertiser's voucher terms.
Do affiliate links have to be disclosed?
Yes. In the UK, the CAP Code requires marketing to be obviously identifiable, and the ASA's guidance confirms this covers affiliate links on a publisher's own site and social media. A clear label such as "Ad" is the simplest way to comply. Brands share responsibility for the ads that promote them.
Ready to strengthen your affiliate tracking?


