Playbooks

Affiliate Cookie Duration Explained: 30 vs 60 vs 90 Days

Why B2B SaaS needs a longer cookie window than ecommerce, a benchmark table by business type, and why we default Referralful to 60 days.

6 min readBy Mihir Kanzariya
Share:XLinkedIn

Cookie duration is the second question every founder asks right after commission rate, and it's the one more likely to get copied straight from whatever number a competitor happens to publish. That's a mistake, because the right window depends on how long your actual buyers take to decide, not on what looks generous in a comparison table.

When someone clicks an affiliate link, a tracking cookie stores which affiliate sent them. If they convert while that cookie is still active, the affiliate gets credit for the sale. Once it expires, that specific click no longer counts toward anyone, even if the same person eventually signs up on their own. The number of days that cookie stays alive before it expires is the "duration" or "window," and it's a separate lever from the commission rate itself.

Get the window wrong and you don't just lose a little money on either side. Too short, and you underpay affiliates who genuinely sourced a sale that closed a few weeks late. Too long for no reason, and you're crediting affiliates for traffic that had nothing to do with the eventual purchase.

Ecommerce's 30-day norm doesn't map to B2B SaaS

Most people who ask about cookie duration have seen "30 days" somewhere and assume it's the standard. It's the ecommerce standard, not the universal one. Ecommerce buyers often decide inside a single browsing session or within a couple of weeks of comparison shopping, so a window anywhere from 24 hours to 30 days covers the vast majority of real purchase behavior. Amazon Associates famously runs a 24-hour cookie, and it works because almost nobody spends three weeks deciding whether to buy a $20 item.

B2B SaaS doesn't work that way. A prospect who clicks an affiliate link today might read a comparison post, sign up for a free trial next week, loop in a coworker, sit on it over a slow month, and finally convert two months later. If your cookie expired on day 30, the affiliate who actually sent that customer gets nothing, and they'll notice the next time they check their dashboard.

Business typeTypical cookie windowWhy
Ecommerce, impulse purchase24 hours to 7 daysBuyer decides in one session
Ecommerce, considered purchase15 to 30 daysSome comparison shopping, still a short cycle
Low-ticket SaaS / solo-user tool30 to 60 daysOne decision-maker, fast trial-to-paid path
Mid-market B2B SaaS60 to 90 daysMultiple stakeholders, budget check
Enterprise SaaS90 to 180 daysProcurement, security review, multi-quarter cycles

The actual rule: match the window to your sales cycle

Rather than copying whatever the closest competitor lists on their program page, look at your own average time-to-close. A common rule of thumb among affiliate program managers is to set the cookie at roughly twice your average consideration period, since real buyers rarely decide exactly on the average and you want the window to cover the slower half of your funnel too. If your typical customer takes three weeks from first click to paid signup, a 30-day cookie leaves almost no margin. Six weeks, minimum, gives you room to actually credit the affiliates driving those slower deals.

Referralful's default cookie is 60 days. Most people evaluating an affiliate tool aren't deciding alone in one sitting. They read a comparison post, check pricing, maybe pull a cofounder into a Slack thread about which tool to use, and sign up for a trial a few weeks later once the conversation settles. Sixty days covers that whole arc without stretching so long that it stops meaning anything.

It's not the longest window on the market, and it isn't meant to be. Some enterprise-focused tools run 90 or even 180 days because their sales cycles genuinely run that long. If your product goes through a multi-quarter procurement process, copying our 60 days would actually under-serve your affiliates. The number should come from your funnel, not ours.

If a click's cookie expires before the visitor converts, that click no longer attributes the sale to an affiliate, full stop. Some tools support returning-visitor recognition or account-level matching that can extend attribution past the raw cookie window, but the safest assumption for any program you're evaluating, including when you're setting your own duration, is that expired means expired. That's exactly why the window matters more for SaaS than most founders assume going in.

First-click vs last-click, and why it matters alongside duration

Cookie duration is only half the attribution question. The other half is which click counts if the same visitor arrives through two different affiliates, or through an affiliate link and then a branded search a month later. Most tools default to last-click attribution within the cookie window, which means the most recent affiliate link before conversion gets the credit, not necessarily the one that first introduced the buyer to your product.

That detail matters more in B2B SaaS than ecommerce, because the person who writes the comparison post that gets someone to try your product often isn't the same person whose link they click right before signing up three weeks later. A longer cookie window doesn't fix that tension on its own, it just gives more clicks a chance to compete for the same conversion. If your program relies heavily on top-of-funnel content affiliates, it's worth checking whether your tool credits first-click, last-click, or something in between before you finalize a duration around it.

Setting your own number

Pull your actual funnel data first: average days from first touch to paid conversion, not your fastest customer. Double it, then round to the nearest common window (30, 60, or 90 days) so it's easy for affiliates to understand at a glance. For context: if your average deal closes 24 days after first click, doubling that lands you at 48 days, which rounds cleanly to a 60-day window. If your funnel closes in under two weeks, 30 days is genuinely enough and a longer window won't add much beyond padding the attribution.

Run the resulting commission cost through our affiliate commission calculator alongside your rate, since duration and rate together determine what the program actually costs you over a longer sales cycle. If you haven't built the program yet, the setup guide covers cookie configuration alongside everything else, and pricing shows what running it costs.

FAQ

Is a 30-day cookie enough for a SaaS affiliate program? Usually not for B2B SaaS with a multi-week evaluation process. Thirty days is closer to the ecommerce norm. Most SaaS programs run 60 to 90 days to cover a realistic buying cycle.

What happens if a customer converts after the cookie expires? The affiliate whose link they originally clicked doesn't get credit for that conversion under a standard cookie-based model, since the tracking token is gone. This is exactly why matching your window to your real sales cycle matters more than picking a round number.

Does a longer cookie duration cost me more? Not directly. You pay commission on the sale itself, not on the length of the window. A longer window just means more of your genuine affiliate-driven sales actually get credited instead of falling through the cracks.

Is 60 or 90 days better for B2B SaaS? It depends on your sales cycle. Sixty days works well for tools with a self-serve trial and a decision that happens within a month or two. Ninety-plus days fits products with real procurement steps or multiple approvers. Check your actual close-time data before picking either.

Whatever window you land on, Referralful is free until your first affiliate signs up, so you can test a duration against real conversion data before it costs you anything.

Cookie DurationAffiliate TrackingSaaS Affiliate Programs
Share:XLinkedIn

Run your SaaS affiliate program on Stripe

Referralful tracks every referral, calculates commissions, and pays affiliates through Stripe. Free until your first affiliate joins.

Affiliate Cookie Duration Explained: 30 vs 60 vs 90 Days - Referralful