Home / Blog / Guides
🍪

Cookie Duration Explained: How Affiliate Windows Affect Earnings

By Editorial Team · July 04, 2026 · 14 min read

Key takeaways

When a visitor clicks a referral link on your site, the merchant’s server quietly drops a small file onto that visitor’s browser. That file is an affiliate tracking cookie. It contains two pieces of information: your unique affiliate ID and an expiry timestamp. Those two values are all it needs to do its job.

The moment the cookie lands in the browser, a silent process begins. Every time the visitor loads a page on the merchant’s site — the homepage, a product detail page, the checkout flow — the merchant’s system reads the cookie and confirms that this session is attributed to you. Nothing visible happens on the user’s side. The page loads at the same speed, the prices look identical, and no notification announces the cookie’s presence. It simply waits in the background.

If the visitor completes a purchase before the expiry timestamp runs out, the merchant’s platform reads your affiliate ID from the cookie, records the sale, and credits your commission. The whole process is automated. You do not need to do anything further once the click happens.

This is worth stating clearly, because there is real confusion about it. The cookie:

Its sole function is attribution — linking a future purchase back to the affiliate who generated the click that started the journey.

A practical way to picture it: imagine handing someone a stamped ticket before they walk into a venue. The ticket does nothing inside — it just means the box office knows who referred them. An affiliate cookie works on the same principle, except the stamp is read automatically at every stage of the visit.

This mechanism is the foundation of everything else in affiliate marketing. Once you understand how attribution is actually recorded, decisions that might seem arbitrary — why one program pays more, why cookie length appears in program terms at all — start to make immediate practical sense. For a broader look at building your affiliate approach on solid fundamentals, From Beginner to Pro: 12 Affiliate Marketing Best Practices is a useful companion read.

When a visitor clicks your affiliate link, a small text file — a cookie — is written to their browser. That cookie contains your affiliate ID and, critically, an expiry timestamp. Everything else in the attribution chain depends on whether that timestamp has expired by the time a purchase happens.

The Step-by-Step Attribution Lifecycle

Here is how the process unfolds from first click to paid commission:

  1. Click fires. The visitor clicks your affiliate link and is redirected to the merchant’s site.
  2. Cookie is set. The merchant’s tracking server writes a cookie to the visitor’s browser, recording your affiliate ID and the exact date and time the cookie expires.
  3. Visitor leaves. The visitor browses other sites, compares options, and closes the tab. No purchase yet.
  4. Visitor returns. Days later, the visitor navigates back to the merchant — directly, through a search, or from a bookmark.
  5. Purchase event fires. The visitor completes checkout. At this moment, the merchant’s system reads the browser’s cookies.
  6. Expiry check runs. The system compares the current timestamp against the cookie’s expiry date. If the cookie is still valid, your affiliate ID is retrieved and commission is credited. If it has expired, attribution fails and no commission is paid.

The expiry timestamp is the single gate that determines whether all your earlier promotional work converts into revenue.

flowchart LR
  A[affiliate link click] --> B[cookie set with expiry date]
  B --> C[purchase event fires]
  C --> D[commission credited or denied]

The Day 1 vs Day 22 Scenario

Suppose a visitor clicks your link on Day 1. They spend three weeks comparing alternatives — reading reviews, checking competing offers — and finally decide to buy on Day 22.

With a 30-day cookie, the expiry timestamp is set to Day 31. Day 22 falls inside that window, so the merchant’s system reads your affiliate ID and credits the commission. You earn.

With a 14-day cookie, the expiry timestamp is Day 15. By Day 22, the cookie has already expired. The merchant finds no valid attribution, and the commission is denied — even though your link was the original driver of that purchase.

The difference between those two outcomes is not the quality of your content or the strength of your recommendation. It is a single number in a cookie configuration file on the merchant’s server. That is why cookie duration is one of the most consequential — and most overlooked — variables when evaluating affiliate programs to promote.

30-Day vs 90-Day vs Session Cookies: How Window Length Changes Your Earnings

