Discount Code Attribution

Discount code attribution credits an order to the channel, partner or campaign that handed out the code the buyer redeemed. It makes channels without tracked clicks measurable, such as influencers and podcasts, but a code shows where the buyer got it, not what made them buy.

Daniel Busch
Written by Daniel Busch · Chief of Staff · Updated

In short

  • Is: an order with a code from your code list counts for the channel, partner or campaign the code belongs to, with or without a tracked click
  • Code or click: a code-only report gives the whole order to the code, a journey model shares it with the ads and emails the buyer clicked before
  • Measures channels without clicks (influencer stories, podcasts, flyers), as long as each code belongs to one partner and one channel
  • A leaked code measures the coupon site that published it, not the partner: take shared and leaked codes out of your code list
  • About one in ten questions customers send us is about codes, influencer or affiliate attribution

How discount code attribution works

An influencer posts a story with her code, a podcast host reads one out, a flyer in the parcel carries one. None of these produces a tracked click, so click-based attribution can’t see them. The code can: it arrives with the order. Discount code attribution keeps a list of codes, each assigned to a channel, a partner or a campaign, and credits orders that carry a listed code there.

Tools use the code in one of two ways:

  • Code only. Every order with the code counts in full for its owner. This is how a code-based commission is calculated, and how influencer tools typically report a creator’s sales.
  • Code as a touchpoint. The code joins the buyer’s journey at the time of the order, next to the ads and emails the buyer clicked before, and an attribution model shares the order between them.

About one in ten questions customers send us is about codes, influencer or affiliate attribution, for example: “Is a sale counted by the redeemed code or by the click?”

Code or click: who gets the sale?

The answer depends on the model. An order of €100 net of VAT with an influencer code, after a click on a Meta ad and a click in an email:

Attribution modelMeta AdsEmailInfluencer code
Non Direct Last€0€0€100
Non Direct First€100€0€0
Non Direct Linear€33.33€33.33€33.33
Non Direct Position Based€40€20€40

A code is typed in at checkout, so it is always the last touchpoint of the journey: in any last-touch model, every order with a listed code counts for the code, not for the campaign of the last click. “Code attribution over-credits our influencers against Meta” is a complaint we hear in calls, and in a last-touch view it is true by construction. First touch does the opposite and gives the creator nothing when an ad opened the journey.

Our view: where both kinds of touchpoint happen, compare channels on a model that shares the order, such as linear or position based, and keep the code-only number for what it is good for: the commission. SNOCKS, for example, weighs influencer touchpoints in its custom attribution model by clicks and by discount redemptions (SNOCKS case study).

Leaked codes and coupon sites

Once a code is on a coupon site, it shows that the buyer searched for a discount at checkout, not who sent them.

Say a creator’s code with 10% commission carries 300 orders and €18,000 of net revenue in March, and 120 of those orders came from shoppers who found the code on a coupon site. A code-only report credits the creator with all €18,000, and €720 of her commission pays for sales she didn’t drive. Four rules keep a code list honest:

  • One code, one partner, one channel. A code that many share, such as a sale code in ads and emails, can’t say who sent the buyer. Give each creator and affiliate a personal code.
  • Leave out what you can’t attribute. Codes sent through several channels at once, and codes whose source you no longer know, belong in no code list.
  • Date each code. A code that counts only from the day it went live can’t collect earlier orders. With a custom model, it can also count only for some days after the post.
  • Prefer codes that can’t travel. A single-use code is worthless on a coupon site once it has been used, and a prefix such as CLUB-% lets one row of your list cover all codes of a program.

Booking commissions and fees as spend

Commissions and creator fees become spend of the channel they belong to (ad spend: how adtribute handles ad spend).

Worked example: a creator gets €1,500 per post plus 10% commission on net revenue. In March her code brings 80 orders and €4,800 of net revenue, so her commission is €480 and her March spend €1,980. On a code-only basis her ROAS is 4,800 ÷ 1,980 = 2.42. If a linear model credits her code with €3,000 of that revenue, because many buyers clicked an ad or an email first, her ROAS in the model is 3,000 ÷ 1,980 = 1.52. The commission is due on every code order; the credit isn’t.

How adtribute handles discount codes

  • A code is a touchpoint. A code from your code list adds a touchpoint of its channel at the time of the order, and your attribution model shares the order between the code and the clicks before it. With no clicks before, the code gets the whole order. An order with a code that isn’t in your list counts for its clicks only, and a code nobody redeemed adds nothing.
  • The code list is a Google Sheet we set up with you: one row per code, or per prefix ending in % such as CLUB-%, with an optional start date and country or shop, and where its orders show: a row of a channel sheet, a campaign, or an ad.
  • Several codes on one order. Within one tab of the list, only the code in the topmost row counts, so list a creator’s personal codes above codes that many share. A code on another tab adds its own touchpoint.
  • Codes don’t need tracking consent. They come with the order from your shop, so they count with or without consent. On request, we count them only with consent.
  • A code stays in the journey. A later order without a tracked click can count for it, which is why an influencer can get more orders than carry her code.

Changes to the list show the next morning, for past orders too. To see every order with a code, filter reports on Discount Code.

FAQ about Discount Code Attribution

Is the discount code a fallback when UTM parameters are missing?

No. A code from your code list always adds a touchpoint, whether or not the buyer clicked tracked links before. Without such clicks, the code gets the whole order. To also count a partner’s clicks, add UTM parameters to their links.

Our generic code leaked to coupon sites. Can we still measure with it?

Not as a signal of the partner who published it. A leaked code measures the coupon site. Take it out of your code list, or give it a date range, and give each creator and affiliate a personal code.

Why does our influencer tool show more orders than adtribute?

The tool counts every order with a code in full. adtribute shares each order between its touchpoints and, if your code list has dates, counts a code only from its date.

Yes. The code comes with the order from your shop, so it counts with or without consent. On request, adtribute counts codes only with consent; orders without consent and without earlier tracked visits then show as No matching Touchpoints found.