Sub topic 14
Measuring whether a price or coupon worked
This chapter assumes you have read the earlier chapters on pricing, revenue share, fees and coupon types. You should be comfortable with percentages and with the idea that what you keep per sale depends on the channel. Here you will learn how to judge a price change or a promotion using numbers that show whether it made you money.
Why revenue is the wrong first number
A coupon almost always raises the number of sales. That alone does not show it worked. A 50% discount that doubles your sales gives you the same gross revenue as before. After fees, refunds and the cost of buyers who would have paid full price anyway, you may keep less.
So judge every price or promotion on four measures, in this order:
- Net revenue per visitor or per day, after revenue share, payment fees and refunds.
- Conversion rate, which is the share of visitors who buy.
- Refund rate, which is the share of sales that are returned.
- Buyer quality, such as completion and review scores, if you have the data.
Gross revenue is a trap because it ignores what each sale costs you to make.
Net revenue per sale
Start with the money you keep per sale. The function below takes a price, a platform share, and payment fees. It then subtracts refunds using a refund rate. The 2.9% + 0.30 fee is an assumed example rate, not a quoted one.
from decimal import Decimal, ROUND_HALF_UP
CENT = Decimal("0.01")
def money(x: Decimal) -> Decimal:
return x.quantize(CENT, rounding=ROUND_HALF_UP)
def net_per_sale(price, platform_share, fee_rate, fee_fixed, refund_rate):
"""Expected amount kept per sale, after refunds on average."""
after_platform = price * (Decimal(1) - platform_share)
after_fees = after_platform - price * fee_rate - fee_fixed
return money(after_fees * (Decimal(1) - refund_rate))
full = net_per_sale(Decimal("99.00"), Decimal("0"), Decimal("0.029"), Decimal("0.30"), Decimal("0.04"))
sale = net_per_sale(Decimal("69.30"), Decimal("0"), Decimal("0.029"), Decimal("0.30"), Decimal("0.07"))
print(full) # 92.94
print(sale) # 62.31Two things stand out. The fixed 0.30 fee takes a larger share of a lower price. The discounted sale also carries a higher refund rate here (7% against 4%), which is a plausible but assumed difference that you should replace with your own data.
The break-even lift
Before you run a promotion, work out how much extra volume it must bring. This is the break-even lift. If you keep 92.94 per sale at full price and 62.31 at the discounted price, the discount must raise sales by this factor just to match your old income:
from decimal import Decimal
def break_even_lift(net_full: Decimal, net_discount: Decimal) -> Decimal:
"""Factor by which sales must grow for total net revenue to stay equal."""
return (net_full / net_discount).quantize(Decimal("0.01"))
print(break_even_lift(Decimal("92.94"), Decimal("62.31"))) # 1.49The result, 1.49, means you need about 49% more sales at the discounted price only to break even. If a 30% coupon usually lifts your sales by 20%, you lose money on it.
This simple model ignores one thing. If your cost per extra learner is close to zero, as with a recorded course, the real loss is smaller than it looks, because the loss comes only from revenue you gave up. It is still a loss.
Incrementality: who would have bought anyway?
Many coupon buyers would have bought at full price. Those sales are not extra. You gave away margin to people who did not need the discount. This is called cannibalization.
The question to ask is: how many sales happened because of the coupon? That number is the incremental sales. You can only estimate it by comparing against a baseline, which means what would have happened without the promotion.
| Baseline method | How it works | Weakness |
|---|---|---|
| Before and after | Compare the promotion week with the week before | Seasonality and traffic changes distort it |
| Same period last year | Compare with the same dates a year ago | Your course and market have changed |
| Holdout group | Show some visitors the full price and others the coupon at the same time | Needs enough traffic and a site you control |
The holdout method is the most reliable and is the A/B test described below.
Measuring on Udemy
On Udemy you do not control the whole funnel, so your tools are limited. The instructor dashboard reports figures such as revenue, enrollments and ratings, and lets you look at them over a date range. The exact reports and their names change over time, so check what your dashboard currently offers.
Practical steps:
- Record the dates of every coupon, its percentage, and its channel (for example, your email list or social media), because the dashboard may not do this for you.
- Compare enrollments and revenue for a period before and after, and note any Udemy-run promotion in the same window.
- Track the sale source when the report shows it. Revenue share depends on how a sale arrived, so the same enrollment count can mean very different income.
- Watch refunds in the weeks after the promotion, not only on the day. Refund requests arrive after the sale.
Because Udemy may run its own discounts at the same time as yours, you often cannot separate the effects cleanly. Treat Udemy results as directional. Keep notes so that you can see patterns over several promotions.
Measuring on your own site
Your own site gives you event-level data, so you can run proper tests. Log at least these events: a visit to the sales page, a checkout start, a completed purchase, the coupon code used (if any), the price paid, and any later refund.
From those events you can compute:
- Conversion rate = purchases ÷ sales-page visitors.
- Average net revenue per visitor = total net revenue ÷ visitors. This number combines price and conversion, so it is the best single measure for comparing two prices.
- Refund rate = refunded purchases ÷ purchases, measured after a fixed window such as 30 days.
Running a price or coupon test
An A/B test splits visitors into two groups at random. Group A sees one price, and group B sees another. Everything else stays the same. Because the groups are alike, a difference in results is likely due to the price.
Use the diagram below to see the flow.
Rules that keep a test honest:
- Assign each visitor to one group and keep them there. Use a cookie or a user ID. If a visitor sees both prices, the test is spoiled, and they may feel cheated.
- Change one thing at a time. If you change the price and the page text together, you cannot tell which one caused the result.
- Decide the duration before you start. Stopping the moment one side looks ahead produces false winners.
- Run for at least one full week, so weekday and weekend behavior are both included.
- Wait for the refund window to close before you declare a winner.
How much data you need
Small samples mislead. With 200 visitors and a 2% conversion rate you expect about 4 sales. One extra sale in either group changes the result by 25%, which is noise. As a rough guide, you want dozens of purchases in each group before you trust a difference. If your traffic is too low for that, a formal test will not give a reliable answer. In that case, make larger changes, run longer, or rely on before-and-after comparisons while accepting the uncertainty.
Common errors
- Counting gross sales. Always subtract revenue share, fees and refunds first.
- Ignoring the fixed fee. A flat fee hurts low prices more.
- Mixing channels. Udemy sales and own-site sales have different shares. Compare them separately.
- Judging too early. Refunds and review scores arrive later.
- Testing during unusual weeks. A holiday or a big external mention changes who visits.
- Confusing correlation with cause. Sales rose after your coupon, but an email to a large list went out the same day.
- Training buyers to wait. If every promotion pulls sales forward, full-price sales in the following weeks drop. Compare the weeks after a promotion with your normal level. A dip means you borrowed sales from the future.
A simple review template
After each promotion, write down the same short record. Over time it becomes your own data on what works for your audience.
from dataclasses import dataclass
from decimal import Decimal
@dataclass
class PromotionResult:
name: str
visitors: int
purchases: int
refunds: int
net_revenue: Decimal # after share and fees, before refunds
def conversion(self) -> Decimal:
return (Decimal(self.purchases) / Decimal(self.visitors) * 100).quantize(Decimal("0.01"))
def refund_rate(self) -> Decimal:
return (Decimal(self.refunds) / Decimal(self.purchases) * 100).quantize(Decimal("0.01"))
def net_per_visitor(self, refunded_amount: Decimal) -> Decimal:
return ((self.net_revenue - refunded_amount) / Decimal(self.visitors)).quantize(Decimal("0.01"))
control = PromotionResult("Full price", 1000, 20, 1, Decimal("1858.80"))
test = PromotionResult("30% coupon", 1000, 31, 3, Decimal("1931.61"))
print(control.conversion(), control.refund_rate()) # 2.00 5.00
print(test.conversion(), test.refund_rate()) # 3.10 9.68
print(control.net_per_visitor(Decimal("92.94"))) # 1.77
print(test.net_per_visitor(Decimal("186.93"))) # 1.74Here the coupon raised conversion from 2.00% to 3.10%, yet net revenue per visitor fell slightly, from 1.77 to 1.74, and refunds rose. A glance at sales counts would have called it a success. With samples this small the gap between 1.77 and 1.74 is within noise, so the honest conclusion is that the coupon showed no clear gain.
Exercise
At full price you keep 80.00 per sale after fees and refunds. With a coupon you keep 50.00 per sale. How much must sales grow, as a factor, for the coupon to match your old total? Would a coupon that lifts sales by 40% be worth running on this measure alone?
Show answer
Break-even lift = 80.00 ÷ 50.00 = 1.60, so sales must grow by 60%. A 40% lift (a factor of 1.40) is below that, so total net revenue would fall. On this measure alone it is not worth running.
Exercise
A price test shows group B converting at 3.0% against 2.0% for group A, but group B's price is 25% lower. Name two further checks before you pick B.
Show answer
Compare net revenue per visitor, not conversion alone, because the lower price may cancel the gain. Also compare refund rates after the refund window, and confirm the sample is large enough, with dozens of purchases per group, for the difference to be more than noise.