TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is cookie stuffing? How affiliate fraud works and how to detect it

Cookie stuffing plants affiliate cookies without a real click so a fraudster collects commission on sales they did not cause. How it works, the signals in your own data, and a worked example of matching affiliate orders to visits.

Lin Zhou Reviewed by Emma Collins Also called cookie dropping Last updated Nov 29, 2026 Glossary

Quick answer

Cookie stuffing is affiliate fraud where a site or script places a merchant's affiliate tracking cookie in a visitor's browser without a real click, so the fraudster is credited with any later purchase in the cookie window. It shows up as affiliate-credited orders with no visit from that affiliate.

Formula: Unsupported affiliate share = affiliate-credited orders with no affiliate-sourced session in the lookback window ÷ all affiliate-credited orders

What is cookie stuffing?

Cookie stuffing is a form of affiliate fraud in which a website or script places a merchant's affiliate tracking cookie in a visitor's browser without the visitor clicking an affiliate link or intending to visit the merchant. If that visitor later buys from the merchant within the cookie's validity window, the fraudster's affiliate ID is credited with the sale and paid a commission, even though the affiliate did nothing to cause it.

The mechanism exploits how most affiliate programs assign credit. When a visitor clicks an affiliate link, the network or merchant sets a cookie that records the affiliate ID; a purchase within a fixed window, often 7 to 30 days according to Edelman and Brandi's study of affiliate programs, is credited to the last affiliate whose cookie is present. Cookie stuffing manufactures that "last click" without a real click. Because many shoppers buy from large merchants anyway, a stuffer who drops cookies on enough browsers collects commission on sales that would have happened without them.

How cookie stuffing works

The common techniques all make the browser request an affiliate URL in the background:

  • Hidden images. An <img> tag whose source is the affiliate link, sized at one pixel or hidden with CSS. The browser follows the redirect and stores the cookie, but nothing renders.
  • Hidden iframes. The merchant page, loaded through the affiliate link, inside an invisible frame.
  • Scripts and redirects. JavaScript that opens the affiliate URL, or a page that redirects through the affiliate link and back in a fraction of a second.
  • Browser extensions and adware. Software on the visitor's machine that rewrites or silently opens affiliate links when the visitor reaches a merchant or a checkout page.
  • Forum and comment spam. Hidden elements planted on third-party pages so that every reader is stuffed.

Edelman and Brandi's crawl of affiliate programs on three networks recorded 267 cookie-stuffing incidents among 4,815 affiliate-fraud incidents observed, counting each affiliate-merchant pair once, and noted that most cookie stuffing used images, JavaScript, Flash or a combination. They also describe the best-known prosecution: a top affiliate of a large online marketplace, who forced the marketplace's tracking cookies onto visitors' computers, pled guilty to wire fraud in December 2012 and in May 2014 was sentenced to five months in federal prison and a $25,000 fine.

Formula: share of affiliate orders with no supporting visit

Your own analytics is the cheapest detector, because it sees how buyers actually arrived. The key ratio:

Unsupported affiliate share = affiliate-credited orders with no affiliate-sourced session in the lookback window ÷ all affiliate-credited orders

An affiliate-sourced session is one whose referrer is the affiliate's domain or whose landing URL carries the affiliate's tracking parameters. The lookback window should match the affiliate cookie window.

Worked example: one affiliate at 75% unsupported

Sample data: in one month the affiliate network credits affiliate A with 120 orders and affiliate B with 200. The merchant matches the network's order IDs against its own analytics, looking for a session from each affiliate's referrer or UTM parameters in the 30 days before each order.

Affiliate AAffiliate B
Orders credited by the network120200
Orders with an affiliate session in the 30-day window30184
Orders with no supporting session9016
Unsupported share90 ÷ 120 = 75%16 ÷ 200 = 8%

Some unsupported orders are normal: a visitor who clicked on a phone and bought on a laptop, or who blocked analytics, leaves no matching session. Affiliate B's 8% is that baseline. Affiliate A is more than nine times higher, which is the pattern cookie stuffing produces: credit without visits.

The money at stake, again as sample data: if the average order is $80 and the commission is 8%, the 90 unsupported orders cost 90 × $80 × 0.08 = $576 in a single month for one affiliate, and those buyers would most likely have purchased anyway.

