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 A | Affiliate B | |
|---|---|---|
| Orders credited by the network | 120 | 200 |
| Orders with an affiliate session in the 30-day window | 30 | 184 |
| Orders with no supporting session | 90 | 16 |
| Unsupported share | 90 ÷ 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 stuffing | Click fraud | Legitimate last-click credit | |
|---|---|---|---|
| Who pays | Merchant pays commission on sales | Advertiser pays per click or impression | Merchant pays commission |
| What is faked | The referral (a cookie with no real click) | The click or impression itself | Nothing |
| Visible in your analytics as | Orders credited with no matching visit | Paid sessions that never engage or convert | A real session from the affiliate before the order |
| Main detector | Order-to-session matching | Traffic 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
- Require tagged links. Ask every affiliate to land visitors on URLs with UTM parameters that identify them, so supporting sessions are easy to find.
- Match orders monthly. Reconcile the network's credited order IDs with your own order and session data before approving commissions.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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. - 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.
- 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
- Benjamin Edelman and Wesley Brandi, Risk, Information, and Incentives in Online Affiliate Marketing, Journal of Marketing Research, February 2015 (affiliate cookie windows often 7–30 days; 267 cookie-stuffing incidents among 4,815 observed; 2012 guilty plea and 2014 sentence in the online-marketplace case).
- IETF, RFC 6265: HTTP State Management Mechanism (how Set-Cookie, Expires and Max-Age make a cookie persist and return on later requests).
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

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