Referral program A/B testing means showing two versions of your referral offer to similar groups of customers at the same time, changing only one thing, and letting the results decide which version to keep. To get a result you can trust, pick one metric before you start, change one variable, and run the test until each side has the sample size you planned, not until one side looks ahead. Most stores should test big swings in reward value or structure first, because small differences need thousands of invites to detect.
This guide covers what is worth testing, how to size and run a valid test, a worked example with clearly labeled illustrative numbers, how to read the result against your margin, and how BLOOP’s A/B testing feature works. Every number in the example tables is made up for teaching. None of it is data from a real store or a benchmark.
Key takeaways
- Test one variable at a time. If reward value and wording both change, you will not know which one moved the result.
- Pick the metric and the sample size first. Deciding when to stop after seeing the numbers makes the significance figures meaningless.
- Small lifts need big samples. On our arithmetic, detecting a move from 5% to 6% referral conversion takes about 8,155 invites per side, while 5% to 7.5% takes about 1,468.
- A conversion win is not a profit win. In our example, a $15 reward must lift orders by about 18.5% over a $10 reward just to break even on contribution.
- BLOOP splits referrers 50/50 and locks the settings. One active test per campaign, no restart after ending, and tiers cannot run at the same time.
What to test in a referral program
A referral offer has more moving parts than a subject line. The table lists the main candidates, what to compare, and what you can test inside BLOOP versus what needs another approach.
| What to test | Example A vs B | Metric to judge | Can BLOOP A/B test it? |
|---|---|---|---|
| Reward amount | $10 store credit vs $15 store credit | Referral conversion rate, then cost per order | Yes (reward value) |
| Reward type | Discount coupon vs store credit | Referral conversion rate, redemption, margin | Yes (reward type) |
| One-sided vs two-sided | Referrer only vs referrer and friend | Referral orders and conversion | Yes, by changing the referee reward |
| Give and get split | Referrer $10 / friend 10% vs referrer $5 / friend 20% | Conversion rate and total cost | Yes (give-and-get split) |
| Minimum requirement | No minimum vs $50 minimum order | Order value, conversion | Yes (minimum requirement) |
| Expiry | 30-day vs 90-day reward expiry | Redemption rate | Yes (expiry) |
| Copy | “Give $10, get $10” vs “Share and earn” | Invites, store visits | Not documented as a test variable; run it yourself |
| Placement | Referral block on the account page vs post-purchase page | Invites per customer | No, needs a different method |
| Timing | Invite right after purchase vs 14 days later | Invites per customer | No, needs a different method |
Reward amount and type
This is the usual first test because it ties directly to margin. Our guide to referral incentives lists the options, and the comparison of store credit vs discount referral rewards explains why the two cost you differently. When you test amounts, make the gap large enough to matter: $10 against $11 will not produce a readable difference at normal volumes.
One-sided vs two-sided
Gershon, Cryder and John report, across two field experiments and a lab experiment, that “prosocial” (recipient-benefiting) referral incentives recruit more new customers than sender-benefiting ones. BLOOP’s offer-design guide points the same way: default to a double-sided offer, because a referrer-only offer asks customers to recommend you while their friend gets nothing. That is a reasonable prior, so if you run referrer-only today, a two-sided variation is a sensible first test. If you already pay both sides, test the split instead.
Copy
BLOOP’s documented test variables are reward settings, not wording, so a pure copy test (same reward, different message) is not something its A/B feature is documented to do. You can still run one yourself by alternating two versions of your referral message by week or segment. Keep the change to one idea, such as leading with the friend’s benefit (“Your friend gets 10% off”) against the referrer’s (“Earn $10 for every friend”), and treat the result with the caution given for placement and timing below.
Placement and timing
BLOOP’s A/B test compares reward setups. It does not split where the referral prompt appears or when it is sent. For those, the cleanest approach you can run yourself is to alternate two versions by week or by customer segment and compare the invites per customer. Be honest about the weaker design: with a before-and-after comparison, anything else that changed in that period is a rival explanation. Start from sensible defaults, such as a prompt right after purchase, and change one thing at a time.
How to set up a valid test
1. Write the hypothesis and the metric first
A usable hypothesis names the change, the metric and the direction: “Raising the referrer reward from $10 to $15 store credit will raise referral conversion rate.” BLOOP reports ten metrics, including referral revenue, referral orders, referral invites, referee store visits, referee coupon claims and orders per invite. You pick one main metric, either customers with a referral order or customers who shared. Its documentation says to judge the test on the main metric first, because revenue can swing on one big order. Reward cost and revenue after rewards are shown separately and are never used to pick a winner.
Choose one primary metric. Looking at all ten and acting on whichever is green is a form of the multiple comparisons problem: the more metrics you check, the likelier one looks significant by chance. By our arithmetic, 100 independent checks at a 5% significance level with no real effects give a 1 – 0.95^100, or about 99.4%, chance of at least one false positive. Optimizely’s glossary makes a related point about slicing results into segments: only segment when you have sufficient traffic, or small segments produce false positives.
2. Change exactly one thing
Mailchimp’s A/B testing help describes the same discipline: you choose “a single variable type” and then create variations. Nielsen Norman Group describes the goal the same way: comparing variations of the same page “to determine which will generate the best outcomes.” Optimizely explains why: in a multivariate test traffic is split into quarters, sixths, eighths or smaller segments, so each variation gets “a much smaller portion of traffic than in a simple A/B test.” In BLOOP, the Variation column starts as a copy of your current rewards, and the documentation says to change exactly one thing in it.
3. Randomize and keep assignment fixed
You want similar people on each side, and you want each person to see only one version. BLOOP assigns each new referrer to Control or Variation, roughly 50/50, and they keep that assignment for the whole test. Referrers who were already active before the test started are excluded entirely, so the test measures new participants only. That is good for validity, and it also means the test fills slowly if you get few new referrers.
4. Decide the sample size before you start
Sample size depends on four things: the effect size you want to detect, the variability of the metric, the significance level and the statistical power. Optimizely’s glossary adds that “larger samples generally provide more reliable results” and that total visitors needed is the sample size times the number of variations. Evan Miller’s calculator takes a baseline conversion rate and the smallest effect you care about and returns a sample size per variation.
For a two-sided comparison of two conversion rates at 95% confidence and 80% power (a common convention, and our choice here), a common approximation is: invites per side = (1.96 + 0.84)^2 x [p1 x (1 – p1) + p2 x (1 – p2)] / (p2 – p1)^2, where p1 is the control rate and p2 the rate you hope to see. The squared term is about 7.85. This is our arithmetic using a textbook formula, so use a proper calculator for real decisions. The table applies it to referral conversion rate (first orders divided by invites) and adds how long it takes at an assumed 1,000 new invites per month split across both sides.
| Control rate | Hoped-for rate | Lift | Invites needed per side | Months at 500 invites per side per month |
|---|---|---|---|---|
| 5% | 6% | +1 point (20% relative) | about 8,155 | about 16.3 |
| 5% | 7.5% | +2.5 points (50% relative) | about 1,468 | about 2.9 |
| 10% | 12% | +2 points (20% relative) | about 3,838 | about 7.7 |
| 10% | 15% | +5 points (50% relative) | about 683 | about 1.4 |
To rebuild one row: for 5% against 7.5%, p1 x (1 – p1) = 0.0475 and p2 x (1 – p2) = 0.069375, the sum is 0.116875, times 7.85 is 0.9175, divided by 0.025 squared (0.000625) gives about 1,468.
The lesson is blunt. A store with 1,000 new invites a month cannot learn much from a test that hopes for a one-point lift. Either test a large change, accept a longer test, or pool a longer time window. Optimizely’s definition fits: A/B testing compares “two versions of a webpage or app against each other to determine which one performs better,” and with few conversions the comparison is mostly noise.
5. Do not stop early, and do not peek and decide
BLOOP’s documentation says to let the test run for the full test length you chose (2, 4 or 8 weeks) and warns that early leads often shrink, so it asks you to confirm before you end a test early. Early leads often swap back and forth. Evan Miller makes the statistical case: if you run a test “until we see a significant difference,” then “all the reported significance levels become meaningless,” and in his logo-change example, checking continuously pushes the actual error rate to 26.1% against an assumed 5%. His fix is to “Decide on a sample size in advance and wait until the experiment is over.” BLOOP gives a read-out only after 100 customers per variant and 7 days, and until the test length ends it shows just the leader so far, which helps, but the commitment has to be yours.
6. Watch for novelty and calendar effects
The novelty effect is the tendency for engagement to improve temporarily because something is new. A fresh reward banner can lift sharing for a week and then fade. Run the test long enough to see past the first burst. Also avoid starting a test just before a big sale period if that sale will not be part of normal life: both sides see the same calendar, so the comparison stays fair, but the result may not carry over to quiet weeks. If you are planning a seasonal push, see our Black Friday referral campaign guide and test outside the peak.
A worked example (illustrative numbers only)
These figures are invented to show the reasoning. They are not from a real store and not industry data.
Assumptions: average order $80; $50 left per first order after product cost, shipping and payment fees but before any referral cost; the friend gets 10% off ($8) in both versions; rewards are store credit and we assume it is fully redeemed. Control (A) pays the referrer $10. Variation (B) pays $15. Each side received 2,000 referral invites.
| Line | Control A ($10) | Variation B ($15) |
|---|---|---|
| Referral invites | 2,000 | 2,000 |
| Referral orders | 100 | 130 |
| Referral conversion rate | 5.0% | 6.5% |
| Cost per acquired customer (reward + $8 friend discount) | $18 | $23 |
| Contribution per order after referral costs | $32 | $27 |
| Total contribution | $3,200 | $3,510 |
Totals: A is 100 x $32 = $3,200 and B is 130 x $27 = $3,510, so B is ahead by $310, or $0.155 per invite sent. Is the conversion gap (5.0% against 6.5%) more than noise? A standard two-proportion z-test pools the rates: 230 orders over 4,000 invites is 5.75%. The standard error is the square root of 0.0575 x 0.9425 x (1/2,000 + 1/2,000), about 0.00736. The gap of 0.015 divided by 0.00736 gives z of about 2.04, a two-sided p-value near 0.04. That is significant at the 95% level but only just. A result like this is a good reason to run a confirmation period rather than celebrate.
The break-even bar
Variation B costs $5 more per order, so it needs more orders to make up the difference. Control makes $3,200. B earns $27 per order, so it needs 3,200 / 27 = 118.5 orders to match, which is a 5.93% conversion rate against 5.0%, or an 18.5% relative lift. Anything below that, even if statistically significant, loses money on first orders. That is why you check cost after you check conversion, as BLOOP’s guide advises: a variant can win on referrals and still lose money if it gives away more per order.
Three possible outcomes
| Variation B orders | B conversion | Approx. p-value | B total contribution | Verdict |
|---|---|---|---|---|
| 112 | 5.6% | about 0.40 | $3,024 | Inconclusive and below A on contribution: keep A |
| 130 | 6.5% | about 0.04 | $3,510 | Win by a thin margin: confirm before rolling out |
| 150 | 7.5% | about 0.001 | $4,050 | Clear win: roll out B |
To rebuild the first row: 112 / 2,000 is 5.6%, pooled rate 212 / 4,000 is 5.3%, standard error is about 0.00708, the gap of 0.006 gives z of about 0.85 and a p-value near 0.40. The contribution is 112 x $27 = $3,024. For the last row, 150 / 2,000 is 7.5%, z is about 3.27 and the contribution is 150 x $27 = $4,050.
How to read the results
- Check the test was valid. Did it reach the sample size you set? Did anything change on the store mid-test, such as a site redesign or a sale?
- Compare the primary metric first. If it is not clearly different, treat the result as a tie. A tie is a result: it tells you the change did not matter at your volume, so keep the cheaper version.
- Then check cost. Compute cost per acquired customer and contribution for each side, as in the table. The cheaper reward wins ties.
- Look at the secondary metrics for explanations only. Invites, store visits and coupon claims help explain why a variant moved conversion. Do not use them to rescue a failed primary metric.
- Remember the sample is new referrers only. Referrers who were active before the test started are excluded, so results may differ for your best existing advocates.
- Record what you learned. Write down the hypothesis, dates, sample sizes and the decision. Next quarter you will want to know what you already tried.
Mailchimp’s A/B tool gives you two ways to pick a winner: automatically after a set period on a metric, or manually “based on reporting data or other factors.” BLOOP uses the manual approach: when the test length ends you end the test and choose Control A or Variation B. If you do not pick within 14 days of its email, BLOOP ends the test and keeps Control A.
How BLOOP’s A/B testing works
The facts below come from the BLOOP documentation and its Shopify listing.
- What you can test. The referrer and referee rewards: reward value, reward type (coupon, store credit, cash, free product), the give-and-get split, minimum requirements and expiry.
- Split. BLOOP splits new participants roughly 50/50. The split is fixed and cannot be adjusted.
- Setup. Open Referral program, open the campaign, click Overview, then View details in the A/B Testing section. Click Create test, name it, use Edit reward on the Variation column to change one thing, then click Start test.
- Locked settings. Reward settings are read-only while a test runs, and there is one active test per campaign.
- Test length and metrics. You choose a test length of 2, 4 (recommended) or 8 weeks and a main metric: customers with a referral order or customers who shared. Ten metrics are reported in all, and reward cost and revenue after rewards are shown separately from the winner choice.
- Reading results. BLOOP reads each test with Bayesian statistics: you see the chance that B beats A, a 95% range and the risk of switching, after 100 customers per variant and 7 days.
- Ending a test. You choose Control A or Variation B and the winner’s settings are applied to your campaign automatically. Picking A simply restores what you already had. A test cannot be restarted once it has ended.
- Not with tiers. Tiers and A/B testing are mutually exclusive. Use A/B testing to compare flat rewards, and tiers when you want a ladder. Our guide to a tiered referral program and the tiered referral rewards feature page show how to design that ladder.
- Plans. A/B testing is available on every plan, including Free, and orders are unlimited on every plan. Plans follow the attributed revenue your programs bring in over 30 days (Free up to $400, Starter at $39 per month up to $2,500, Growth at $149 per month up to $10,000, Pro at $449 per month up to $40,000).
What it does not do, which is worth knowing before you plan. It tests reward settings, not wording, page placement or send timing. It does not choose the winner for you. It shows an estimate of the smallest difference your traffic can detect at each test length, so use that estimate and a calculator with the table above to plan your sample. It also excludes referrers who were already active, so you cannot use it to compare against your existing top advocates.
For the feature overview, see the referral A/B testing feature page.
Before you test: check the economics
A test only compares two options you can afford. Run the cost per acquired customer and break-even numbers for both versions first. The free referral ROI calculator lets you enter your order value, margin and reward, and our referral program ROI guide explains the full model including repeat purchases. If a variation fails the break-even test on paper, do not spend a quarter of traffic proving it.
Remember too that first-order economics is only part of the story. Schmitt, Skiera and Van den Bulte studied about 10,000 bank customers and found referred customers had a higher retention rate and a value “at least 16% higher” than similar non-referred customers, although their higher contribution margin eroded over time. That is one bank’s data, not a Shopify benchmark, so measure repeat purchases from your own referred customers before you let them tip a close call.
Also keep the friend’s discount code safe. Shopify’s Help Center says “A discount with the maximum use of one per customer applies only to that specific discount,” which is the setting that stops one friend from using the offer repeatedly and distorting both sides.
A simple test plan for the next 90 days
- Weeks 1 to 2: compute your baseline referral conversion rate and weekly new invites from the last 90 days. Use it in the sample-size formula.
- Week 3: write one hypothesis and choose the primary metric. Set the end rule in writing: the invite count per side, not a date.
- Weeks 3 to 10 or more: run the test. Do not edit rewards (BLOOP locks them anyway), and do not change the offer elsewhere on the store.
- At the end: read the metric, check cost per acquired customer, choose a winner and record the decision.
- Next test: pick the next single variable. Reward amount first, then type or split, then copy.
Frequently Asked Questions
How long should a referral program A/B test run?
Until both variants reach the sample size you set in advance. BLOOP offers test lengths of 2, 4 or 8 weeks and shows an estimate of the smallest difference your traffic can detect, so choose the length from that estimate; the right length depends on volume. With around 1,000 new invites a month, our illustrative arithmetic suggests anywhere from about 1.4 months to over a year depending on the lift you hope to detect.
What is a good sample size?
It depends on your baseline conversion rate and the smallest lift you care about. Using the textbook formula at 95% confidence and 80% power, a 5% to 7.5% lift needs about 1,468 invites per side and a 5% to 6% lift needs about 8,155. Use a calculator such as Evan Miller’s for your own numbers.
Which metric should I use to pick the winner?
BLOOP’s main metric is either customers with a referral order or customers who shared; use the first when you have enough referral orders and the second when you have few. Then check cost per acquired customer, because a variant can win on conversion and still lose money if it gives away more per order.
Can I A/B test referral program placement or timing in BLOOP?
No. BLOOP’s A/B test compares reward setups. For placement or timing you would need to run your own comparison, for example alternating weeks, and treat the result with more caution.
Can I run an A/B test and tiered rewards together?
No. BLOOP documents tiers and A/B testing as mutually exclusive. Disable one to use the other.
Ready to test your offer? Install BLOOP from the Shopify App Store and start with one test on your current campaign.