Skip to content

Affiliate attribution: click IDs, coupons and attribution windows

How a sale is credited to the right affiliate: last click, click IDs, coupon codes, attribution windows and what happens when two affiliates send the same customer.

Updated on 19 Nov 2026

Attribution decides which affiliate gets paid for a sale. Get it wrong and you either pay the wrong partner or lose the trust of the ones who did the work.

Last click by default

Most affiliate programs use last click: the affiliate whose link the customer clicked last before buying gets the conversion. It is simple to explain and easy to check.

In RastroAff, each click on a tracking link gets its own click ID, which is passed to the advertiser. When the sale happens, the advertiser sends back the click ID it has saved, and that click's affiliate is credited. If the customer clicked links from two affiliates, the advertiser normally keeps the latest click ID, so the latest click wins.

Attribution window

The attribution window is how long after the click a sale still counts. In RastroAff it is 30 days unless you change it on the offer. A postback that arrives later is refused with "outside the attribution window".

How long to choose:

  • Impulse purchases and leads: 7 to 30 days.
  • Expensive products or B2B: 30 to 90 days, because people take longer to decide.
  • Subscriptions: what matters is the first payment; renewals follow the customer, not the click.

Coupon codes

Some sales have no click at all: the customer types a code they saw in a video or a post. With coupon attribution, the advertiser sends the coupon code instead of the click ID, and the conversion goes to the affiliate who owns the code.

Coupon and link can disagree. Decide which wins and write it in your program terms. See coupon tracking.

Recurring revenue

For subscriptions, the advertiser sends a customer ID with the first payment. Renewals are then credited to the affiliate of that first conversion, even months later, with no new click.

Why server-to-server tracking matters

Attribution based on browser cookies breaks when cookies are blocked or deleted. Passing a click ID to the advertiser and receiving it back by postback doesn't depend on the browser. See S2S vs pixel.