Logo: Ab Test Setup Global

Ab Test Setup Global

Communautéit
huytran1120
ab-test-setup-global

Use when the user wants a VALID experiment instead of a guess — hypothesis, one variable, sample size and runtime math, statistical significance, primary versus secondary metrics, multi-arm designs, and a results template, across Optimizely, VWO, and native Meta and Google tests. Trigger on 'A/B test', 'split test', 'how long should I run the test', 'is this result significant', 'test two versions', 'which creative is actually better'. Also use when a winner was declared after two days on tiny numbers. Not for — scaling the proven winner, see `scaling-ads-global`; analyzing data already collected, see `data-analysis-global`; auditing the account, see `ads-audit-global`.

Iwwersiicht

Editeurhuytran1120
Repositoryvie-agentic-skills
Skill-Nummab-test-setup-global
Stären
81
Forks
26
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    huytran1120 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Ab Test Setup Global an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/huytran1120/vie-agentic-skills/tree/main/skills/ab-test-setup-global
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huytran1120/vie-agentic-skills.git /tmp/vie-agentic-skills
mkdir -p .claude/skills
cp -r /tmp/vie-agentic-skills/skills/ab-test-setup-global .claude/skills/ab-test-setup-global
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Ab Test Setup Global an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Ab Test Setup Global automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Ab Test Setup Global net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

A/B Test Setup (Global)

Run experiments that produce decisions, not noise. Most "A/B tests" in marketing are underpowered, peeked-at, and badly hypothesized — meaning the team learns nothing and ships the louder variant.


For Newbies

A valid A/B test answers one question: "Did this change cause a real improvement, or am I seeing noise?"

To answer it credibly you need four things:

  1. A specific hypothesis with a numeric prediction
  2. One variable changed (everything else identical)
  3. Enough sample to detect the effect you care about
  4. Statistical significance before you call a winner (typically p < 0.05)

If any one of these is missing, you don't have an A/B test — you have a coin flip with extra steps.

Common newbie mistake: running a test for 3 days, seeing variant B 40% higher, declaring victory, and shipping. Three days is too short to absorb day-of-week effects, and small samples produce wild swings. Variant B may revert (or reverse) by day 14.


Step 0 — Read Context

Read .agents/product-marketing-context.md if it exists. Audience size, average traffic, and current conversion rate determine whether a test is even feasible.


Step 1 — Information Gathering

Ask up to 4 questions:

  1. What are you testing? (Ad headline / Landing page section / Email subject / Pricing display / CTA button / Creative video)
  2. Primary metric? (CTR / Conversion rate / CPM / CPA / Revenue / Open rate / Reply rate)
  3. Daily traffic to the test surface? (Needed for sample size and duration)
  4. Goal of the test? (Lift X% on primary metric / Pick a winner among N candidates / Validate a strategic hypothesis)

The 7 Principles of a Valid A/B Test

1. Test exactly one variable

The cardinal rule. Change two things at once and you cannot attribute the result.

  • Bad: "I changed the headline, the hero image, and the CTA color." → You learn nothing about which element drove the lift.
  • Good: Change only the headline. Image, CTA, layout, traffic source, and audience targeting are identical.

If you must test multiple changes, use a multivariate test (MVT) — but those need much more traffic (often 4×–8× a single A/B).

2. Hypothesize with a number

Format: "If we [change X], [metric Y] will increase by [Z%] because [reason]."

  • Good: "If we change the CTA from 'Sign up' to 'Get my free demo,' conversion rate will increase by 15% because action-specific language reduces ambiguity."
  • Bad: "The new copy will be better." (No metric, no number, no causal reasoning — un-testable.)

The "because" matters: if your hypothesis is wrong but the reasoning was sound, you've still learned something generalizable.

3. Sufficient sample size

Don't stop early. Statistical tests need adequate data to distinguish signal from noise.

  • Minimum rule of thumb: 100 conversions per variant (not 100 visitors)
  • Better: Calculate sample size up front based on baseline conversion rate and minimum detectable effect (formula below)

4. Sufficient duration