Signals that point to cookie stuffing

  • Credit without sessions. The ratio above, compared against your normal affiliates.
  • Zero-time conversions. The network's click timestamp falls seconds before the order, while your analytics shows the buyer already in checkout, arriving direct or from search.
  • Credited orders from loyal direct traffic. A high share of the affiliate's orders comes from returning customers who usually arrive by typing your address.
  • Referrers with no visible link. Affiliate-sourced sessions that come from pages where you can find no link to your site, or from domains unrelated to the affiliate's stated promotion.
  • Zero-engagement hits. Bursts of single-page sessions from the affiliate's referrer with no scroll, no click and a duration near zero, which is what a page loaded in a hidden frame can look like if your analytics script runs inside it.
  • Sudden growth. The affiliate's credited sales jump while its traffic to you stays flat.

None of these proves fraud alone. Together, and measured against a baseline, they justify asking the network for click logs and withholding commission while you investigate.

Cookie stuffing vs click fraud vs legitimate last-click credit

Cookie stuffingClick fraudLegitimate last-click credit
Who paysMerchant pays commission on salesAdvertiser pays per click or impressionMerchant pays commission
What is fakedThe referral (a cookie with no real click)The click or impression itselfNothing
Visible in your analytics asOrders credited with no matching visitPaid sessions that never engage or convertA real session from the affiliate before the order
Main detectorOrder-to-session matchingTraffic quality and bot filtering—

Ad fraud in paid media is about invalid clicks and impressions; cookie stuffing hides in the attribution layer instead, so traffic-quality filters alone will not catch it. It also abuses the same rule that makes last-click attribution simple: whoever touched the buyer last gets all the credit. For how affiliate links and cookies work when nothing is wrong, see how affiliate links work.

How to prevent it

  1. Require tagged links. Ask every affiliate to land visitors on URLs with UTM parameters that identify them, so supporting sessions are easy to find.
  2. Match orders monthly. Reconcile the network's credited order IDs with your own order and session data before approving commissions.
  3. Shorten long cookie windows if most legitimate affiliate sales happen within a few days of the click; a shorter window shrinks what a stuffer can harvest.
  4. Write the rule into the terms. Most network agreements already require a real click; state that commission is not owed on stuffed cookies and reserve the right to reverse it.
  5. Watch coupon and browser-extension affiliates that credit themselves at checkout, and compare their unsupported share with content affiliates.

Checking affiliate credit with TapCub

TapCub does not run affiliate programs, set affiliate cookies or block fraud; the network's report remains the record of who was credited. TapCub supplies the other half of the comparison in the worked example: whether each credited buyer actually arrived from the affiliate.

  1. See affiliate traffic by source. Web analytics › Sources breaks visitors down by channel, referrer and UTM parameters, so tagged affiliate links appear under their own source and campaign. The sources and UTM help page shows how the parameters are read.
  2. Attribute orders to touches. The attribution report in All-platform analytics › Behavior › Behavior analysis can use UTM source, UTM campaign or referrer domain as the touch, with a lookback window from 1 to 90 days (default 30) and last-touch or other models side by side. A conversion with no session inside the window stays unattributed, which is exactly the "no supporting session" case.
  3. Export order-level data for matching. Send purchases from your server with an order_id; use All-platform analytics › Data › Data export for the raw rows and join them with the network's order IDs in a spreadsheet to compute the unsupported share per affiliate.
  4. Inspect suspicious visits. Web analytics › Sessions shows individual sessions with their referrer and pages, so bursts of near-zero-duration visits from one referrer are easy to spot.
  5. Keep bots out of the picture. Recognised bots are counted only in Web analytics › Bots, so scripted hits do not pass as affiliate visitors. Track the result per affiliate on an affiliate marketing dashboard.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Lin Zhou

Product Experience Specialist

Writes about product experience, practical workflows, and growth, turning complex processes into clear steps for everyday decisions.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

Is cookie stuffing illegal?

It breaks almost every affiliate network's terms, which require a real click, and it has been prosecuted. In the best-known case, a top affiliate of a large online marketplace pled guilty to wire fraud in 2012 and was sentenced in 2014 to five months in federal prison and a $25,000 fine.

How do you detect cookie stuffing?

Match the network's credited order IDs against your own sessions: look for a visit from the affiliate's referrer or UTM parameters before each order. If one affiliate's share of orders without such a visit is far above your honest affiliates' baseline, for example 75% against 8%, investigate.

What is the difference between cookie stuffing and click fraud?

Click fraud fakes the clicks or impressions an advertiser pays for. Cookie stuffing fakes the referral behind a commission: there is no real click, but the affiliate cookie is present when the visitor buys, so the affiliate takes last-click credit for a sale it did not cause.

How do merchants prevent cookie stuffing?

Require tagged affiliate links, reconcile credited orders with your own order and session data before paying, shorten cookie windows that are longer than real buying cycles, write the real-click rule into affiliate terms, and watch coupon and browser-extension affiliates closely.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics