Offers and promotions: the maths behind every discount
TL;DR
Difficulty: Intermediate
Most discounts look like wins in revenue and are losses in contribution.
- Judge a discount against contribution per order, not gross margin. With a contribution share of 37.0%, 20% off needs 118% more orders; the textbook 52% margin says 62.5%.
- Extra items in the same basket are worth far more than extra orders, so bundles and well placed thresholds beat flat percentages.
- Gifts cost their landed cost and free delivery costs what customers paid towards it: both need much less uplift.
- Count the dip after a sale and the orders that would have come anyway.
- Use unique single use codes and keep the code box behind a link.
- Measure every promotion with a holdout and judge it on contribution per person.
- Deep cuts make sense for stock you will never reorder, because its cost is sunk.
A discount always brings orders. Whether it brings money is a different question, and the answer hides in four numbers: what each order really leaves you, how many extra orders come, how many would have come anyway and what happens after the promotion ends. This chapter works out each one with a real formula and an invented shop, so you can judge your next promotion before you launch it.
A discount is a price cut you pay for out of margin
Sales are flat, a competitor has a banner saying "20% off everything", and the quickest lever in reach is a discount code. Orders will go up. The question this chapter answers comes after: did the discount make money, or did it just give margin away?
It depends on four things you can measure: how much each order really leaves you, how many extra orders the discount brings, how many of the discounted orders would have happened anyway, and what happens in the weeks after the promotion ends.
A few words first. A promotion is any temporary change to the deal a customer gets: a lower price, a free extra, free delivery, a gift. A discount is the most common kind, money off. Margin is what is left of a sale after the cost of the goods. Contribution goes one step further and also takes off every other cost that comes with an order: payment fees, picking, packing, postage and the cost of handling returns. If any of these terms is new, the eCommerce metrics glossary defines each one, and the unit economics chapter builds contribution line by line.
Promotions are one of the most studied topics in marketing research. A widely cited review of that research found that a temporary price cut reliably lifts sales while it runs, and that the lift is mostly made up of people switching brands, buying earlier than planned or buying more at once1. Very little of it is new demand that would not otherwise exist. Keep that finding in mind. It explains almost everything that follows.
Example: 20% off everything for two weeks
Shannonside Home is the invented online homeware shop in Limerick that runs through this whole series, at shannonsidehome.example. Niamh owns it and Callum builds and runs the shop software. Every number about it is invented for the example.
Niamh wants to run "20% off everything" for two weeks. A fifth off the price, and surely more than a fifth more orders. This chapter shows why that sale would lose about €8,000 of contribution while showing a 40% rise in revenue.
What one order really leaves you
Before you can judge any discount, you need the number the discount comes out of. That number is not the price and not the gross margin. It is the contribution per order: what the order leaves after the goods, VAT, refunds, payment fees, fulfilment and returns handling.
The series uses one fixed set of figures for Shannonside Home, set out in the glossary chapter. The average order is €84 including VAT, already after the discounts the shop usually gives, and without delivery. VAT is 23%. The gross margin on product is 52%. About 9% of orders are refunded. Payment fees are about 1.7% of the order value, fulfilment (picking, packing and postage with An Post and couriers, net of what customers pay towards delivery) costs €7.50 per order, and handling a return costs €10.50.
Example: the average Shannonside Home order, line by line
| Line | Amount | How it is worked out |
|---|---|---|
| Customer pays, including VAT | €84.00 | the example's figure |
| Net of VAT | €68.29 | |
| Net after expected refunds | €62.15 | , because 9% of orders come back |
| Cost of the goods kept | €29.83 | 48% of €62.15, the goods that do not come back |
| Payment fees | €1.43 | 1.7% of €84, not returned on a refund |
| Fulfilment | €7.50 | the example's figure |
| Expected returns handling | €0.94 | |
| Contribution before marketing | €22.44 | what the order leaves |
€22.44 is 36.1% of net revenue after refunds. That is the pot every discount comes out of, and it is much smaller than a 52% gross margin suggests. Over 1,980 orders a month it adds up to €44,440 of contribution before marketing, which matches the glossary chapter's monthly figure.
The break even uplift: how many more orders a discount needs
Here is the core of the chapter. When you give a discount, every order that would have come anyway now earns less. To end up with the same total contribution as before, you need enough extra orders to make up for it. The share of extra orders you need is called the break even uplift.
Start from what stays equal. Before the promotion, orders each leave . During the promotion, each order leaves , where is what the discount costs you per order. You break even when the new number of orders times the smaller contribution equals the old total.
Here is the break even uplift, the share of extra orders you need (0.5 means 50% more orders). is the contribution per order at the normal price, in euro. is the contribution the discount removes from one order, in euro. The derivation is one line: , divide both sides by and subtract one. Foundations: marginal versus average explains why the extra orders are judged at the new, smaller contribution and not at the old average.
The cost of the discount, , is not simply the money off the price. Three things shrink it a little. VAT: a euro off a VAT inclusive price is only 81 cent of your net revenue at 23% VAT. Refunds: an order that is returned is refunded at the discounted price, so on refunded orders the discount costs nothing. Payment fees: a lower price means a slightly smaller fee. The cost of the goods does not shrink at all. The mug costs the same to buy in whatever you sell it for.
For a percentage discount on the goods, that gives a simple rule. Call the part of the order a discount eats into: net revenue after refunds, minus the payment fee. Then , and the formula can be written with shares alone.
is the discount as a share of the price (0.20 for 20%), is the net revenue after refunds minus the payment fee, and is the contribution as a share of . When reaches , the denominator hits zero and no number of extra orders can save the promotion: every order loses money. Foundations: ratios and rates covers working with shares like these.
Example: what "20% off everything" needs at Shannonside Home
From the order table, euro, and . So
A 20% discount costs euro per order. Each order now leaves euro. The break even uplift is
So : Shannonside Home needs 118% more orders, more than double, just to stand still. In a normal two week stretch the shop takes about 914 orders, so the sale must bring about 1,992 orders in those two weeks before it earns a single extra euro.
Now compare the textbook version of this calculation, which you will find in many places. It uses the gross margin of 52% instead of the contribution share: , so 62.5% more orders. That figure ignores that every extra order also brings its own postage, packing, payment fee and returns. It roughly halves the true hurdle. Plan with the gross margin and you will run promotions that lose money while looking fine on paper.
The break even discount for this shop is . At 37% off, Shannonside Home could double, triple or quintuple its orders and still not earn a cent more.
The hurdle grows much faster than the discount: going from 10% to 20% off roughly triples the uplift you need. The same shape holds for any shop. Only the numbers move.
Extra items in the same order are worth more than extra orders
The break even formula above assumes the discount brings more orders. But some promotions do something different: they make people put more into the basket they were going to buy anyway. That changes the maths, because an extra item in an existing order does not bring a second parcel, a second pick and pack, or a second chance of a return being handled.
This is why bundles, multibuys and "spend more, save more" offers can pay when a flat percentage off does not. They aim the discount at the lowest cost kind of extra sale there is.
Example: one extra €28 item, two ways
Take a €28 item, say a linen tea towel set. Net of VAT and expected refunds it brings euro. The goods cost 48% of that, €9.94, and the payment fee is 1.7% of €28, about 48 cent.
Added to an order that was happening anyway, the only extra cost is a little more picking time, say 45 cent. It leaves euro.
Sold on its own as a separate order, it also carries the full €7.50 fulfilment and the 94 cent expected returns handling. It leaves euro.
The same product earns five times as much when it rides along in a basket. A promotion that gets people to add one more thing is working with the grain of the cost structure. A promotion that brings lots of small separate orders is working against it. The cross sell and upsell article covers how to make those basket additions happen without any discount at all.
Every promotion type, and what it really costs
Promotions come in many shapes. Each one changes behaviour in its own way, and each one costs you something different from what the customer sees. The table gives the overview. The sections after it work through the ones that need maths.
| Promotion | What it does to behaviour | What it really costs you | Where it fits |
|---|---|---|---|
| Percentage off | More orders, often pulled forward | on every order, including those that would have come anyway | Clearing stock, rare events |
| Fixed amount off above a spend | Some baskets grow to reach the threshold | The amount off, net of VAT, on every qualifying order | When the threshold sits above most baskets |
| Buy X, get Y (multibuy) | More units of the same product | The free or reduced price unit, at cost and fees | Consumables, sets, gifts |
| Bundle | More items per order, across products | The bundle discount, on items that ride in one parcel | Products that belong together |
| Gift with purchase | Bigger baskets to reach the gift, goodwill | The landed cost of the gift, not its retail price | When you have a gift customers value |
| Free delivery | Fewer abandoned checkouts, more small orders | What customers would have paid towards delivery | Short events, or a well placed threshold |
| First order discount | Sign ups and first orders | The discount, plus weaker repeat buying | Only with a measured payback |
| Loyalty points | Repeat orders, if the scheme is well designed | The share of points actually redeemed | Shops with frequent repeat buying |
| Sales event (Black Friday, summer sale) | A spike in orders, then a dip | All of the above, at scale | When you plan for the dip too |
Fixed amount off above a spend threshold
"€12 off when you spend €105" sounds generous and controlled. Its cost depends almost entirely on where the threshold sits compared with the baskets you already get. Every order that was already above €105 gets €12 for nothing. Every order just below it might grow to reach it. The promotion pays if the second group, plus any genuinely new orders, outweighs the first.
A euro off a VAT inclusive price is worth of net revenue. Spread over refunds and less the small fee saving, €12 off costs euro per qualifying order.
Example: €12 off orders over €105 for a month
Callum looks at last month's baskets. 22% of orders, about 436 of the 1,980, were already €105 or more. Another 15%, about 297 orders, sat between €80 and €105, close enough to top up.
- The subsidy: 436 orders get €8.67 off that they did not need, so euro of contribution given away.
- The top ups: suppose four in ten of the near misses add a €26 item, so 119 orders. Each added item leaves about €9.11 after its goods, fee and extra picking. After the €8.67 discount, each topped up order gains only 44 cent, so about €52 in total.
- What is missing: euro. At euro per new discounted order, the promotion needs about 271 entirely new orders in the month, 14% more, just to break even.
Moving the threshold to €130 would cut the subsidy to the few orders already above it, and make the offer a genuine reason to add something. The unit economics chapter works through the same logic for free delivery thresholds, with the share of customers who top up, pay or walk away.
Buy X, get Y and multibuys
"Three for the price of two" is a 33% discount on the three items together. Whether it makes money depends on what the customer would have bought without it. If they would have bought one, the offer sold two extra units at a profit. If they would have bought three, it gave a third of the price away.
Example: three tea towels for the price of two
Shannonside Home sells a single tea towel at €10.50. Net of VAT that is €8.54, the goods cost 48% of it, €4.10, so each towel leaves €4.44 before the order's own costs. To keep the comparison clean, this example looks at the towels alone and leaves out refunds and fees, which change nothing in the conclusion.
- Three for two: the customer pays €21, so €17.07 net, for goods that cost . The towels leave euro.
- If that customer would have bought one towel at full price: it would have left €4.44. The offer earned 33 cent more and moved two more towels.
- If they would have bought two at full price: they would have left €8.88. The offer cost €4.11.
- If they would have bought three anyway: they would have left €13.32. The offer cost €8.55.
So the multibuy only pays where most buyers would otherwise take one. The order history tells you: if most tea towel orders already contain two or three, a multibuy is a subsidy.
Bundles
A bundle sells several different products together at a lower price than the parts. Good bundles combine things that belong together, so the customer would not have bought them all separately anyway. Because the items ship in one parcel, the order's fixed costs are paid once.
Example: the reading corner bundle
A floor lamp at €76, a linen shade at €35 and a warm bulb at €9 add up to €120. Shannonside Home offers them together at €108, 10% off.
The discount costs €12 in the price, so euro of contribution. If a customer would have bought only the lamp, the bundle adds the shade and the bulb, €44 at full price. Using the same steps as before, those two items bring euro net, cost euro in goods, 75 cent in fees and perhaps 90 cent in extra picking, leaving €15.28. After the €8.67 discount, the bundle is €6.61 ahead for that customer.
If a customer would have bought all three anyway, the bundle cost €8.67. So the bundle pays as long as more than about of bundle buyers are people who would only have bought the lamp. That is a much easier bar than doubling orders.
Gift with purchase
A free gift costs you its landed cost, the price you paid for it with freight and duty, not the price on its label. The customer values it at the label price. That gap is why a gift can be worth more to the customer than the same money off, for less money from you.
Example: a free mug against €16 off
Shannonside Home's speckled mug sells for €16. Its landed cost is 48% of the net price: euro. As money off, €16 would cost euro of contribution.
So a "free mug with orders over €115" costs €6.24 per qualifying order, and "€16 off orders over €115" costs €11.57. Both look like €16 to the customer. One costs you 54% of the other. Two conditions: the gift must be something people actually want, and it must not take a sale away, so pick a product that rarely sells on its own, or stock bought for the purpose.
Free delivery
Free delivery is the promotion customers notice most and the one that often costs least, because the shop pays the carrier anyway. What you give up is what customers would have paid towards delivery.
Example: a free delivery week
At Shannonside Home, customers pay on average €1.60 per order towards delivery, already netted off in the €7.50 fulfilment figure. A free delivery week therefore costs €1.60 per order. The break even uplift is
So , or 7.7% more orders. A 10% discount would need 37.1%. If the shop wants a promotion at all, free delivery for a short spell is a far easier bet than a percentage off. The unit economics chapter covers the permanent version, the free delivery threshold, in full.
First order discounts
A welcome discount, "15% off your first order when you join the newsletter", is really a customer acquisition cost. It should be judged as one: against what the new customer is worth over time, not against the first order alone. The chapter on customer acquisition cost and payback shows how.
There is one research finding every shop owner should know here. Michael Lewis studied customers of a newspaper and an online grocer and found that the deeper the discount used to win a customer, the lower their repeat buying and their long term value. In his data, customers won with a 35% acquisition discount were worth about half as much over time as customers won without a promotion2. A discount attracts people who like discounts. Some of them never pay full price.
Example: the 15% welcome code over twelve months
A new Shannonside Home customer places 1.45 orders in their first year, at €22.44 each, so they are worth about euro of contribution in that year.
With a 15% welcome code, the first order costs euro, so it leaves €13.33. If repeat buying were unchanged, the year would be worth euro. If, in line with the direction of Lewis's finding, the discount customers come back a quarter less often (an assumption for the example, not a measured figure), it becomes euro.
So the code has to bring in at least times as many new customers as the shop would have won without it, 56% more, before it pays inside the first year. That is a question for a holdout test, not for a gut feeling.
Loyalty points
A points scheme is a discount paid later, and its cost is the share of points actually redeemed (the rest is called breakage). The loyalty article covers scheme design, breakage and the accounting liability in depth.
Example: one point per euro, 100 points for €5
Shannonside Home considers giving one point per euro spent, with 100 points worth €5 off. That hands out 5% of spend in value. If 70% of points are eventually redeemed (an assumption for the example), the real cost is 3.5%, so euro per order. The break even uplift is , 10.5% more orders, which here means more repeat orders. With 28% of first time customers buying again within twelve months, the scheme would need to lift that to about 31%.
Pull forward and the dip after the promotion
A promotion does not only create orders. It moves them. People who were going to buy next month buy now, while the price is lower, and then do not buy next month. Some who hear about a sale coming wait for it. Researchers call this purchase acceleration, and its visible sign is a post promotion dip: sales fall below normal for a while after the promotion ends.
The research on dips is careful and worth knowing. In grocery store data the dip is often hard to see with the naked eye, because it is spread over several weeks and hidden among other changes. Van Heerde, Leeflang and Wittink built models designed to find it and estimated the dips at between 4% and 25% of the extra sales during the promotion3. A later study of 83 stores and ten product categories found dips are stronger for higher priced, frequently promoted products and where promotions are less predictable4. Homeware is not groceries, so take the size as a guide, not a rule, and measure your own.
To count the real extra orders from a promotion, add up the gap between actual and normal orders over the whole window, before, during and after.
is the net number of extra orders the promotion created. is the actual number of orders in week , is the baseline, the number you would have expected without the promotion, and the sum runs over every week from the announcement until orders are back to normal. Weeks in the dip have and subtract. Foundations: seasonality shows how to set a baseline that respects the time of year.
Example: Shannonside Home's two week summer sale
Suppose Niamh runs her 20% sale anyway, in weeks 5 and 6 of a twelve week stretch. The baseline is about 457 orders a week. Week 4, when the sale is announced, comes in at 448. The sale weeks bring 835 and 770 orders. The six weeks after bring 372, 405, 432, 449, 455 and 458.
The bump during the sale: extra orders.
The dip: week 4 lost 9, and weeks 7 to 12 lost . Together, 180 orders that would have come at full price came in the sale instead, or not at all. That is 26% of the bump, just above the range the grocery research found.
So : the sale created 511 genuinely extra orders. Now put money on it. The two sale weeks would normally have brought 914 orders at €22.44, so €20,510 of contribution.
- The subsidy: 914 orders that would have come anyway each lose €12.14, so €11,096.
- The extra orders: 691 orders at €10.30 each, so €7,117.
- The dip: 180 orders lost at full price, €22.44 each, so €4,039.
Net, the sale cost euro of contribution. Meanwhile gross revenue in the sale weeks rose from €76,776 to euro, up 40.5%. The revenue chart celebrates. The bank account does not. This is the single most common way promotions fool their owners.
Cannibalisation: the orders you would have had anyway
The biggest cost in the waterfall above is not the dip. It is the discount handed to people who would have bought at full price. Marketing people call this cannibalisation: the promotion eats sales you already had. It comes in three forms in an online shop.
- Across customers: people who were going to buy anyway get the discount.
- Across time: people who would have bought later buy now, the pull forward from the previous section.
- Across products: people switch from a full price product to the discounted one next to it.
The research shows how easy it is to misread this. A well known decomposition of promotion effects said about three quarters of a brand's promotion response came from people switching brands. Van Heerde, Gupta and Wittink showed that this was a figure about elasticities, not unit sales, and that in unit terms only about a third of the extra sales came from competing brands5. The lesson for a shop owner is not the exact share. It is that "where did these extra sales come from" needs a careful measurement, because the obvious reading of the numbers is often wrong.
And the effects rarely last. Pauwels, Hanssens and Siddarth followed the effects of price promotions over time and found that permanent effects on sales were virtually absent: after an adjustment period, sales went back to where they were6. A promotion borrows sales from the future and from full price buyers. It rarely creates a lasting new level.
Example: who used the summer sale
Callum splits the 1,605 sale orders by customer. 52% came from returning customers, most of whom had bought in the same season last year without a sale. These are the people the sale subsidised. How many would have bought anyway, nobody can see from the orders alone. That is what a holdout is for, two sections on.
Discount dependency: when customers learn to wait
The longer term risk of frequent promotions is that customers learn your rhythm. If there is a sale every six weeks, why pay full price in between? Mela, Gupta and Lehmann studied more than eight years of purchase data for a packaged good and found results consistent with consumers becoming more price and promotion sensitive over time as promotions increased and advertising fell7. Customers also judge a price against what they remember paying before. A review of reference price research concluded that consumers form reference prices partly from past prices, and react more strongly to prices above their reference than to prices below it8. Run a discount often enough and the discounted price becomes the reference. The full price then feels like a loss.
The pricing psychology article covers reference prices and anchoring in more depth. Here, the job is to notice dependency early, in your own numbers.
Example: the share of orders with a code
Callum tracks one number every quarter: the share of orders that used any discount, and the average discount on them.
| Quarter | Orders with a discount | Average discount on those orders | Discount cost per order, all orders |
|---|---|---|---|
| Q1 last year | 18% | 12% | |
| Q3 last year | 27% | 14% | |
| Q1 this year | 34% | 15% | |
| Q3 this year | 41% | 16% |
The discount cost per order tripled in eighteen months, from €1.31 to €3.98, while orders did not grow. That is €2.67 of the €22.44 pot per order, across 1,980 orders a month, about €5,290 a month that used to be contribution. The signs to watch alongside it: full price conversion rate falling between promotions, and more customers whose every order used a code.
The cure is fewer, shorter, better targeted promotions, each one measured.
Coupon codes leak, and the code box invites hunting
A discount code meant for one group rarely stays with that group. Codes get shared on voucher websites, picked up by browser extensions that try codes automatically at checkout, and passed between friends. Each use by someone who was about to buy anyway is pure subsidy.
The checkout itself can make it worse. A Nielsen Norman Group study of discount usability found many purchases side tracked or abandoned by users who did not have a code for the visible code field, and observed that many users leave the checkout page, or even the site, in search of a promotion to try9. Baymard Institute's checkout guidelines make the same point: promotional fields are distracting and encourage some users to leave the checkout to hunt for coupons off site10. A big empty box labelled "discount code" tells every customer that someone else is paying less.
Three fixes, in order of effect:
- Use unique, single use codes for anything sent to a list, so a leaked code works once and then stops.
- Apply targeted discounts automatically through a link in the email, so nobody needs a code at all.
- Put the code field behind a small text link in the basket rather than an open box, unless a public promotion is running.
Example: what the leaked welcome code costs
Shannonside Home's welcome code WELCOME15 is printed in the sign up email. Callum checks last month: 310 orders used it, and 120 of them came from email addresses that were not on the newsletter list, most arriving from a voucher website. Each cost euro of contribution, so euro a month went to people who were already at the checkout.
Example: Callum's single use codes in Solidus
Shannonside Home runs on Solidus, the open source eCommerce framework on Ruby on Rails. In current Solidus versions, the promotions system lives in the solidus_promotions component. A promotion can have a usage limit per code, and a code batch generates many random codes from one base code11. This is how Callum replaces the shared code with one code per subscriber.
# Run once from a Rails console or a small task.
promotion = SolidusPromotions::Promotion.find_by!(name: "Welcome 15")
# Each code may be used exactly once.
promotion.update!(per_code_usage_limit: 1)
# 2,000 codes like WELCOME_k7m2qp, generated in a background job.
batch = promotion.code_batches.create!(
base_code: "WELCOME",
number_of_codes: 2_000
)
batch.process
per_code_usage_limit caps how often any single code can be used. code_batches.create! stores the request, and process hands it to a background job that writes the codes, each made of the base code, a join character and a random suffix. The sign up email then takes the next unused code for each new subscriber. A code posted on a voucher site now works for one order, not hundreds.
Measuring a promotion properly: hold some people out
Everything so far points at one question that ordinary reports cannot answer: how many of the promotion's orders would have happened anyway? The orders that used the code do not tell you. The revenue chart does not tell you. "Revenue from the promotion" in an email tool does not tell you either, because it counts every order with the code, including those that would have come regardless.
The honest answer comes from a holdout: before you send the offer, pick a random group of the people you would send it to and do not send it to them. Everything else stays the same. After the promotion, compare the two groups. Because the groups were chosen at random, the only systematic difference between them is the offer, so the difference in what they bought is what the offer caused. The chapter on experiments inside your own shop covers the general technique, and the attribution chapter explains why incrementality beats attribution for decisions like this.
The number that matters is not the extra orders, it is the extra contribution per person.
is the extra contribution the promotion caused. is the number of people who received the offer. is the average contribution per person in the offer group over the measurement window, and is the same for the holdout. Both averages include people who bought nothing. If is negative, the promotion lost money, however many orders it brought. Comparing averages like this is the logic of Foundations: hypothesis tests.
Because the groups are samples, the difference in buying rates comes with uncertainty. A 95% confidence interval for the difference between two proportions is
where and are the shares of people who ordered in the offer and holdout groups, and are the group sizes, and 1.96 is the multiplier for 95% confidence. Foundations: confidence intervals explains where the formula comes from, and Foundations: sample size explains how big the holdout needs to be.
Example: the 15% newsletter offer with a 10% holdout
Niamh wants to send a 15% code to the whole newsletter list of 38,000. Callum persuades her to hold back 10%. So 34,200 subscribers get the code and 3,800 get the normal newsletter without it. The window is fourteen days.
The assignment must be random and stable, so that a subscriber cannot end up in both groups. Callum hashes the subscriber's id together with the name of the test.
require "digest"
# Same subscriber and test name always give the same group.
def promotion_arm(subscriber_id, test_key: "newsletter_15_june")
bucket = Digest::SHA256.hexdigest("#{test_key}:#{subscriber_id}").to_i(16) % 100
bucket < 10 ? "holdout" : "offer"
end
After the fourteen days, Callum counts orders per group from the shop database. Only completed orders count, and each subscriber's orders are matched by email address.
SELECT a.arm,
COUNT(DISTINCT a.email) AS people,
COUNT(o.id) AS orders,
COALESCE(SUM(-o.promo_total), 0) AS discount_given,
COALESCE(SUM(o.item_total + o.promo_total
- o.included_tax_total), 0) AS net_goods
FROM promotion_assignments a
LEFT JOIN spree_orders o
ON o.email = a.email
AND o.state = 'complete'
AND o.completed_at >= '2027-06-07'
AND o.completed_at < '2027-06-21'
WHERE a.test_key = 'newsletter_15_june'
GROUP BY a.arm;
promotion_assignments is a small table Callum created to store each subscriber's group. spree_orders is the standard Solidus orders table: promo_total holds promotion adjustments as a negative number, so the query flips its sign, and included_tax_total is the VAT included in the prices. From net goods and the shop's known costs per order, Callum works out contribution per group.
The results:
| Offer group | Holdout | |
|---|---|---|
| People | 34,200 | 3,800 |
| Orders | 1,129 | 99 |
| Share who ordered | 3.30% | 2.61% |
| Contribution per order | €14.70 (85% used the code at €13.33, 15% did not at €22.44) | €22.44 |
| Contribution per 1,000 people | €485 | €585 |
The offer lifted the ordering rate by 0.70 percentage points, a 26.7% rise. The confidence interval:
Here is the square root in the formula, worked out from the table. So the offer really did bring more orders, somewhere between 0.16 and 1.24 extra orders per 100 subscribers. An email tool would report 1,129 orders and about €83,000 of revenue "from the campaign". And yet
With and euro per person, the promotion lost about €3,400 of contribution. Even at the top of the confidence interval the offer group would earn €565 per 1,000 people, still below the holdout's €585. For this code to break even, the offer group would have had to order at 3.98%, not 3.30%. The extra orders were real. They were not enough to pay for the discount on the orders that would have come anyway.
Next, Niamh tries a smaller benefit or a code only for lapsed subscribers, each with the same holdout.
What to send to your analytics
Your analytics should see promotions in the same terms. Google Analytics 4 has recommended events for this: view_promotion when a promotion is shown and select_promotion when someone clicks it, each with a promotion_id and promotion_name. The purchase event takes a coupon parameter for the order, and each item can carry its own coupon and a discount, the money off per unit12.
gtag("event", "purchase", {
transaction_id: "R123456789",
value: 71.40,
currency: "EUR",
coupon: "WELCOME_k7m2qp",
items: [{
item_id: "SKU_LAMP_OAK",
item_name: "Oak floor lamp",
price: 71.40,
discount: 12.60,
quantity: 1
}]
});
Here the lamp's price is sent after the discount, and discount records the €12.60 taken off it, so reports can show both. Analytics only sees people who accepted cookies, so count the holdout in the shop's own database. The tracking plan chapter sets out every event and parameter, and the purchase event chapter covers getting the value right.
When you cannot hold anyone out
A sitewide sale cannot hold out customers, because everyone sees the site. Three second best options, from best to weakest:
- Hold out a whole region or channel, for example run the sale only for visitors from paid social and not from email, and compare the two against their own history.
- Compare against a baseline built from the same weeks of previous years, adjusted for this year's trend, and count the full window including the dip, as in the summer sale example.
- Compare against the weeks just before, the weakest, because seasons, weather and ads all move.
Whichever you pick, write down how you will judge the promotion before it starts.
Clearance is different: the stock has already been paid for
There is one situation where deep discounts often do make money: clearing stock you cannot sell at full price. The difference is in what the goods really cost you. For a product you will keep restocking, every sale must cover the cost of buying the next one. For stock you will never reorder, the money is already spent. What matters now is not what you paid, but what the stock is worth to you from here on: what it will sell for, how long it ties up space and cash, and what it will fetch at the end. Economists call the money already spent a sunk cost. It is the same whatever you decide, so it should not drive the decision.
Example: 40 discontinued sideboards
Shannonside Home has 40 oak sideboards from a range the supplier has discontinued. They sell for €490, so €398.37 net of VAT, and cost €191.22 each. At full price, two sell a month. Each one costs €52 to deliver by two person courier, and storage costs the shop about €16 per sideboard per month. Payment fees are 1.7%. The comparison below leaves out refunds to keep it short.
Option A, hold the price for a year:
- 24 sell at full price, each leaving euro, so €8,113.
- Storage: the stock falls from 40 to 18 over twelve months, 348 sideboard months in total, at €16 each, so €5,568.
- The 16 left go to a trade buyer at €80 each, so €1,280.
- Total from here on: euro.
Option B, 30% off, sold out in about eight weeks:
- 40 sell at €343, so €278.86 net, each leaving euro, so €8,841.
- Storage: about 60 sideboard months, so €960.
- Total from here on: euro.
The clearance earns about €4,060 more, and frees the space and the cash two months in instead of twelve. On a "margin" view the 30% sale looks awful: instead of 52%. But the €191.22 was spent long ago and is the same in both options. The useful question is only "which option leaves more money from here on".
Clearance logic applies only to stock you are truly leaving behind. And a clearance price is still a price reduction in law.
Price reductions have rules
When you show a reduced price next to a higher one, the law cares about whether that higher price is genuine. In Ireland, the European Union (Requirements to Indicate Product Prices) (Amendment) Regulations 2022 (S.I. No. 597 of 2022) added a rule that a trader who announces a reduction in the selling price of a product must state the prior price in that announcement. The prior price is the lowest price the trader applied to the product during a period of not less than 30 days before the reduction, and where there are consecutive reductions, the lowest price before the first one. Not stating it is an offence13. The Competition and Consumer Protection Commission (CCPC) enforces the rule and explains it for business in its guidance on price reductions14. The rule comes from the EU Omnibus Directive15. A "was €490" that the shop charged for two days before the sale does not pass. The next chapter on urgency, scarcity and persuasion goes through the rules on reference prices, countdowns and "limited time" claims in detail. This is general information and not legal advice.
A promotion plan on one page
Every promotion decision runs through the same few questions. The flow below is the order Callum and Niamh now use, before any promotion goes live.
And the checklist that goes with it:
| Before launch | Why |
|---|---|
| Contribution per order known, not just gross margin | The real hurdle can be twice the textbook one |
| Break even uplift written down | So the result can be judged against it |
| Offer chosen for its cost structure | Bundles, gifts and free delivery often need far less uplift |
| Threshold set above most existing baskets | Otherwise most of the cost is subsidy |
| Unique single use codes, or automatic application | Leaked codes cost money with no new orders |
| Holdout or comparison group fixed in advance | The only honest way to count what the promotion caused |
| Window includes the weeks after | The dip belongs to the promotion |
| Reference prices checked against S.I. No. 597 of 2022 | A missing or wrong prior price is an offence |
Example: Niamh's revised plan
Niamh drops "20% off everything". Instead, for June she plans three things. A free delivery week for everyone, which needs 7.7% more orders. The reading corner bundle on the lamp pages, which pays if more than 57% of buyers would only have bought the lamp. And the 40 sideboards cleared at 30% off, with the lowest price of the last month stated honestly. Every one gets a comparison group or a holdout, and Callum reports contribution, not revenue, at the end of the month.
Conclusion
A discount is a price cut you pay for out of contribution, and contribution per order is much smaller than the gross margin suggests. At Shannonside Home, 20% off needs more than twice the orders just to stand still, and that is before the dip after the sale and the orders that would have come anyway. Most promotions that look like successes in revenue are losses in contribution.
That does not mean never promote. It means choose the promotion for its cost structure: benefits that cost you less than they are worth to the customer (gifts, free delivery), discounts aimed at extra items in the same basket (bundles, well placed thresholds), and deep cuts only for stock whose cost is already sunk. Protect the codes, watch the share of orders with a discount, and above all measure each promotion against people who did not get it. The extra contribution per person is the only number that answers the question this chapter started with.