Run for whole weeks, not 3 days, not 10 days. Different weekdays produce different audience behavior — Monday B2B traffic is not Saturday DTC traffic.

  • Minimum: 7 days
  • Recommended: 14 days
  • Watch for: holidays, paydays, monthly billing cycles, ad spend ramp-ups

5. Don't peek

Looking at results every hour and stopping when "B looks good" is the most common error in marketing experimentation. Early peeks combined with early stops dramatically inflate false positive rates.

  • Define the end date in advance. Honor it.
  • If you must monitor, use sequential testing methods designed for it (Bayesian frameworks like Optimizely's Stats Engine, or platforms with built-in sequential controls).

6. Statistical significance: p < 0.05

Most marketing teams use 95% confidence (p-value < 0.05) as the bar.

  • p-value < 0.05 → less than 5% chance the observed difference is random
  • p-value 0.05–0.10 → suggestive but inconclusive — extend the test
  • p-value > 0.10 → no evidence of an effect — keep control or test something else

For high-stakes tests (pricing, branding) consider 99% confidence (p < 0.01).

7. Document everything

Write down:

  • Hypothesis (with number)
  • Start date / end date
  • Sample size achieved
  • Primary metric, secondary metrics
  • Result + p-value
  • Decision + reasoning
  • What you'd test next

A documented test history prevents your team from re-testing things that already failed and from forgetting why you made past decisions.


Sample Size Calculation

Quick formula

Sample size per variant ≈ 16 × p × (1 − p) / MDE²

where:
  p   = baseline conversion rate (e.g. 0.03 = 3%)
  MDE = minimum detectable effect, in absolute terms
        (e.g. 0.006 = lift from 3% to 3.6%)

This produces sample size for 80% power, 95% confidence, 50/50 split — sensible defaults for most marketing tests.

Worked example A — landing page CRO

Current conversion rate is 3%. You want to detect a 20% relative lift (from 3% to 3.6%).

  • p = 0.03
  • MDE (absolute) = 0.20 × 0.03 = 0.006
  • Sample size per variant = 16 × 0.03 × 0.97 / 0.006² = 12,933 visitors
  • Total: ~25,866 visitors. At 500 visitors/day → ~52 days.

That's slow. Either run it (if the change matters), test something with a bigger expected lift, or get more traffic on the test surface.

Worked example B — email subject line

Current open rate is 25%. You want to detect a 10% relative lift (to 27.5%).

  • p = 0.25
  • MDE = 0.025
  • Sample size per variant = 16 × 0.25 × 0.75 / 0.025² = 4,800 sends
  • Total: 9,600 sends per email — usually achievable in one campaign.

Feasibility quick-reference

Daily volumeConv. rateDays neededTest feasibility
< 100any2+ monthsSkip — focus on traffic first
100–5002–5%3–6 weeksYes, but be patient
500–2K2–5%2–3 weeksYes — ideal range
2K–10K2–5%1–2 weeksYes — rapid iteration
10K+anydaysYes — multi-arm tests possible

If volume is below 100/day, A/B testing is statistically wasted — concentrate on increasing traffic before running experiments.


Multi-Arm and Multivariate

Beyond simple A vs B:

  • Multi-arm (A/B/C/D): test 3+ variants at once. Sample size grows roughly linearly with arms.
  • Multivariate (MVT): test multiple elements simultaneously (headline × image × CTA = 8 combinations). Sample size grows multiplicatively. Only viable with very high traffic.
  • Sequential / Bayesian (Thompson Sampling): dynamically allocate more traffic to better-performing variants. Optimizely, Google Optimize successors, and Meta's auto-optimization use this.

For most teams: stick to A/B until traffic exceeds ~10K/day on the test surface.


What to Test (in priority order)

1. Headline — highest impact

Roughly 80% of visitors read the headline; 20% read the body. Optimizing the headline gives the largest expected lift per unit of effort.

Variations to try:

  • Question vs statement
  • Specific number vs generic ("3,247 founders trust us" vs "Trusted by founders")
  • Outcome-focused vs feature-focused
  • Short (5–7 words) vs long (12–15 words)

2. CTA button

Easy to change, often 5–25% lift potential.

Variations:

  • Text: "Sign up" vs "Get free demo" vs "Start free trial" vs "See pricing"
  • Color: brand primary vs contrast (high-contrast usually wins)
  • Size: standard vs large
  • Position: above-the-fold vs sticky vs end-of-page

3. Hero visual

  • Product shot vs lifestyle shot
  • Static image vs video
  • Founder face vs anonymous model
  • Demo screencast vs testimonial clip

4. Pricing display

  • Monthly vs annual primary
  • Strikethrough discount vs clean price
  • Number formatting ($299 vs $299.00 vs $299/mo)
  • Anchor pricing (3-tier with middle highlighted)

5. Social proof placement

  • Numbers vs detailed reviews
  • Logo wall vs customer count
  • Above CTA vs below CTA
  • Video testimonial vs text testimonial

6. Form fields

  • 3 vs 5 vs 7 fields (fewer fields almost always wins on conversion, but lead quality may drop)
  • Label position (above vs left)
  • Single-step vs multi-step
  • Optional fields marked vs required marked

7. Email subject lines

  • Question vs benefit
  • Personalization vs generic
  • Emoji vs no emoji (varies by region/audience)
  • Length (under 40 chars vs 60+)

8. Ad creative

  • First 3-second hook variants
  • UGC style vs polished brand
  • Format: single image vs carousel vs video vs Reels-native
  • Headline on creative vs in copy field

Tool Recommendations

ToolBest forCost
Meta Ads built-in A/B testCreative, audience, placement on MetaFree
TikTok Ads Split TestTikTok ad creative and audience testsFree
Google Ads ExperimentsGoogle Ads campaigns and ad copyFree
Optimizely WebEnterprise web experimentation, sequential testing$$$ enterprise
VWOMid-market web A/B + heatmaps$199+/mo
Convert.comPrivacy-first web testing$99+/mo
PostHogProduct feature flags + experiments + analyticsFree tier, generous
GrowthBookOpen-source A/B testing platformFree / hosted plans
StatsigProduct experimentation with feature flagsFree tier
AB TastyWeb experimentation + personalization$$$
Unbounce / InstapageBuilt-in A/B for landing pages$90+/mo
Custom (split URL)Two pages, 50/50 redirect, GA4/Pixel attributionFree

Note: Google Optimize was sunset in September 2023. Migration paths: GA4 + a third-party platform (Optimizely, VWO, Convert) or PostHog/GrowthBook for product-led teams.


Setup Without Dedicated Tools

1. Build two versions of the page: /landing-a and /landing-b
2. Split traffic 50/50:
   - Meta Ads: 2 ad sets, identical audience, different destination URLs
   - Google Ads: 2 ads in the same ad group, identical targeting, different URLs
   - Email: list-split feature in your ESP
3. Track conversions per variant:
   - Meta Pixel custom event with parameter: page_version = "A" / "B"
   - GA4 event with custom dimension
   - PostHog feature flag exposure event
4. Run for the planned duration. Don't peek mid-test.
5. Export raw counts. Run significance test (calculator below).

Result Analysis

Statistical significance

Use a calculator. Recommended:

  • Evan Miller's calculator — evanmiller.org/ab-testing/chi-squared.html
  • AB Testguide — abtestguide.com/calc/
  • Optimizely's calculator — built into platform
  • Survey Monkey calculator — for sample size pre-test

Inputs:

  • Variant A: visitors + conversions
  • Variant B: visitors + conversions

Outputs:

  • p-value (need < 0.05 for 95% confidence)
  • Confidence interval on the lift
  • Lift % (relative or absolute)

Decision matrix

p-valueLift sizeDecision
< 0.05> 5%B wins — implement and document
< 0.05< 5%Significant but small — weigh implementation cost
0.05–0.10> 10%Borderline — extend test if feasible
> 0.10anyNo evidence — keep A or design a stronger test

Common Pitfalls

  1. Peeking and stopping early. Most common cause of false positives. If the platform shows "B is winning" on day 3, the platform is misleading you (unless it's specifically designed for sequential testing).
  2. Uneven splits. If split is 30/70 instead of intended 50/50, your delivery infrastructure has a bug. Investigate before trusting results.
  3. Seasonality. Tests run only on weekdays vs weekends produce different results. Always run for whole weeks.
  4. Novelty effect. New variants attract attention for the first 2–3 days, then performance regresses. Long enough tests absorb this.
  5. Sample ratio mismatch (SRM). Even with 50/50 intent, if visitor counts diverge significantly (e.g. 8,400 vs 11,600), there's likely a tracking or assignment bug. Tools like PostHog and Optimizely flag this automatically.
  6. Mixing traffic sources mid-test. Don't add a new ad campaign halfway through — it changes audience composition.
  7. Multiple comparison problem. Running 20 simultaneous tests means ~1 will look "significant" by chance alone. Adjust thresholds (Bonferroni correction) or pre-register hypotheses.

Output Template

markdown
# A/B Test: [test name]
Created: [YYYY-MM-DD]
Owner: [name]

## 1. Hypothesis
"If we [change X], [metric Y] will increase by [Z%] because [reason]."

## 2. Variants
- Variant A (Control): [current state description]
- Variant B (Challenger): [changed state description]
- Single change: [the one element that differs]

## 3. Metrics
- Primary: [e.g. conversion rate]
- Secondary (guardrails): [e.g. bounce rate, time on page, AOV]

## 4. Sample size & duration
- Baseline (p): [%]
- Minimum detectable effect (MDE): [%]
- Sample needed per variant: [N]
- Daily traffic to test surface: [N]
- Estimated days to complete: [N]

## 5. Setup
- Tool: [Optimizely / VWO / PostHog / Meta built-in / custom]
- Variant A URL or asset: [...]
- Variant B URL or asset: [...]
- Tracking events: [list]
- Split ratio: 50/50

## 6. Timeline
- Start: [date]
- End (planned): [date]
- Review meeting: [date]

## 7. Results (filled in after test ends)
| Variant | Visitors | Conversions | Rate | Lift vs A |
|---------|----------|-------------|------|-----------|
| A | | | | — |
| B | | | | +X% |

p-value: [x]
95% CI on lift: [lower%, upper%]
Significant (p < 0.05): [Yes / No]

## 8. Decision
[Ship B / Keep A / Inconclusive — extend or redesign]

## 9. Action
[Implement variant B globally / Roll back / Schedule next iteration]

## 10. Lessons
[What this teaches generalizable for future tests]

Quality Checklist

  • Exactly one variable changed
  • Hypothesis is specific and includes a numeric prediction
  • Sample size calculated up front (minimum 100 conv/variant)
  • Duration is at least 1 full week, ideally 2 weeks
  • No peeking — end date defined and honored
  • p-value calculated before declaring a winner (target p < 0.05)
  • Result documented (winner or not — both are learning)
  • Secondary metrics checked (no guardrail violations)
  • Sample ratio verified (no SRM red flags)
  • Next test identified based on what this one taught

Hướng dẫn sử dụng trong VAS / Usage in VAS

  • Cài đặt vào agent yêu thích bằng VAS CLI: ./vas install ab-test-setup-global --target <agent> --mode link
  • Chế độ copy độc lập vào dự án: ./vas install ab-test-setup-global --target <agent> --mode copy
  • Hoặc sử dụng tính năng Copy Agent Prompt trực tiếp từ website Vie Agentic Skills mà không cần clone repository.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Ab Test Setup Global?

Use when the user wants a VALID experiment instead of a guess — hypothesis, one variable, sample size and runtime math, statistical significance, primary versus secondary metrics, multi-arm designs, and a results template, across Optimizely, VWO, and native Meta and Google tests. Trigger on 'A/B test', 'split test', 'how long should I run the test', 'is this result significant', 'test two versions', 'which creative is actually better'. Also use when a winner was declared after two days on tiny numbers. Not for — scaling the proven winner, see `scaling-ads-global`; analyzing data already col...

Firwat Ab Test Setup Global op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Ab Test Setup Global besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Ab Test Setup Global an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/huytran1120/vie-agentic-skills/tree/main/skills/ab-test-setup-global an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Ab Test Setup Global benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Ab Test Setup Global benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Ab Test Setup Global domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Ab Test Setup Global gratis?

Jo. huytran1120 huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