Designing a Conversion Experiment for a Product Page Redesign
Statistics & ExperimentsModel answerLast updated
Plan a rigorous experiment to test whether a redesigned product page increases user conversions, covering metrics, sample sizing, bias mitigation, and analysis.
Problem Context
Your team has built a redesigned product page that changes how images, reviews, and the purchase button are arranged. Leadership wants to know whether this redesign improves business outcomes before rolling it out to all users.
Your Task
Design a complete experiment to measure the impact of this redesign. Your answer should cover:
- What you're testing: Define a clear hypothesis and choose appropriate success metrics and guardrails
- Who gets tested: Specify the user population, exclusions, and how users are assigned to variants
- How much data you need: Calculate required sample size based on realistic assumptions
- How long to run it: Determine test duration accounting for user behavior patterns
- What could go wrong: Identify validity threats and how you'll control for them
- How you'll analyze results: Describe the statistical approach and decision framework
Think through the practical details that would matter in a real experiment. Make reasonable assumptions where needed, but state them clearly.
Hints
Hint 1
Start with a single primary metric that directly reflects the business goal—then add guardrails to catch unintended harm
Hint 2
Choose your randomization unit carefully: it should match how users actually experience the treatment
Hint 3
Run long enough to capture weekly patterns and let novelty effects stabilize, not just until you hit sample size
Hint 4
Pre-commit to your analysis plan and decision criteria before seeing any data to avoid p-hacking
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer
1. Hypothesis and Metrics
Primary hypothesis: The redesigned product page changes the rate at which exposed users complete a purchase (two-tailed test, since we want to detect both improvements and degradations).
Success metric: Per-user purchase conversion rate—the proportion of users who view the product page and complete at least one purchase within 7 days of first exposure.
Why this metric:
- Aligns directly with business value
- Unit of analysis matches unit of randomization (user-level)
- Clear attribution window handles delayed conversions
Secondary diagnostics:
- Click-through rate on the purchase button
- Add-to-cart rate
- Time spent on page
- Number of product images viewed
These help explain why conversion changed.
Guardrail metrics:
- Page load time (median and 95th percentile)
- Client-side error rate
- Revenue per user (conversion could increase while order value drops)
- Return/refund rate within 30 days
2. Population and Eligibility
In scope: Users who land on a product page during the experiment window on desktop web and mobile web.
Exclusions:
- Bot traffic and automated scrapers
- Internal employee accounts
- Users already enrolled in conflicting experiments affecting the same page elements
- Users in regions where the redesign won't launch (if applicable)
Critical detail: Only include users who actually trigger exposure—when the product page renders. Users who never see the page should not be counted, as they dilute treatment effects.
3. Randomization Strategy
Unit: Individual user, identified by logged-in account ID or stable first-party cookie.
Why not sessions? If the same person sees both versions across sessions, we've contaminated the comparison and violated the independence assumption.
Mechanism: Deterministic hash function on (user_id + experiment_salt) mapped to treatment buckets. This ensures:
- Stable assignment across sessions
- No dependency on other experiments
- Reproducible results
Allocation: 50/50 split for maximum statistical power. Consider ramping (1% → 10% → 50%) to catch implementation bugs early, but analyze only the full-traffic period.
4. Sample Size Calculation
Assumptions:
- Baseline conversion rate: p₀ = 4%
- Minimum detectable effect: 10% relative change (0.4 percentage points absolute)
- Significance level: α = 0.05 (two-tailed)
- Statistical power: 1 - β = 0.80
Formula for two proportions:
n = (Z₁₋α/₂ + Z₁₋β)² × 2p₀(1-p₀) / δ²
n = (1.96 + 0.84)² × 2(0.04)(0.96) / (0.004)²
n ≈ 7.84 × 0.0768 / 0.000016
n ≈ 37,600 per arm
Total needed: ~75,000 users across both variants.
The MDE should reflect the smallest effect size that justifies the engineering cost of rollout. Using variance reduction techniques (like CUPED with pre-period behavior) can reduce sample requirements by 30–40%.
5. Test Duration
Minimum calendar time: 14 days (two full weeks), even if sample size is reached earlier.
Rationale:
- Captures full weekly purchase cycles (weekday vs. weekend behavior differs)
- Allows novelty effects to decay—existing users might initially click more just because something changed
- Accommodates users who browse multiple times before purchasing
Traffic calculation: If 10,000 eligible users/day × 14 days = 140,000 users, well above the 75k requirement.
Timing constraints:
- Avoid major sale events or product launches that drastically change traffic composition
- If overlap is unavoidable, ensure the event period is fully contained so both arms are equally affected
6. Validity Threats and Controls
| Threat | Mitigation |
|---|---|
| Sample Ratio Mismatch (SRM) | Run daily chi-square test on arm assignment counts. If p < 0.001, halt and investigate logging/assignment bugs before examining outcomes. |
| Instrumentation failure | Validate equal event logging rates across arms using neutral events (page views, clicks on unchanged elements). |
| Peeking bias | Lock analysis to a pre-specified end date. No intermediate significance tests unless using sequential methods with alpha spending. |
| Novelty/primacy effects | Segment by new vs. returning users. Plot daily treatment effect to see if it stabilizes after initial exposure. |
| Performance confounding | Monitor page load times. If the redesign loads slower, you're testing speed and layout together. |
| Cross-contamination | Use experiment management tools to ensure mutually exclusive bucketing for tests on the same surface. |
| Outliers in revenue | Winsorize revenue metrics at the 99.5th percentile to prevent a few large orders from dominating results. |
7. Analysis Plan (Pre-Registered)
Step 1: Validity checks (run before looking at outcomes)
- SRM test passes
- Covariate balance: similar distributions of device type, geography, user tenure across arms
- No guardrail violations (load time, errors)
Step 2: Primary analysis
- Two-proportion Z-test for conversion rate difference
- Report absolute difference, relative lift, and 95% confidence interval
- Use CUPED (Controlled-experiment Using Pre-Experiment Data) with each user's historical purchase rate as a covariate to reduce variance
Step 3: Secondary and guardrail review
- Check directional consistency: did intermediate metrics (button clicks, add-to-cart) move in expected ways?
- Verify revenue per user didn't drop despite conversion gains
Step 4: Subgroup exploration
- Pre-specify segments: mobile vs. desktop, new vs. returning users, top product categories
- Apply multiple testing correction (Benjamini-Hochberg) since these are exploratory
- Significant subgroup effects are hypotheses for future tests, not immediate launch decisions
8. Decision Framework
Ship if:
- Primary metric shows statistically significant improvement (p < 0.05)
- Effect size meets or exceeds the MDE threshold
- No guardrail violations
- Effect is consistent across key segments (no major harm to any group)
Don't ship if:
- Flat or negative primary result
- Significant increase in load time or errors
- Conversion increases but revenue per user drops substantially
Iterate if:
- Directional improvement that's not statistically significant—consider a redesigned version or longer test
- Strong performance in one segment only—build a targeted experience
Common Mistakes to Avoid
-
Choosing the wrong randomization unit: Session-level randomization when users see the page multiple times creates correlated observations.
-
Stopping early when results look good: This inflates false positive rates. Pre-commit to duration.
-
Ignoring ratio metrics complexity: Revenue-per-session requires delta method or bootstrapping since analysis unit ≠ randomization unit.
-
Post-hoc segmentation without correction: Finding one significant subgroup after twenty comparisons is likely noise.
-
Forgetting about delayed conversions: Users may view today and purchase in 3 days—analysis window must account for this.
The key to a strong experiment is making methodological choices explicit, quantifying assumptions, and building in safeguards against the biases that silently invalidate results in production systems.