Affiliate cookie duration is the length of time after someone clicks your link during which you will still be credited if they buy or sign up. With a 30-day cookie, a visitor who clicks today and purchases three weeks later still earns you commission; on day 31 they do not. Windows range from a single day to "lifetime", depending on the programme.
Duration matters, but far less than beginners think. Most conversions happen soon after the click, and a programme's conversion rate and payout usually matter more than an extra few weeks of cookie. Here is how affiliate cookies work and how to judge them.
How do affiliate cookies work?
When a visitor clicks your affiliate link, the programme's tracking system records the click and stores an identifier, typically in a small cookie in the visitor's browser or as a click ID passed to the merchant's site. When that visitor later converts, the merchant's system reads the identifier, matches it to your click and credits your account.
- Click is recorded with your affiliate ID and a timestamp.
- A cookie or click ID is set with an expiry date (the cookie duration).
- The visitor browses, leaves, perhaps returns later.
- On conversion, the system checks for a valid, unexpired identifier.
- If found, the sale is attributed to you and appears as pending commission.
Many modern programmes also use server-to-server (postback) tracking, which relies less on browser cookies. The principle of an attribution window is the same.
What is a 30-day cookie?
A 30-day cookie means the programme will credit you for conversions within 30 days of the visitor's last qualifying click on your link. Common windows you will see:
| Window | Typical of | What it means for you |
|---|---|---|
| 24 hours | Large retailers with impulse purchases | You need visitors ready to buy now |
| 7–30 days | Most retail, software and subscription programmes | Covers people who compare before buying |
| 60–90 days or more | Higher-value or considered purchases | Useful for long research cycles |
| "Lifetime" | Some revenue-share deals | Usually means the customer is tied to you once they sign up, not that the click cookie lasts forever |
Always read the exact wording in the programme terms. "Lifetime" can refer to the length of the commission on an account, which is a different thing from the cookie window. Our guide to lifetime revshare explains the difference.
Last-click affiliate cookies
Most affiliate programmes use last-click attribution: if a visitor clicks links from several affiliates, the most recent click before the conversion takes the full commission. That means a long cookie does not protect you if another publisher's link is clicked later.
Some programmes use first-click or split credit, and some exclude certain channels, such as coupon or cashback sites, from overriding content publishers. These rules sit in the terms and are worth checking before you invest in a programme. For more, see affiliate attribution models.
Does cookie length matter?
It matters at the margins. What matters more is how many of your clicks convert and what each conversion pays. A hypothetical example:
| Programme A | Programme B | |
|---|---|---|
| Cookie duration | 90 days | 7 days |
| Conversion rate (from your clicks) | 1% | 3% |
| Commission per sale | £30 | £25 |
| Earnings per 1,000 clicks | £300 | £750 |
Programme B wins comfortably despite the shorter cookie, because its landing pages convert better. Compare offers on earnings per click (EPC), not cookie length alone. Our EPC guide shows how to work it out.
Longer cookies do help when your audience researches over weeks, for example comparing software or subscription plans, so treat duration as a tiebreaker rather than the main criterion.
Why cookies do not always last as long as promised
- Browser privacy features. Safari's Intelligent Tracking Prevention can cap the lifetime of some cookies to days or even hours, and other browsers block third-party cookies by default.
- Visitors clear cookies or switch devices. A click on a phone and a purchase on a laptop may not match unless the programme tracks logged-in users.
- Consent choices. In the UK and EU, tracking cookies that are not strictly necessary generally need consent. If a visitor declines on the merchant's site, cookie-based tracking may fail.
- Ad blockers can stop tracking domains loading at all.
This is why many networks have moved to first-party and server-side tracking. If you want to go deeper, read cookieless affiliate tracking and do affiliate cookies need consent.
What to check in a programme's cookie terms
Before you commit content or ad budget to an offer, look for clear answers to these questions in the terms or programme details:
- How long is the attribution window, and does a repeat click restart it?
- Is attribution last-click, first-click or something else?
- Can coupon, cashback or loyalty affiliates override your click?
- Does the programme use server-side or first-party tracking as well as cookies?
- Which actions count: first purchase only, any purchase, sign-ups, rebills?
- How long is the validation period before pending commission is approved?
If a programme cannot answer these simply, treat that as a warning about how it handles disputes later.
Frequently asked questions
Does clicking a link again reset the cookie?
Usually yes. A new click on your link typically restarts the window, although programmes differ. Check the terms if repeat visitors are common for you.
Do I get paid if the visitor buys something different?
Often, yes. Many programmes pay on any qualifying purchase in the window, not only the product you linked to. Some exclude categories, so read the commission table.
Can I see my cookie window in my dashboard?
It is usually listed on the offer or programme details page. If it is missing, ask your affiliate manager and keep their answer in writing.
Next steps
Now you know how attribution works, learn to read the numbers it produces in our guide to your affiliate dashboard, or revisit how affiliate marketing works for the full picture.