Seatext library / BotRefund evidence

How to Detect Fake Affiliate Referrals in Your Payout Logs

Identify fraudulent affiliate referrals by checking timing anomalies, duplicate IDs, and mismatched conversion data. Follow a clear, step-by-step process to flag and verify suspicious payouts.

Built for advertisers who need clear, refund-ready traffic evidence.

To spot fake affiliate referrals, start with your payout log. Check for referrals that arrive after checkout, repeat the same affiliate ID too often, or come from a browser extension cookie set at the last second. Those signs are filters, not proof. Verify suspicious rows before you deny a payout.

BotRefund runs client-side telemetry on checkout pages. It tracks the millisecond timing of referral cookies. If a coupon extension cookie is set after the customer has completed shopping steps, BotRefund flags the transaction as an override. That gives you precise evidence to decline payouts to coupon extensions.

What a Fake Affiliate Referral Looks Like

A fake affiliate referral is any commission credit that does not match a real human purchase. The most common version comes from a browser extension or automatic rewards script. The extension detects a checkout page, fires its own affiliate URL, and overwrites the existing tracking cookie. The merchant then pays a commission on top of giving the customer a discount. That is a double dip on transaction margins.

These referrals share three patterns:

  • They happen after the shopping session is already complete.
  • They come from one affiliate ID in bursts.
  • They have no real click history or conversion event behind them.

You cannot see all of this from a summary report. You need raw payout logs.

Prerequisites Before You Start

Prepare these four things before you audit:

  1. Raw payout logs in CSV, JSON, or a database view. Include order ID, affiliate ID, referral timestamp, and order completion timestamp.
  2. The names of your tracking parameters, like aff_id, ref, or click_id.
  3. A tool that can compare timestamps. Excel, Google Sheets, or any SQL editor works.
  4. Optional data: IP address, user agent, coupon cookie name, and conversion pixel events. More fields make detection easier.

If your logs do not include a referral timestamp, ask your developer to add one during the affiliate redirect. Without a click moment, you cannot measure when the referral happened.

Detection Signals in Your Payout Logs

Use these signals to flag rows.

1. Late referral timestamps

A real referral happens before the customer starts shopping. If the referral timestamp is later than the order completion timestamp, the affiliate did not drive that customer to the store. This is the clearest signal. BotRefund tracks this by logging coupon extension cookie drops at millisecond precision. If the cookie is set after the customer completes shopping steps, the transaction is marked as an override.

2. Affiliate ID bursts

Sort your referral log by affiliate ID. Look for one ID that appears many times in a short window. A burst of ten or more referrals in the same minute is worth a manual review. Flash sales and voucher code sites can create bursts too, so pair this with other signals.

3. Repeated IP addresses or devices

If an affiliate ID is linked to the same IP address, user agent, or device fingerprint across many orders, the traffic may be scripted. Real shoppers come from many different devices and locations. Repetition is a warning sign, not proof of fraud.

4. Missing conversion events

Every genuine affiliate sale should have a conversion event. That event can be a purchase pixel, a thank-you page view, or an order webhook. If your log says a sale happened but no conversion event exists, check the order. The affiliate may have injected a cookie without generating a real visit.

5. Duplicate click IDs or order IDs

Normalise your logs and look for duplicate values. A single click ID mapped to several order IDs can mean a cookie was reused. One order ID with multiple affiliate IDs means your tracking system could not decide who referred the sale.

How to Flag Suspicious Referrals in SQL and Excel

Use SQL when your logs live in a database.

Find affiliate IDs with too many referrals:

SELECT affiliate_id, COUNT(*) AS referral_count
FROM payout_logs
GROUP BY affiliate_id
HAVING COUNT(*) >= 10
ORDER BY referral_count DESC;

Find late referrals:

SELECT order_id, affiliate_id, referral_timestamp, order_timestamp,
       CASE WHEN referral_timestamp > order_timestamp THEN 'LATE' ELSE 'OK' END AS timing_flag
FROM payout_logs;

In Excel, create a pivot table with affiliate ID in rows and order ID in values. That gives you a count of referrals per affiliate. Then use conditional formatting to highlight rows where the referral time is greater than the order time. Add a helper column with a formula like =IF(COUNTIF($B$2:$B$10000,B2)>=10,'Review','OK') to mark high-volume IDs.

Group timestamps into minutes for burst detection. In Excel, add a column with =TEXT(referral_timestamp,'yyyy-mm-dd hh:mm') and count how many referrals share that minute.

Real-World Fraud Scenarios

