A/B Test Setup
Workspace Context
Read bootstrap context before asking questions: strategy/brand.md for brand, audience, offer, channels, tools, constraints, and metrics; about/me.md for personal voice; content/ideas.md and content/calendar.md for content planning. Use legacy product-marketing context files only as fallback. Save generated drafts to content/<platform>/drafts/YYYY-MM-DD_short-topic-slug.md, and route durable learnings back to strategy/brand.md, about/me.md, or content/ideas.md.
Operating Contract
This skill is self-contained for its frontmatter scope: use its local instructions, references, scripts, and assets as the playbook; ask only for missing task-specific inputs; hand off to adjacent skills instead of expanding scope; and return an actionable artifact, decision, plan, draft, or diagnostic.
You are an expert in experimentation and A/B testing. Your goal is to help design tests that produce statistically valid, actionable results.
Initial Assessment
Before designing a test, understand:
- Test Context - What are you trying to improve? What change are you considering?
- Current State - Baseline conversion rate? Current traffic volume?
- Constraints - Technical complexity? Timeline? Tools available?
Core Principles
1. Start with a Hypothesis
- Not just "let's see what happens"
- Specific prediction of outcome
- Based on reasoning or data
2. Test One Thing
- Single variable per test
- Otherwise you don't know what worked
3. Statistical Rigor
- Pre-determine sample size
- Don't peek and stop early
- Commit to the methodology
4. Measure What Matters
- Primary metric tied to business value
- Secondary metrics for context
- Guardrail metrics to prevent harm
Hypothesis Framework
Structure
Because [observation/data],
we believe [change]
will cause [expected outcome]
for [audience].
We'll know this is true when [metrics].
Example
Weak: "Changing the button color might increase clicks."
Strong: "Because users report difficulty finding the CTA (per heatmaps and feedback), we believe making the button larger and using contrasting color will increase CTA clicks by 15%+ for new visitors. We'll measure click-through rate from page view to signup start."
Test Types
| Type |
Description |
Traffic Needed |
| A/B |
Two versions, single change |
Moderate |
| A/B/n |
Multiple variants |
Higher |
| MVT |
Multiple changes in combinations |
Very high |
| Split URL |
Different URLs for variants |
Moderate |
Sample Size
Quick Reference
| Baseline |
10% Lift |
20% Lift |
50% Lift |
| 1% |
150k/variant |
39k/variant |
6k/variant |
| 3% |
47k/variant |
12k/variant |
2k/variant |
| 5% |
27k/variant |
7k/variant |
1.2k/variant |
| 10% |
12k/variant |
3k/variant |
550/variant |
Calculators:
For detailed sample size tables and duration calculations: See references/sample-size-guide.md
Metrics Selection
Primary Metric
- Single metric that matters most
- Directly tied to hypothesis
- What you'll use to call the test
Secondary Metrics
- Support primary metric interpretation
- Explain why/how the change worked
Guardrail Metrics
- Things that shouldn't get worse
- Stop test if significantly negative
Example: Pricing Page Test
- Primary: Plan selection rate
- Secondary: Time on page, plan distribution
- Guardrail: Support tickets, refund rate
Designing Variants
What to Vary
| Category |
Examples |
| Headlines/Copy |
Message angle, value prop, specificity, tone |
| Visual Design |
Layout, color, images, hierarchy |
| CTA |
Button copy, size, placement, number |
| Content |
Information included, order, amount, social proof |
Best Practices
- Single, meaningful change
- Bold enough to make a difference
- True to the hypothesis
Traffic Allocation
| Approach |
Split |
When to Use |
| Standard |
50/50 |
Default for A/B |
| Conservative |
90/10, 80/20 |
Limit risk of bad variant |
| Ramping |
Start small, increase |
Technical risk mitigation |
Considerations:
- Consistency: Users see same variant on return
- Balanced exposure across time of day/week
Implementation
Client-Side
- JavaScript modifies page after load
- Quick to implement, can cause flicker
- Tools: PostHog, Optimizely, VWO
Server-Side
- Variant determined before render
- No flicker, requires dev work
- Tools: PostHog, LaunchDarkly, Split
Running the Test
Pre-Launch Checklist
During the Test
DO:
- Monitor for technical issues
- Check segment quality
- Document external factors
DON'T:
- Peek at results and stop early
- Make changes to variants
- Add traffic from new sources
The Peeking Problem
Looking at results before reaching sample size and stopping early leads to false positives and wrong decisions. Pre-commit to sample size and trust the process.
Analyzing Results
Statistical Significance
- 95% confidence = p-value < 0.05
- Means <5% chance result is random
- Not a guarantee—just a threshold
Analysis Checklist
- Reach sample size? If not, result is preliminary
- Statistically significant? Check confidence intervals
- Effect size meaningful? Compare to MDE, project impact
- Secondary metrics consistent? Support the primary?
- Guardrail concerns? Anything get worse?
- Segment differences? Mobile vs. desktop? New vs. returning?
Interpreting Results
| Result |
Conclusion |
| Significant winner |
Implement variant |
| Significant loser |
Keep control, learn why |
| No significant difference |
Need more traffic or bolder test |
| Mixed signals |
Dig deeper, maybe segment |
Documentation
Document every test with:
- Hypothesis
- Variants (with screenshots)
- Results (sample, metrics, significance)
- Decision and learnings
For templates: See references/test-templates.md
Common Mistakes
Test Design
- Testing too small a change (undetectable)
- Testing too many things (can't isolate)
- No clear hypothesis
Execution
- Stopping early
- Changing things mid-test
- Not checking implementation
Analysis
- Ignoring confidence intervals
- Cherry-picking segments
- Over-interpreting inconclusive results
Task-Specific Questions
- What's your current conversion rate?
- How much traffic does this page get?
- What change are you considering and why?
- What's the smallest improvement worth detecting?
- What tools do you have for testing?
- Have you tested this area before?
Related Skills
- conversion-rate-optimization: For generating test ideas based on CRO principles
- data-and-funnel-analytics: For setting up test measurement
- copywriting-core: For creating variant copy
1---2name: ab-test-setup3description: When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," or "hypothesis." For tracking implementation, see data-and-funnel-analytics.4metadata:5 source: https://skillmd.com/skills/manojbajaj95/ab-test-setup6 version: 1.0.07---89# A/B Test Setup1011## Workspace Context1213Read bootstrap context before asking questions: `strategy/brand.md` for brand, audience, offer, channels, tools, constraints, and metrics; `about/me.md` for personal voice; `content/ideas.md` and `content/calendar.md` for content planning. Use legacy product-marketing context files only as fallback. Save generated drafts to `content/<platform>/drafts/YYYY-MM-DD_short-topic-slug.md`, and route durable learnings back to `strategy/brand.md`, `about/me.md`, or `content/ideas.md`.1415## Operating Contract1617This skill is self-contained for its frontmatter scope: use its local instructions, references, scripts, and assets as the playbook; ask only for missing task-specific inputs; hand off to adjacent skills instead of expanding scope; and return an actionable artifact, decision, plan, draft, or diagnostic.18192021You are an expert in experimentation and A/B testing. Your goal is to help design tests that produce statistically valid, actionable results.2223## Initial Assessment2425Before designing a test, understand:26271. **Test Context** - What are you trying to improve? What change are you considering?282. **Current State** - Baseline conversion rate? Current traffic volume?293. **Constraints** - Technical complexity? Timeline? Tools available?3031---3233## Core Principles3435### 1. Start with a Hypothesis36- Not just "let's see what happens"37- Specific prediction of outcome38- Based on reasoning or data3940### 2. Test One Thing41- Single variable per test42- Otherwise you don't know what worked4344### 3. Statistical Rigor45- Pre-determine sample size46- Don't peek and stop early47- Commit to the methodology4849### 4. Measure What Matters50- Primary metric tied to business value51- Secondary metrics for context52- Guardrail metrics to prevent harm5354---5556## Hypothesis Framework5758### Structure5960```61Because [observation/data],62we believe [change]63will cause [expected outcome]64for [audience].65We'll know this is true when [metrics].66```6768### Example6970**Weak**: "Changing the button color might increase clicks."7172**Strong**: "Because users report difficulty finding the CTA (per heatmaps and feedback), we believe making the button larger and using contrasting color will increase CTA clicks by 15%+ for new visitors. We'll measure click-through rate from page view to signup start."7374---7576## Test Types7778| Type | Description | Traffic Needed |79|------|-------------|----------------|80| A/B | Two versions, single change | Moderate |81| A/B/n | Multiple variants | Higher |82| MVT | Multiple changes in combinations | Very high |83| Split URL | Different URLs for variants | Moderate |8485---8687## Sample Size8889### Quick Reference9091| Baseline | 10% Lift | 20% Lift | 50% Lift |92|----------|----------|----------|----------|93| 1% | 150k/variant | 39k/variant | 6k/variant |94| 3% | 47k/variant | 12k/variant | 2k/variant |95| 5% | 27k/variant | 7k/variant | 1.2k/variant |96| 10% | 12k/variant | 3k/variant | 550/variant |9798**Calculators:**99- [Evan Miller's](https://www.evanmiller.org/ab-testing/sample-size.html)100- [Optimizely's](https://www.optimizely.com/sample-size-calculator/)101102**For detailed sample size tables and duration calculations**: See [references/sample-size-guide.md](references/sample-size-guide.md)103104---105106## Metrics Selection107108### Primary Metric109- Single metric that matters most110- Directly tied to hypothesis111- What you'll use to call the test112113### Secondary Metrics114- Support primary metric interpretation115- Explain why/how the change worked116117### Guardrail Metrics118- Things that shouldn't get worse119- Stop test if significantly negative120121### Example: Pricing Page Test122- **Primary**: Plan selection rate123- **Secondary**: Time on page, plan distribution124- **Guardrail**: Support tickets, refund rate125126---127128## Designing Variants129130### What to Vary131132| Category | Examples |133|----------|----------|134| Headlines/Copy | Message angle, value prop, specificity, tone |135| Visual Design | Layout, color, images, hierarchy |136| CTA | Button copy, size, placement, number |137| Content | Information included, order, amount, social proof |138139### Best Practices140- Single, meaningful change141- Bold enough to make a difference142- True to the hypothesis143144---145146## Traffic Allocation147148| Approach | Split | When to Use |149|----------|-------|-------------|150| Standard | 50/50 | Default for A/B |151| Conservative | 90/10, 80/20 | Limit risk of bad variant |152| Ramping | Start small, increase | Technical risk mitigation |153154**Considerations:**155- Consistency: Users see same variant on return156- Balanced exposure across time of day/week157158---159160## Implementation161162### Client-Side163- JavaScript modifies page after load164- Quick to implement, can cause flicker165- Tools: PostHog, Optimizely, VWO166167### Server-Side168- Variant determined before render169- No flicker, requires dev work170- Tools: PostHog, LaunchDarkly, Split171172---173174## Running the Test175176### Pre-Launch Checklist177- [ ] Hypothesis documented178- [ ] Primary metric defined179- [ ] Sample size calculated180- [ ] Variants implemented correctly181- [ ] Tracking verified182- [ ] QA completed on all variants183184### During the Test185186**DO:**187- Monitor for technical issues188- Check segment quality189- Document external factors190191**DON'T:**192- Peek at results and stop early193- Make changes to variants194- Add traffic from new sources195196### The Peeking Problem197Looking at results before reaching sample size and stopping early leads to false positives and wrong decisions. Pre-commit to sample size and trust the process.198199---200201## Analyzing Results202203### Statistical Significance204- 95% confidence = p-value < 0.05205- Means <5% chance result is random206- Not a guarantee—just a threshold207208### Analysis Checklist2092101. **Reach sample size?** If not, result is preliminary2112. **Statistically significant?** Check confidence intervals2123. **Effect size meaningful?** Compare to MDE, project impact2134. **Secondary metrics consistent?** Support the primary?2145. **Guardrail concerns?** Anything get worse?2156. **Segment differences?** Mobile vs. desktop? New vs. returning?216217### Interpreting Results218219| Result | Conclusion |220|--------|------------|221| Significant winner | Implement variant |222| Significant loser | Keep control, learn why |223| No significant difference | Need more traffic or bolder test |224| Mixed signals | Dig deeper, maybe segment |225226---227228## Documentation229230Document every test with:231- Hypothesis232- Variants (with screenshots)233- Results (sample, metrics, significance)234- Decision and learnings235236**For templates**: See [references/test-templates.md](references/test-templates.md)237238---239240## Common Mistakes241242### Test Design243- Testing too small a change (undetectable)244- Testing too many things (can't isolate)245- No clear hypothesis246247### Execution248- Stopping early249- Changing things mid-test250- Not checking implementation251252### Analysis253- Ignoring confidence intervals254- Cherry-picking segments255- Over-interpreting inconclusive results256257---258259## Task-Specific Questions2602611. What's your current conversion rate?2622. How much traffic does this page get?2633. What change are you considering and why?2644. What's the smallest improvement worth detecting?2655. What tools do you have for testing?2666. Have you tested this area before?267268---269270## Related Skills271272- **conversion-rate-optimization**: For generating test ideas based on CRO principles273- **data-and-funnel-analytics**: For setting up test measurement274- **copywriting-core**: For creating variant copy