Affiliate cookie duration is the length of time an affiliate program will still credit you for a sale after someone clicks your link, counted from the moment of that click. If a program advertises a 30 day cookie duration and someone clicks your link today but buys 20 days from now, you get the commission. If they buy on day 35, you usually do not.
Contents
The word “cookie” is a holdover from how this tracking has traditionally worked: a small file is set in the visitor’s browser when they click your link, and it stores an identifier that ties a later purchase back to you. The duration is simply how long that file (or an equivalent server side record) is allowed to live before it stops counting.
How the cookie window actually works
The mechanics are the same across most programs, even though the exact duration varies a lot from one to the next:
- Someone clicks your affiliate link. A tracking identifier is created and stored, either in the visitor’s browser or on the program’s own servers.
- The clock starts. From that moment, the program counts down the cookie duration it has set for that offer.
- If a qualifying purchase happens before the window closes, you get the commission. Some programs also require the purchase to happen in the same browser or device; others track across devices using an account login.
- If someone else’s link gets the last click before the purchase, most programs award the sale to that last click, even if your link was clicked first. This is usually called last click attribution, and it is the main reason a long cookie window does not guarantee you keep the sale.
None of this is standardized across the industry. Each program, and sometimes each individual merchant inside a larger affiliate network, sets its own cookie duration as part of its program terms. Durations you will see described range from a few hours up to a year or more, depending on how considered the purchase typically is. A program selling a one time, low cost item tends to use a short window; a program selling an expensive service with a long buying cycle, like software or a financial product, tends to allow a longer one.
Why a longer cookie duration is not automatically better
A 90 day cookie sounds better than a 24 hour one, and for a single sale it usually is. But cookie duration is only one factor in how much a program actually pays you, and it can be misleading on its own:
| What to check | Why cookie duration alone does not tell you this |
|---|---|
| Commission rate | A long cookie on a low commission product can still pay less than a short cookie on a well converting, higher commission one |
| Attribution rule | If the program uses last click attribution, a long window helps you less when readers compare several sites before buying |
| Average time to purchase | A 7 day cookie is plenty for an impulse buy; it is not enough for a reader comparing options over a month |
| Approval rate | A sale inside the cookie window can still be rejected later for a return, cancellation or policy violation |
A cookie window matters most for content that helps readers who are still deciding, since those readers often leave, compare more options, and come back days or weeks later. For content where the reader is ready to buy right after clicking, the exact duration matters much less.
Get the free starter guide
A step-by-step guide to your first 30 days in affiliate marketing, sent to your inbox.
What actually shortens a cookie window in practice
Two things cut a cookie duration shorter than the number printed in a program’s terms, and both are worth knowing before you plan content around a long advertised window.
Browser tracking limits. Apple’s WebKit engine, which powers Safari, documents its Intelligent Tracking Prevention feature publicly: it caps the expiry of cookies created by JavaScript on a landing page to 24 hours when it detects link decoration (the kind of tracking parameter affiliate links commonly use), and it deletes cookies created by JavaScript and similar script writable storage after 7 days with no further visit to the site, regardless of what duration the program intended. A program can advertise a 60 day cookie, but in Safari that tracking identifier may not survive anywhere near that long unless the program uses a tracking method that is not affected by these rules.
Chrome has not followed the same path. In an October 2025 update, Google’s Privacy Sandbox team confirmed that Chrome is keeping its current approach of offering users a choice about third party cookies rather than removing them, reversing an earlier plan to phase them out entirely. That makes Chrome’s behavior more predictable for affiliate tracking today than it looked a couple of years ago, but Safari and other browsers with their own tracking prevention can still cut a cookie short regardless of what Chrome does.
A later click from another affiliate. Under last click attribution, a reader who clicks your link on day one and then clicks a different affiliate’s link for the same product on day ten usually has the sale credited to that second click, even though your cookie had not expired. The practical duration of your cookie, in other words, is often shorter than the printed number once you account for how many other links a reader is likely to click before buying.
If you are outside the US
Cookie duration itself works the same wherever you are, since it is set by the program, not by the country you promote from. What is worth checking from outside the US is less about the window length and more about what happens around it: whether the program accepts affiliates based in your country at all, which is covered in affiliate programs that accept international affiliates, and how you actually get paid once a sale inside that cookie window is approved, which I cover in affiliate programs that pay through PayPal, Payoneer or Wise. A generous cookie window does not help much if the program will not pay out to your country in a method you can actually use.
How to check a program’s real cookie duration
Do not rely on a figure quoted in a blog post or a comparison table, including this one, for any specific program. Cookie durations are set in the program’s own terms and can change. Before you plan content around a program’s cookie window:
- Read the program’s own terms or FAQ page for the stated duration, not a third party summary of it.
- Check whether the terms mention last click attribution or any other rule that can override the window before it expires.
- If the program’s dashboard reports your own click to sale timing, use that over the advertised number; it reflects what is actually happening with your traffic, browsers and audience.
In short
Affiliate cookie duration is the time limit a program sets on crediting you for a sale after a click, and it varies by program and sometimes by individual merchant. A longer window generally helps, but last click attribution, browser limits like Safari’s Intelligent Tracking Prevention, and the program’s own approval rules can all make the real window shorter than the advertised one. Check the program’s current terms directly, and judge a cookie duration alongside commission rate and how long your audience typically takes to decide, not on its own. For the bigger picture of how clicks turn into commission in the first place, see how to start affiliate marketing; for the related metric that tells you what each click is actually worth once sales come in, see what is EPC in affiliate marketing.
Frequently asked questions
What is a good affiliate cookie duration?
There is no fixed good number; it depends on the product. A short window of a day or two can be enough for an impulse purchase, while a buying decision that takes weeks benefits from a longer window. Compare the duration to how long your own audience typically takes to decide before buying.
Does the cookie duration restart if someone clicks my link again?
Usually yes. A new click typically creates a new tracking identifier and restarts the countdown, which is one reason repeat visitors who click your link again before buying still get credited to you.
What happens if two affiliates’ cookies are both active when someone buys?
Most programs use last click attribution, meaning the affiliate whose link was clicked most recently before the purchase gets the commission, even if an earlier click from a different affiliate is technically still inside its own cookie window.
Can a browser cut an affiliate cookie short before it officially expires?
Yes. Safari’s Intelligent Tracking Prevention caps certain JavaScript set cookies to 24 hours when it detects link decoration, and removes script writable storage after 7 days without a repeat visit, regardless of the duration a program has set.
Where do I find the real cookie duration for a specific program?
In that program’s own terms, FAQ or affiliate dashboard, not in a third party comparison article. Durations are set by each program individually and can change, so the program’s current page is the only reliable source.
Sources
- WebKit: Tracking Prevention (accessed 2026-11-08)
- Privacy Sandbox (Google): Update on plans for Privacy Sandbox technologies (accessed 2026-11-08)