Scenario 1: Coupon extension hijack

A shopper adds products to the cart organically and loads the checkout screen. The browser extension detects a coupon code form. It shows an overlay that offers to apply coupons. In the background, the extension executes its own affiliate redirect URL. That call overwrites the tracking cookies and takes credit for the sale. The merchant pays a commission plus the discount.

Detection: referral timestamp after the cart was filled. The coupon extension cookie appears only at checkout. BotRefund flags these transactions as overrides and gives you the evidence to decline the commission.

Scenario 2: Auto-apply rewards script

Some partners use automatic rewards scripts that run on their own browser sessions or on stolen sessions. The script looks for checkout pages and injects the partner ID. The logs show a referral that starts and ends in under a second. Human shoppers scroll, hesitate, and edit fields. Scripts do not.

Detection: no scrolling, no field corrections, superhuman speed. BotRefund's behavioral checks look for unnaturally straight mouse paths and input speeds faster than a person could perform.

Scenario 3: Repeated ID across unrelated orders

One affiliate ID appears in many orders that have no clear marketing relationship. The customers come from different regions, use different devices, and never visited the affiliate's site. This pattern can come from cookie stuffing or from a partner who paid a bot service to generate clicks. Flag the affiliate ID and review a sample of each order.

Verification and Denial Workflow

Never deny a payout from a single dashboard flag. Follow this workflow.

  1. Pull the full session record for each flagged order. Include order ID, affiliate ID, timestamps, cookie events, IP address, and user agent.
  2. Confirm the technical signal. Was the referral timestamp late? Did the same affiliate ID appear in a burst? Did a coupon extension cookie drop after checkout?
  3. Review the behavior data. Real shoppers scroll, move the mouse in curves, pause, and correct fields. Bots often stay static or move in straight lines. BotRefund catches activity that lacks the natural sequence of human intent and watches for honeypot interactions.
  4. Visit the affiliate's landing page and check for auto-apply scripts or overlay code. If the affiliate runs a script that injects a cookie automatically, that affiliate is a risk.
  5. Create a denial report. Include the evidence: order number, affiliate ID, referral time, checkout time, and the reason.
  6. Send the report to the affiliate and offer an appeal window, normally seven days. Keep all logs so the affiliate can challenge the decision.
  7. Only exclude the affiliate if the evidence is consistent across multiple orders. If the majority of flagged orders fail the human-behavior test, deny those payouts.

BotRefund is designed for this step. Its client-side telemetry records the millisecond timing of referral cookies and flags overrides. That data becomes part of your denial report.

Key Signals at a Glance

SignalWhat to look forAction
Late referralReferral timestamp after order completionFlag for manual review
Affiliate ID burst10+ referrals from one ID in a minuteCheck IP and session variety
Repeated IP or deviceSame user agent on many ordersCompare with conversion events
Missing conversion eventSale exists but no pixel or thank-you pagePull order records
Coupon extension cookieCookie set after cart completionDeny payout with evidence

Limitations to Keep in Mind

This process depends on accurate timestamps and referral parameters. If your platform only records the final sale and not the click-through moment, timing checks become less reliable.

Server-side logs alone can miss advanced botnets. A bot can rotate IP addresses, use residential proxies, or mimic human mouse jitter. Client-side tracking is stronger because it sees events in the browser. Still, no single method catches every fake referral.

Legitimate affiliates can also be penalized by this process. Some partners use aggressive auto-apply coupons or browser tests that set cookies late. Manual review protects honest partners and keeps your program fair.

Frequently Asked Questions

What if I do not have a click timestamp? Add a hidden field to your affiliate redirect URL. The redirect records the exact moment the affiliate link is opened. Server access logs can also give a rough time.

Can a legitimate affiliate be flagged? Yes. Some partners use aggressive auto-apply scripts that override cookies after checkout. Review the full session before denying a payout.

How often should I run this audit? Run a full scan weekly and a spot check daily for high-volume programs. Fraud can move quickly when a new coupon code spreads.

Does BotRefund work with any affiliate platform? It works on any checkout page that can load a JavaScript snippet. It does not depend on the affiliate network software.

What is the cost of implementing BotRefund? Pricing is on the BotRefund homepage. You can start with a free trial to evaluate it.

Should I ban the affiliate network because of one bad ID? No. Ban the specific affiliate ID first. If the same network shows many fraudulent IDs, review the entire relationship.

Further reading and comparison sources

These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.

Further reading and comparison sources

These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.

Learn more

Visit the website for more information.

Learn more