A discount code performed well only if the margin from the orders it created beat the discount you handed to people who would have bought anyway. Revenue on the code tells you neither. Score every code on incremental orders, who used it, margin after returns and where it leaked beyond its audience, then keep, change or kill it.
The one number to carry into the meeting:
Breakeven incrementality = discount per order / (discount per order + return-adjusted margin per discounted order). If a smaller share of the code's orders than that were genuinely new, the code lost money.
Ten numbers per code, and only two of them come straight out of Shopify. Shopify's Sales by discount codes report gives you orders, discount amount and total sales grouped by discount name. It has no returns or net sales column, and when discounts combine, the same order appears once for each discount applied. The report is your first two rows. You build the rest.
| # | Metric | Formula | Where it lives | What good looks like |
|---|---|---|---|---|
| 1 | Orders on code | Count of orders with the code | Shopify discount report | Context only |
| 2 | Discount cost | Sum of discount amount | Shopify discount report | Context only |
| 3 | Baseline orders | Holdout order rate x audience, or a comparable prior window | Shopify orders + Klaviyo segment | From a holdout where you can get one |
| 4 | Incremental orders | Orders on code minus baseline orders | Calculated | Share above breakeven incrementality |
| 5 | New customer share | First-time buyers / orders on code | Shopify customers | Higher than your sitewide rate that week |
| 6 | Margin per discounted order | AOV - discount per order - COGS - shipping - fees | Shopify + finance COGS | Positive |
| 7 | Return-adjusted margin | (1 - return rate) x margin per discounted order - return rate x (outbound shipping and fees + return shipping) | Returns app + Shopify | Positive; code return rate within 5 points of full price |
| 8 | Leak rate | Uses by people outside the intended audience / orders on code | Klaviyo recipients vs Shopify customers | Under 10% for a targeted code |
| 9 | Net contribution | (Incremental orders x return-adjusted margin) - (baseline orders x discount per order) | Calculated | Positive |
| 10 | 60-day repeat rate | Code buyers who bought again at full price | Shopify customers | At or above a matched non-code cohort |
Net contribution (row 9) is what the code added to profit after paying for the discount on orders you would have had anyway. The thresholds in the last column are my working rules. Change them to fit your margins.
Two timing notes. The 60-day repeat rate cannot be read in early December, so ship the BFCM promo readout without it and fill that row in February. And if you also sell on Amazon or through wholesale, pull those channels' sales for the code window: a deep DTC code can pull orders off your Amazon listing or start price-match complaints from retail partners, and neither shows up in Shopify.
For a code sent to your existing list, often most of them. You will not know how many without a holdout: keep about 10% of the email or SMS audience off the send and compare their order rate with the group that got the code.
Size the holdout before you trust it. Say a brand has a 50,000-person list and a 2% order rate in the window (illustrative). A 5,000-person holdout produces about 100 orders, give or take 10, which is too noisy to read a few points of lift. Aim for a holdout that produces at least a few hundred orders, or pool holdouts across several sends.
With no holdout, use the same audience's order rate over the prior four non-promo weeks. That works badly for BFCM, when baseline intent spikes; there, use the same week last year scaled by list growth and say in the readout that it is an estimate.
Now the breakeven. Say a brand runs 20% off on a $90 average order with a 65% gross margin (illustrative numbers, carried through the rest of this post):
The quick version people reach for, discount over full-price gross margin (18 / 58.50), says 31%. That is a floor. It ignores that each incremental order was itself sold at a discount, then paid shipping and took returns. At 31% incremental this code loses money. Deeper codes raise the bar fast: at 30% off the same brand needs about 66% of orders to be incremental.
Check new customer share against your sitewide rate for the same period, using one definition of new vs returning customers for both. Say 25% of all orders that week came from first-time buyers and 22% of code orders did (illustrative): the code mostly discounted people you already had.
Then split the existing customers by how recently they last bought. The cutoffs below suit a brand whose median time between orders is around 90 days; scale them to your own purchase cycle, so a consumables brand uses shorter windows than an apparel brand.
| Code user | What it tells you | Typical action |
|---|---|---|
| First-time buyer | Acquisition, if the 60-day repeat rate holds up | Keep, cap depth |
| Lapsed (no order in 180+ days) | Win-back worked | Move into a win-back flow |
| Active (ordered in last 90 days) | Pulled forward a purchase you were getting anyway | Exclude from the next send |
| Subscriber | Discount on an add-on or a new subscription | Check stacking settings |
Shopify discount codes usually do not touch Recharge or Skio renewal orders. The subscriber risk is a code used on a one-off add-on order, or on the first order of a new subscription that already carries a subscribe-and-save discount. Check the code's combination settings in Shopify so it cannot stack with the subscription discount.
The active-buyer row is where most of the margin goes. Excluding active buyers lowers the code's headline revenue, which can look bad in a channel report even while it raises contribution. Say so in the meeting before someone else reads the channel report.
A returned order does not just lose its margin. You refund the discounted revenue, you paid outbound shipping and fees, and you pay return shipping; you get COGS back only if the item can be resold. Use the return rate on code orders specifically, since discounted orders often come back at a different rate than full-price ones, especially when a code pushed shoppers over a threshold with an extra item.
Continuing the illustrative 20% off example, assuming returned items are resold:
Say the code drove 1,000 orders and the holdout says 700 would have come anyway. Net contribution is 300 x $21.05 minus 700 x $18, which is $6,315 minus $12,600. The code lost about $6,300 while showing $72,000 in sales. If items come back unsellable, subtract COGS on returns too and the loss grows. If your returns run high to begin with, don't trust a return-blind number.
A code leaked when the people redeeming it are not the people you sent it to. Compare Shopify customers who used the code with the Klaviyo or SMS recipient list; anyone outside it found the code somewhere else, usually a coupon site or browser extension.
Treat that match as an upper bound on leakage. People check out with a different email than the one you sent to, through Shop Pay, or behind Apple's Hide My Email. Match on email or phone to tighten it.
The leak thresholds work in two tiers: above 10% from non-recipients flags a leak worth fixing on the next send, and above 25% means retire the code string now. A second flag is timing: uses still climbing on day nine of a three-day offer.
The fix is unique, single-use codes. Klaviyo can generate unique Shopify coupon codes per recipient, though large batches take hours to generate, so build them before you schedule the send. The same page notes these coupons do not apply to subscription orders from apps like Recharge. Influencer and affiliate codes leak the most because they are public by design; score them in their own row.
Compare total net contribution over the same window. Per-person rates mislead here because the denominators differ: a list code is measured against recipients, a sitewide sale against sessions. A code to your list reaches people with high baseline intent. A sitewide sale also discounts every full-price shopper who happened to show up.
| Targeted code | Sitewide sale | |
|---|---|---|
| Who gets the discount | Recipients, plus leaks | Everyone who buys |
| Baseline orders subsidised | Your list's normal orders | All normal traffic |
| Easiest to hold out | Yes, split the send | Hard; needs a geo or time comparison |
| Main risk | Leakage, pulling forward active buyers | Training shoppers to wait |
Depth moves the result more than format does. Intelligems found that across 3,000+ Shopify brands over Labor Day 2026, revenue lift for discounting brands fell to 22% from 31% the year before, and brands giving back less than 2.5% saw revenue drop 2%. Shopper surveys point the same way: in Attentive's June 2026 survey of 600 US BFCM shoppers, 45% said a 20 to 40% discount would move them and 10% would buy with no discount at all.
Use net contribution and incrementality together, with breakeven defined as above:
| Net contribution | Incremental share vs breakeven | Decision |
|---|---|---|
| Positive | Above | Keep. Test 5 points shallower next time. |
| Positive | Below, but 60-day repeat rate beats a matched non-code cohort | Keep for acquisition only; restrict to first-time buyers |
| Negative | Above | Change: margin problem. Cut depth, add a threshold, or drop low-margin SKUs |
| Negative | Below | Kill, or rebuild as a unique-code send with active buyers excluded |
| Any | Leak rate above 25% | Retire the code string today, whatever else it shows |
A code that loses money but clears aged inventory may still be right, and the table will not catch that. If clearance is the goal, score it against the markdown you would otherwise take, and check markdown timing and depth first. For BFCM, run this scorecard on every code as part of the BFCM post-mortem.
The slow part of this scorecard is the joining: Shopify orders, Klaviyo recipients, return records and COGS rarely sit in one place, and the holdout math gets redone by hand every time. Hazel, the AI coworker for brands and retailers, connects Shopify, Klaviyo and your returns app, and takes COGS from your finance system or an uploaded cost sheet. A question like "how did the BFCM codes do?" comes back as this table, with the leaks and pulled-forward buyers already flagged. The pricing and discount analysis recipe shows the questions to start with.
From there it can prepare the change, say a unique-code segment for the next send with active buyers excluded, and make it once someone on the team approves. Hazel can also run the scorecard as a weekly workflow and bring the readout to the Monday meeting.
Open Analytics, then Reports, and run the Sales by discount codes report. It groups orders, discount amount and total sales by discount name. It has no returns or net sales column, and combined discounts list the same order more than once, so it is a starting point. It will not give you profit.
Redemption rate alone does not tell you whether a code worked, because a high rate from active customers can mean you discounted orders you would have got at full price. Judge the code on incremental share against breakeven: discount per order divided by discount plus return-adjusted margin per discounted order. For 20% off a $90 order at 65% gross margin, with shipping and returns counted, that is about 46%.
Hold out about 10% of the audience from the send, sized so the holdout produces at least a few hundred orders, and compare their order rate with the group that got the code. The difference is your incremental orders. The code pays only if the incremental share of orders exceeds discount per order divided by (discount per order plus return-adjusted margin per discounted order).
Compare the customers who redeemed the code with the list you sent it to; treat the result as an upper bound, since some buyers check out with a different email. Above 10% from non-recipients is a leak to fix; above 25%, retire the code string. Use unique, single-use codes generated per recipient, which Klaviyo can create for Shopify, and score influencer and affiliate codes separately.
A targeted code is usually cheaper because it discounts fewer baseline orders and is easy to measure with a holdout. A sitewide sale reaches more new shoppers but subsidises every full-price buyer who visits that week. Compare both on total net contribution over the same window.
Compare the promotion with what would have sold without it. Hold out part of the audience or compare with the same window last year, then score the promotion on incremental orders, the share that went to new customers, margin after returns and leakage beyond the intended audience. If the incremental margin does not cover the discount given to people who would have bought anyway, it did not pay.