Course contents
Practitioner · Course 2: Digital Analytics and Testing · Lesson 2 of 5

Setting up an A/B test that actually isolates one variable

Level: AdvancedTime: 45 minutesOrder used: A (the T-shirt)Tool: Digital analytics and testing worksheet
For factories, buyers and retailers who run their own online outlet store and want to test one change to a product page in a way that actually proves the change caused the result. Lesson 2.1 is useful background but not required. The figures are teaching figures built on Order A, the T-shirt.
FactoryDelta Garments, own factory-outlet online store
ProductOrder A-style second-quality T-shirt
Variant 1 (control)Existing studio product photo
Variant 2 (test)New on-model product photo
Traffic split50/50, same two-week period
One change testedPhoto only; price, description and layout unchanged
02Opening

This page teaches how to set up an A/B test of a product page so that only one variable changes between the two versions, and any difference in the result can be trusted as that variable's own effect

A product page can be changed in many ways at once, a new photo, a shorter description, a different button colour, but changing several things together and then comparing the result to the old page leaves no way to tell which change actually caused a better or worse outcome. A test only proves something if everything except the one thing being tested stays the same.

This lesson gives you the method a factory or retailer uses to set up a fair, one-variable test before drawing any conclusion from it. You will apply it to Delta Garments' own factory-outlet online store, testing a new product photo for an Order A-style second-quality T-shirt against the existing photo, because a test with more than one change mixed in cannot honestly tell anyone which change worked.

03Before you start

What you need, and what this lesson does not cover

You need: the idea of reading a product page's own baseline conversion rate correctly, from Lesson 2.1, is useful background but not required.

By the end of this lesson you can:

  • choose one variable to test and hold every other factor unchanged;
  • split traffic fairly between a control version and a test variant;
  • run a test for a period long enough to collect a trustworthy result;
  • recognize a confounding factor that would ruin a test before it starts;
  • record a test's own setup clearly enough that its result can be trusted later.

Not covered here: judging whether a completed test's result is real or ordinary noise (Lesson 2.3), or diagnosing a page that already gets plenty of traffic but converts poorly (Lesson 2.4). This lesson only teaches how to set a test up correctly before it runs.

04Key terms

Words you will meet in this lesson

TermMeaning
One-variable testA test in which exactly one element of a page changes between the control and the test variant, so any difference in result can be attributed to that element alone.
Test variantOne of the two or more competing versions of a page being compared in a test.
Control conditionKeeping every factor except the one variable being tested the same between the two versions, so the comparison isolates that single variable.
Confounding factorAny other change happening at the same time as a test that could also explain a change in the result.
Traffic splitThe way incoming visitors are divided between the control version and the test variant, usually as close to equal as possible.
Live pageThe version of a page a visitor is actually shown during a test, whether the control or the test variant, decided by the traffic split.
Test periodThe fixed length of time a test runs before its result is read, agreed in advance and not extended or shortened partway through.
05Teaching
The rule

A one-variable test changes exactly one element of a page between the control and the test variant, and holds every other factor the same, so any difference in the result can be attributed to that one element

Changing the photo and the price at the same time, then seeing a higher conversion rate on the new version, leaves no way to know whether the photo, the price, or some combination of the two produced the result, because two explanations now compete for the same single number.

Several changes at onceNew photo, new price,new description togetherCannot tell which one workedOne-variable testNew photo only; price,description, layout fixedResult belongs to the photo alone
Changing one element and holding every other factor fixed is what lets a test's result be attributed to that element alone. Changing several things together mixes their effects into one number no one can separate afterward.
What you meet in real life

What counts as "one variable" and how traffic is split changes with the business model, the market and the number of visitors available

What can differThe shapes you meetWhy it matters to you
Business modelA Make to Order factory outlet like Delta Garments' own store tests a single style at a time, since stock of any one style is limited and does not repeat indefinitely. A Make to Stock retailer running a standing style can run a longer test, since the same style stays available throughout.The test period and traffic split should fit how long the product itself will realistically stay on sale.
MarketAn export brand's online store serving more than one country at once should split traffic within each country separately if buying behaviour differs by country, rather than pooling all countries into one combined result.Pooling different markets into one test can hide a result that only holds true in one of them.
Traffic volumeA page with heavy daily traffic can reach a trustworthy split within days. A lower-traffic outlet page, like Delta Garments' own second-quality store, needs a longer test period to collect enough visits in each variant to mean anything.Lower traffic does not make a one-variable test wrong; it makes the test period that produces a trustworthy result longer.
Number of variants testedTesting two versions splits traffic in two; testing three or four photo options at once splits the same traffic further, so each variant collects fewer visits in the same period.More variants tested at once need proportionally more total traffic, or a longer period, to keep each comparison reliable.
The case we follow

