What Is Cookie Duration?
Cookie duration is the length of time, measured in days, that a tracking cookie placed by an affiliate link click remains stored in a user's browser. When someone clicks an affiliate marketing link, the advertiser's platform drops a small text file (the cookie) onto that visitor's device. If the visitor returns to the site and completes a qualifying conversion within the cookie's active window, the referring publisher receives credit and earns their agreed commission. Once the cookie expires, that attribution window closes and any subsequent purchase is no longer credited to the affiliate.
The concept matters because consumer behaviour rarely follows a straight line from click to purchase. Research-heavy product categories, such as electronics, insurance, or home appliances, involve multiple sessions across days or weeks before a buyer commits. A short cookie duration of seven days may capture impulse purchases but miss the longer consideration cycles that are common in South African markets where consumers often compare prices carefully before spending. A longer duration gives the publisher a fairer chance to earn credit for the awareness and research they facilitated.
Cookie duration is set by the advertiser, either directly through their own affiliate programme or via the rules of the affiliate network they use. Common durations range from as short as one day (used by some large retailers for high-volume, price-sensitive categories) to 30 days, 60 days, or even 90 days for products with longer purchase cycles. Amazon's Associates programme, for example, uses a 24-hour cookie, whereas many software and subscription advertisers offer 30 to 90 days to reflect the time users need to evaluate before signing up.
It is worth distinguishing between session-based and day-based cookies. A session cookie expires the moment the user closes their browser, making it extremely short. Day-based (persistent) cookies survive browser restarts and remain until the set number of days elapses or the user manually clears their cookies. Most affiliate programmes use persistent cookies, because session cookies produce very low attribution rates and discourage quality publishers from promoting the programme.
Common cookie duration benchmarks: 1 day (large retail flash sales), 7 days (fast-moving consumer goods), 30 days (e-commerce and SaaS), 60 to 90 days (financial services, insurance, B2B software). The longer the purchase consideration cycle, the longer the recommended cookie window.
Cookie duration interacts directly with last-click attribution, which is the default model used by most affiliate networks. Under last-click rules, the most recently clicked affiliate link before conversion wins the commission. If a user clicks Publisher A's link on day one and Publisher B's link on day five, Publisher B gets paid, even though Publisher A introduced the customer first. Understanding this dynamic is important when evaluating whether a programme's cookie duration is genuinely fair to publishers who drive early-funnel awareness rather than only last-minute deal-seekers such as coupon affiliates.
Cookie Duration In Practice
Consider a South African online furniture retailer running an affiliate programme through a local network. Their average customer visits the site three or four times over 21 days before purchasing. If the retailer sets a seven-day cookie, any publisher whose referred visitor takes longer than a week to decide earns nothing, regardless of the quality of their product review or recommendation. By extending the cookie to 30 days, the retailer aligns the tracking window with actual customer behaviour, making the programme genuinely attractive to content publishers and comparison sites. The result is a broader pool of high-quality affiliates willing to invest in detailed content because they trust the attribution window fairly covers the buying cycle.
From the publisher side, cookie duration is one of the first things a serious South African blogger or price comparison site evaluates before joining a programme. A 30-day cookie combined with a competitive CPA rate signals that the advertiser understands the affiliate relationship and is committed to fair tracking. Publishers will often favour a programme with a moderate commission rate and a 30-day cookie over a higher-paying programme that only offers seven days, because the longer window dramatically improves the chance of earning on the traffic they send. When building or auditing an affiliate programme for performance marketing, cookie duration should be treated as a core programme competitiveness lever, not an afterthought.
FAQ
What happens if a customer clears their cookies before buying?
If a customer clears their browser cookies before completing a purchase, the tracking cookie is deleted and the affiliate will not receive credit for the sale. This is a known limitation of cookie-based tracking. Some affiliate networks in South Africa supplement cookies with fingerprinting or first-party data to reduce attribution loss.
What cookie duration should South African affiliate programmes offer?
A 30-day cookie duration is a widely accepted standard for South African affiliate programmes. Products with longer research and comparison cycles, such as insurance or financial services, benefit from 60 to 90 days. Short durations of seven days or fewer favour the advertiser but make it harder to attract quality publishers.