The length of a cookie window is one of the most direct levers determining how much of your traffic converts into commission. Longer windows capture more of the slow-moving buyers who research, compare, and return days or weeks later. Session-only cookies, by contrast, often mean only your most decisive visitors generate any earnings at all.

Cookie Type Typical Program Types Best-Fit Product Categories Approx. Conversion Capture Rate Risk to Affiliate
Session-only Flash sales, deal aggregators Impulse buys, low-cost items Low (10–20% of eventual buyers) High — most referred traffic is lost
30-day Standard e-commerce, software trials Mid-range goods, subscriptions Moderate (40–55% of eventual buyers) Medium — misses longer research cycles
90-day Premium programs, high-ticket offers Travel, furniture, B2B software High (80–95% of eventual buyers) Low — aligns with most buyer journeys

Capture rate estimates assume a typical 30–60-day average buyer decision cycle.

The Real Earnings Gap

Consider a concrete scenario: you are promoting a $200 product at a 10% commission, and your content drives 1,000 qualified visitors per month. The product has a 5% eventual conversion rate — so 50 of those visitors will eventually buy. The average buyer in this niche, however, takes around 60 days to decide.

Here is how your commission changes under each window:

That is the difference between $160 and nearly $1,000 — from identical traffic, identical content, and identical buyer intent.

Choosing the Right Window for Your Niche

Impulse purchases and flash-sale items can work reasonably well with session cookies because buyers decide fast. For anything requiring comparison shopping — electronics, travel, software, or higher-priced goods — a shorter window does not reflect how real buyers behave. When evaluating programs, a 90-day window on a mid-commission product frequently outperforms a higher commission rate tied to a session-only cookie.

Affiliates whose traffic skews toward first-visit researchers who need time to warm up can close more of that gap with deliberate follow-up strategies — Maximizing Affiliate Earnings with Retargeting Ads covers how retargeting fits into this picture.

Most affiliate marketers focus on click-through rates and conversion percentages, but there is a quieter leak that rarely shows up in dashboards: conversions you drove that converted after your cookie expired. This is called lost last-touch attribution, and in high-consideration niches, it happens far more often than people expect.

The Mechanics of Lost Attribution

When a visitor clicks your affiliate link, a cookie is set on their browser. If they purchase within the cookie window, you get credited. If they return and buy a single day after that window closes, the commission goes to whoever touched them last — a retargeting ad from another publisher, a direct visit, or simply no affiliate at all.

The issue is that most real buying decisions do not happen in a single session. Consider the typical journey in a few common niches:

A 7-day or 14-day cookie window is simply incompatible with these buyer journeys. You are doing the heavy lifting of educating and warming the audience, then watching the attribution — and the commission — slip away.

The Compounding Cost Over a Year

The damage scales quietly. Imagine your content sits in a niche where the average buyer journey runs 25 to 40 days and you are working with a 14-day cookie. If even 10 to 15 percent of the conversions you influenced close after your window expires, those lost commissions compound month over month. Across a full year, what looks like a small percentage gap can represent a meaningful chunk of income — the equivalent of losing one or two solid revenue months entirely.

This is why cookie duration deserves the same scrutiny you give your commission rates when evaluating a program. A higher commission rate on a 7-day cookie can easily underperform a modest rate on a 60- or 90-day window, depending on what you are promoting and how long your audience takes to decide.

Raw commission rates are easy to compare — cookie duration requires a little more work. The most useful way to bring both numbers together is through the concept of effective commission: a rough estimate of what you will actually earn per referred visitor, once you account for the probability that the cookie will still be active when they convert.

The formula is straightforward in principle:

Effective commission = stated commission rate × conversion capture probability

Conversion capture probability is your estimate of how many buyers will complete their purchase within the program’s cookie window, given how people typically shop for that product. A 10% commission on a software subscription sounds better than 8% on a similar product — but if the first program runs a 7-day cookie and buyers in that category routinely spend three weeks comparing options, you are handing back a large portion of your potential earnings before a sale is ever recorded.

Match Window Length to the Buying Cycle

The cookie window you need depends heavily on how buyers research and decide:

