Server-Side Single-Variable A/B Testing
Split traffic before load, isolate one change, and promote the proven winner
- Difficulty
- Moderate
- Time to result
- ~weeks to results
- Steps
- 6
- Confidence
- 97%
The method runs an A/B test by assigning each visitor to a variant on the server before the page loads. This avoids the artificial delay created when an overlay tool first loads the control and then replaces it with a variant. The team begins with a control, creates a variant that changes one meaningful element, selects a traffic split, and establishes a confidence threshold. Because both experiences load independently under comparable conditions, conversion differences are more likely to reflect the tested change rather than unequal performance. Once the threshold is reached, the winning experience can be promoted automatically or reviewed manually. The same process can be applied to individual components or complete pages.
Origin
Extracted from Ecommerce Coffee Break during Zach Rego's explanation of how Unstack implements server-side testing for ecommerce landing pages.
Core principles
- 01Split visitors before either variant loads
- 02Keep variant load times equivalent
- 03Change one meaningful element at a time
- 04Define the confidence threshold before interpreting results
- 05Measure the complete user experience, not just copy or design
How to run it
- 1
Choose the conversion question
Select a page with a clear objective, such as completing a purchase, joining a launch list, or clicking through to checkout. State the specific element or experience you believe could improve that outcome.
Pro tip Prioritize pages receiving substantial paid or organic traffic so the test can reach a useful sample sooner.
Watch out Do not begin with a vague goal such as making the page feel better.
- 2
Establish the control
Use the current page or default theme as the control experience. Confirm that its tracking and conversion event work before introducing a variant.
Pro tip Record the control's baseline conversion rate and page-load performance.
Watch out A broken or unstable control invalidates the comparison.
- 3
Create one focused variant
Duplicate the control and modify one meaningful element, such as the headline, image, offer, or page section. Keeping the change isolated makes the result interpretable.
Pro tip Write down the hypothesis connecting the change to the expected behavior.
Watch out Changing several major elements prevents you from knowing which one caused the result.
- 4
Split traffic before load
Assign visitors to the control or variant on the server before rendering the page. Ensure both variants receive comparable traffic and load under equivalent conditions.
Pro tip Use a 50/50 split when learning speed matters more than limiting exposure to the variant.
Watch out Client-side overlays can slow one experience and create an unfair test.
- 5
Set the decision threshold
Choose the required confidence level and traffic allocation before reviewing the result. Allow the test to run until it reaches that threshold or until a predetermined stopping rule applies.
Pro tip Use a demanding threshold such as 95 percent when traffic volume supports it.
Watch out Do not stop the test merely because one variant leads during an early fluctuation.
- 6
Promote and iterate
Promote the validated winner automatically or after manual review. Use the winning page as the new control for the next focused hypothesis.
Pro tip Preserve a record of the hypothesis, variants, sample, confidence, and outcome.
Watch out A winning result is contextual and may not transfer unchanged to another audience or traffic source.
In the wild
An apparel merchant sends vegan Facebook audiences to a cruelty-free fabric landing page. The control describes the fabric generally, while the variant changes only the headline to position it as a wool alternative for vegans. Visitors are split server-side, both pages load at comparable speeds, and purchases are measured until the confidence threshold is reached.
→ The merchant learns whether audience-specific positioning improves purchases without confusing the result through unequal page performance.
Common mistakes
Loading the variant over the control
A client-side tool may load the original page and then place the variant over it. The resulting delay can depress the variant's conversion rate independently of the content being tested.
Changing too many variables
Redesigning the headline, imagery, offer, and layout simultaneously may identify a winning page but does not reveal which change mattered.
Calling a winner too early
Selecting whichever variant is temporarily ahead before reaching the predetermined confidence level turns ordinary variation into a false conclusion.
Is it for you?
Best for
It is best for ecommerce teams with enough traffic to compare landing pages, product pages, messaging, or page components reliably.
Not ideal for
It is not ideal for very low-traffic stores that cannot generate a meaningful sample within a practical period.
From the transcript
“when someone's coming to your site we're picking and splitting the traffic before it loads so the load times are equal on the a and…”
“you modify one element we recommend one element at a time sometimes people do to smaller elements.”
“you said a confidence level by which you hit that confidence level so in 95 percent confidence level will automatically flip to whichever the winner…”
From the episode
Headless Commerce - The Evolution of Selling Online
Zach Rego