Delta Garments tests a new on-model product photo against its existing studio photo for the same Order A-style second-quality T-shirt

Delta Garments runs a small factory-outlet online store selling second-quality Order A-style T-shirts that do not meet Northline Apparel's export standard but are still sound enough to sell locally at a lower price. The digital team wants to know whether a new on-model product photo converts better than the existing plain studio photo.

Everything else on the page stays exactly the same between the two versions: the same price, the same product description, the same page layout, and the same two-week period, with incoming visitors split roughly 50/50 between the existing studio photo (the control) and the new on-model photo (the test variant).

The worked number

A 50/50 traffic split across a two-week period gives each variant a comparable number of visitors before any result is compared

Total weekly visits to the outlet page: 2,000
Traffic split: 50% control, 50% test variant
Control group (studio photo): 2,000 × 50% = 1,000 visitors per week
Test variant group (on-model photo): 2,000 × 50% = 1,000 visitors per week
Over the two-week test period: 2,000 visitors per variant in total

An even split, held for the full two weeks without adjusting the ratio partway through, is what lets each variant's own conversion rate later be compared on equal footing; changing the split mid-test would itself become a confounding factor.

Control (studio photo): 1,000 visitors/weekTest variant (on-model photo): 1,000 visitors/week
**An even split keeps each variant's own group the same size, so a later comparison is not distorted by one group simply having more visitors than the other.*
The method

Set up a fair one-variable test in five steps

  1. Choose exactly one element of the page to change, such as the product photo alone.
  2. Fix every other element, price, description and layout, identically between the control and the test variant.
  3. Split incoming traffic as evenly as possible between the two versions and hold that split fixed for the whole test.
  4. Set a test period in advance, long enough for the page's normal traffic to produce a trustworthy visitor count in each variant.
  5. Watch for any confounding factor, such as a stock shortage or an unrelated promotion, that could hit one variant's group and not the other during the test.
The trap

A common mistake is changing the photo and, midway through the test, also fixing an unrelated typo in the product description on only one variant

A team correcting a spelling mistake it happens to notice on the test variant's page, without making the same correction on the control page, has quietly introduced a second variable into what was meant to be a one-variable test, even though the change felt small and entirely unrelated to the photo actually being tested. The cost of this mistake is not the correction itself, which was harmless on its own; it is that the entire test's result becomes unusable, since no one can now honestly say whether the photo, the correction, or some mix of the two produced the outcome, wasting the full two weeks of traffic the test consumed and forcing the whole comparison to be run again from the start.

06In plain words

If you want to know whether a new photo sells better than an old one, change only the photo and leave everything else on the page exactly the same. Split your visitors evenly between the old version and the new one, and keep that split steady for a fixed period agreed before the test starts. Do not fix, tweak, or improve anything else on either version while the test is running, even something small and unrelated, because any second change ruins your ability to say the photo alone caused the result.

07Quick check
  • Change exactly one element between the control and the test variant; never two changes at once.
  • Split traffic as close to 50/50 as the platform allows, and hold that split for the whole test period.
  • Agree the test period in advance, typically one to four weeks depending on the page's own traffic volume.
  • Watch for an unrelated change, such as a stock issue or a promotion, hitting only one variant during the test.
  • Record the exact setup, what changed and what stayed fixed, before the test starts, not after reading the result.
08Workplace scenario

Delta Garments' team notices the test variant's photo also loads faster than the control's photo, on a slow mobile connection

Partway through the two-week test of the new on-model photo against the existing studio photo, a team member notices the new photo file is smaller in size and loads noticeably faster on a slow mobile connection, purely because of how it was exported, not because anyone intended a speed change.

  • The studio photo (control) file is 480 KB; the on-model photo (test variant) file is 140 KB.
  • Roughly a third of the outlet store's visitors browse on a slow mobile connection where load speed visibly affects whether a page finishes loading before the visitor leaves.
  • The test has one week remaining.