Use this as a filter, not a rigid rule. A program with a 24-hour window and a 15% rate can outperform a 30-day window at 4% if the product is genuinely something people buy the moment they see it.

Cookie duration is almost always listed in the program’s terms and conditions within the affiliate network dashboard — look for sections labeled “tracking,” “attribution,” or “program details.” If it is not there, treat that as a red flag and ask directly.

When you reach out to an affiliate manager, these questions get to what matters:

  1. What is the exact cookie duration, and does it reset on return visits?
  2. Is there a last-click or assisted-attribution model in place?
  3. What is the average time from first click to conversion in this program?
  4. Are there any plans to change the window length?

That last question matters more than most affiliates realize. Programs occasionally shorten windows without announcement, and knowing whether a change is coming helps you plan content investment accordingly. For a broader checklist of what to look for before committing to any program, From Beginner to Pro: 12 Affiliate Marketing Best Practices is worth working through alongside your cookie analysis.

You cannot extend a merchant’s cookie window. What you can control is how deliberately you move a prospect toward a decision before that window closes. The affiliates who consistently outperform their peers are not the ones with the longest cookies — they are the ones who engineer a tighter path from click to purchase.

Compress Decision Time With Urgency and Bonuses

One of the most effective tools is a limited-time bonus stack tied to a purchase made through your link. If someone clicks through to a project management tool, you could offer a free workflow template bundle that disappears after 48 hours. The product offer itself does not change — your bonus layer creates a reason to act now rather than “think about it.” This works especially well on software, courses, and subscription products where the buyer already intends to purchase and is simply delaying.

Pair this with a structured email follow-up sequence if your traffic enters via a lead magnet. A five-email sequence spread across the first three days post-opt-in — starting with educational content and ending with a direct comparison of options — keeps your affiliate link top of mind precisely during the window when the cookie is alive. How Email Marketing Drives Affiliate Earnings: A Deep Dive

Intercept Buyers at the Bottom of the Funnel

High-intent content intercepts shoppers at the moment they are ready to decide, not just browsing. Publishing comparison posts (“Tool A vs. Tool B: Which is Worth It?”) and dedicated discount or coupon pages targets people who have already done their research and are looking for a final nudge. These pages tend to convert at a significantly higher rate than general review content because the search intent behind them is transactional.

Use the same logic for your newsletter and YouTube descriptions. A brief reminder in a weekly email — something like “Still considering [product category]? Here’s what pushed me to commit” — functions as a soft retargeting touchpoint without requiring paid ads. Your YouTube description can carry a note that a bonus or limited offer applies when using your link, pulling back viewers who watched your review days earlier.

Here is a practical checklist to work through for any affiliate promotion:

The cookie window sets a deadline. Your job is to treat that deadline seriously and build content and sequences that reflect it.

Frequently asked questions

Affiliate cookie duration is the length of time a tracking cookie stays active on a referred user’s browser after they click your link. If the user makes a purchase within that window, you earn the commission. If they buy after the cookie expires, you get nothing — even though you drove the traffic.

Not always, but for products with long buying cycles — like SaaS subscriptions, high-ticket courses, or premium gear — a 90-day window dramatically increases your chances of capturing late conversions. For impulse-buy products, the difference may be negligible since most buyers convert within hours.

What happens to my commission if a user clears their cookies before buying?

If a user clears their browser cookies, your tracking cookie is deleted and the attribution is lost. This means even a 90-day window offers no protection against cookie deletion. Some affiliate networks mitigate this with fingerprinting or server-side tracking, but standard cookie-based tracking is vulnerable to clearance.

Cookie duration is usually listed in the affiliate program’s terms and conditions page or its FAQ section on the affiliate network dashboard. Look for terms like ‘tracking window,’ ‘referral period,’ or ‘cookie lifetime.’ If it’s not listed, email the affiliate manager directly — it’s a standard question any reputable program should answer.

Track your affiliate link free — no signup

Paste any affiliate or referral link and get a TrackRef tracking link instantly, with live click stats. Save it to a free account whenever you want.

Was this article helpful?