Should Delta Garments treat the test's final result as proof that the on-model photo itself converts better? Decide before opening the answer.

Show decision

No. The unintended difference in file size and load speed is a confounding factor; the test can no longer isolate the photo's own visual effect from its faster loading time.

1. A one-variable test requires every other factor to be held equal, and load speed, especially on slow mobile connections, is itself a factor that can change conversion independent of what the photo shows. 2. A third of visitors are on connections where this difference is large enough to matter, so the effect is not a trivial rounding error to ignore. 3. The honest response is to note the confound, re-export both images to a matching file size, and re-run the test, rather than reporting a result that mixes two causes as if it proved one.

09What it costs

Running a confounded test and trusting its result can lead a factory outlet to keep a losing choice for reasons that were never actually tested

Order A's T-shirt carries a shop price of USD 19.90 per piece, though Delta Garments' own second-quality outlet sells the same style discounted to roughly 60% of that, USD 11.94 per piece (docs/02 section 7 anchors the full-price figure). If a confounded test wrongly credited the on-model photo with a result that was really the faster load speed, and Delta Garments rolled the photo out without fixing the underlying speed gap on other pages:

USD 19.90 × 60% = USD 11.94 outlet price per piece
If 500 weekly visits convert 1 point worse than the confounded test suggested: 500 × 1% = 5 fewer sales weekly
5 × USD 11.94 = USD 59.70 per week understated in every forecast

A small weekly figure compounds silently across every week a wrong lesson keeps being applied, a far larger true cost than the one extra week a clean re-test would have taken.

10Working template

Digital analytics and testing worksheet: record each test's own setup

Use the T23-C02 Digital analytics and testing worksheet, "Test setup log" sheet. For each test, record the one variable changed, what was held fixed, the traffic split, the test period, and any confounding factor noticed while the test was running. Start with Delta Garments' example above, then add your own test.

[Download the Digital analytics and testing worksheet](../../templates/T23-C02-digital-analytics-and-testing-worksheet.xlsx)

Download the Digital analytics and testing worksheet (Excel)

11Check yourself

1. Why does changing the photo and the price at the same time make a test's result impossible to interpret cleanly?

2. Delta Garments' test variant photo happens to load faster than the control photo on slow connections, for reasons unrelated to the test. What should the team do?

3. Why should a test's traffic split and test period be fixed in advance, rather than adjusted once early results start coming in?

12Glossary
ENARFRTRMeaning
One-variable testاختبار متغيّر واحدTest à une seule variableTek değişkenli testA test in which exactly one element of a page changes between the control and the test variant, so any difference in result can be attributed to that element alone.
Test variantمتغيّر الاختبارVariante testéeTest varyantıOne of the two or more competing versions of a page being compared in a test.
Control conditionشرط الضبطCondition de contrôleKontrol koşuluKeeping every factor except the one variable being tested the same between the two versions, so the comparison isolates that single variable.
Confounding factorعامل مربكFacteur confondantKarıştırıcı etkenAny other change happening at the same time as a test that could also explain a change in the result.
Traffic splitتقسيم الزياراتRépartition du traficTrafik bölünmesiThe way incoming visitors are divided between the control version and the test variant, usually as close to equal as possible.
Live pageالصفحة المباشرةPage en directCanlı sayfaThe version of a page a visitor is actually shown during a test, whether the control or the test variant, decided by the traffic split.
Test periodفترة الاختبارPériode de testTest dönemiThe fixed length of time a test runs before its result is read, agreed in advance and not extended or shortened partway through.
13Next

Lesson 2.3: Calculating whether a test's own result is a real difference or ordinary noise

Next you will take a completed test's own two results and decide whether the gap between them is large enough to trust, or small enough to be ordinary noise. Back to the course map

14Ladder

RecognizeTell a genuine one-variable test apart from a test that quietly changed more than one thing.
ConnectSee how the traffic split and test period work together to give each variant a trustworthy result.
CompareJudge whether an unexpected difference noticed mid-test counts as a confounding factor.
DecideChoose whether a test's setup is clean enough to trust its result, or needs a re-run first.