A/B 테스트는 한 변수의 두 가지 버전을 비교해요. 다변량 테스트(MVT)는 여러 변수를 동시에 테스트해서, 어떤 버전이 이기는지뿐 아니라 어떤 변수 조합이 가장 좋은 결과를 내는지도 보여줘요. 딥 링크 캠페인에서는 CTA 문구, 랜딩 페이지 레이아웃, 도착 화면을 순서대로 세 번 나눠 테스트하지 않고 한 번에 함께 테스트한다는 뜻이에요.
A/B 테스트 기초는 딥 링크와 랜딩 페이지 A/B 테스트을 참고하고, 표본 크기 계획은 딥 링크를 위한 A/B 테스트 표본 크기 계산기.
테스트 이름, 상태, 유형, 변형 수를 보여주는 A/B 테스트 목록 페이지예요.
A/B 테스트 대 다변량 테스트
| 항목 | A/B 테스트 | 다변량 테스트 |
|---|---|---|
| 테스트 변수 | 1 | 2개 이상 동시 |
| 버전 | 2-4 | 수십 개 가능 (요인 설계) |
| 필요 트래픽 | 보통 | 높음 |
| 결과까지 걸리는 시간 | 몇 주 | 몇 주에서 몇 달 |
| 인사이트 | "B가 A를 이긴다" | "이 조합이 최적이다" |
| 상호작용 효과 | 감지되지 않음 | 감지됨 |
| 복잡도 | 낮음 | 중간에서 높음 |
MVT 사용 시기
다변량 테스트가 맞는 경우:
- 트래픽이 많음 (테스트 대상 화면 기준 일일 노출 10,000회 이상)
- 변수 간 상호작용 효과가 있을 것 같을 때 (예: 특정 헤드라인은 특정 CTA와 함께일 때만 효과가 있는 경우)
- 여러 요소를 한 번에 최적화하고 싶을 때 (A/B 테스트를 순서대로 여러 번 돌리는 대신)
- 테스트 대상 요소가 같은 페이지나 화면에 있을 때
A/B 테스트가 맞는 경우:
- 트래픽이 적음 (일일 노출 5,000회 미만)
- 단일 주요 변경을 테스트할 때 (새 디자인 vs. 기존 디자인)
- 결과가 빨리 필요할 때
MVT 작동 방식
완전 요인 설계
모든 변수 수준의 모든 조합을 테스트해요:
function generateFullFactorial(variables) {
// variables = { headline: ['A', 'B'], cta: ['X', 'Y', 'Z'], layout: ['short', 'long'] }
const keys = Object.keys(variables);
const combinations = [];
function combine(index, current) {
if (index === keys.length) {
combinations.push({ ...current });
return;
}
const key = keys[index];
for (const value of variables[key]) {
current[key] = value;
combine(index + 1, current);
}
}
combine(0, {});
return combinations;
}
// Example
const variants = generateFullFactorial({
headline: ['benefit', 'feature'],
cta: ['download', 'try_free', 'get_started'],
layout: ['short', 'long'],
});
console.log(variants.length); // 2 x 3 x 2 = 12 combinations
부분 요인 설계
완전 요인 설계에 조합이 너무 많이 필요하면 전략적으로 일부만 골라 테스트해요:
function generateFractionalFactorial(variables, fraction) {
const full = generateFullFactorial(variables);
// 직교 배열을 사용해 균형 잡힌 부분 집합을 선택
// 1/2 일부 실험: 조합의 절반만 테스트
// 주효과를 여전히 추정할 수 있도록 유지
const selected = selectOrthogonalSubset(full, fraction);
return {
combinations: selected,
fullSize: full.length,
fractionSize: selected.length,
canEstimate: '주효과 + 일부 상호작용',
cannotEstimate: '고차 상호작용',
};
}
// 2수준 요인 7개를 단 8번의 실행으로 테스트하는 다구치 L8 배열
const taguchiL8 = [
{ headline: 'A', cta: 'X', layout: 'short', image: 'yes', badge: 'yes', social: 'count', urgency: 'no' },
{ headline: 'A', cta: 'X', layout: 'short', image: 'no', badge: 'no', social: 'rating', urgency: 'yes' },
{ headline: 'A', cta: 'Y', layout: 'long', image: 'yes', badge: 'yes', social: 'rating', urgency: 'yes' },
{ headline: 'A', cta: 'Y', layout: 'long', image: 'no', badge: 'no', social: 'count', urgency: 'no' },
{ headline: 'B', cta: 'X', layout: 'long', image: 'yes', badge: 'no', social: 'count', urgency: 'yes' },
{ headline: 'B', cta: 'X', layout: 'long', image: 'no', badge: 'yes', social: 'rating', urgency: 'no' },
{ headline: 'B', cta: 'Y', layout: 'short', image: 'yes', badge: 'no', social: 'rating', urgency: 'no' },
{ headline: 'B', cta: 'Y', layout: 'short', image: 'no', badge: 'yes', social: 'count', urgency: 'yes' },
];
구현
MVT 설정
const mvtExperiment = {
id: 'landing_page_mvt_v1',
type: 'multivariate',
variables: {
headline: {
levels: [
{ id: 'benefit', value: '매주 2시간 절약하세요' },
{ id: 'social', value: '50만+ 팀이 함께해요' },
],
},
cta: {
levels: [
{ id: 'download', value: '무료 다운로드' },
{ id: 'try', value: '무료로 체험하기' },
{ id: 'start', value: '시작하기' },
],
},
socialProof: {
levels: [
{ id: 'rating', value: { type: 'stars', rating: 4.8 } },
{ id: 'count', value: { type: 'userCount', count: '50만+' } },
],
},
},
design: 'full_factorial', // 2 x 3 x 2 = 12개 조합
primaryMetric: 'app_install',
minSamplePerCombination: 500,
// 필요한 총 표본: 12 x 500 = 6,000
};
변형 할당
function assignMVTVariant(userId, experiment) {
const existing = storage.get(`mvt_${experiment.id}_${userId}`);
if (existing) return existing;
// Generate all combinations
const combinations = generateFullFactorial(
Object.fromEntries(
Object.entries(experiment.variables).map(([key, config]) => [
key,
config.levels.map(l => l.id),
])
)
);
// Deterministic assignment
const hash = djb2Hash(`${userId}-${experiment.id}`);
const index = hash % combinations.length;
const assignment = combinations[index];
// Resolve to actual values
const resolved = {};
for (const [variable, levelId] of Object.entries(assignment)) {
const level = experiment.variables[variable].levels.find(l => l.id === levelId);
resolved[variable] = level.value;
}
const variant = {
combinationIndex: index,
assignment,
resolved,
};
storage.set(`mvt_${experiment.id}_${userId}`, variant);
return variant;
}
페이지 렌더링
function LandingPage({ experiment }) {
const variant = useMVTVariant(experiment);
return (
<Page>
<Hero>
<Heading>{variant.resolved.headline}</Heading>
<CTAButton>{variant.resolved.cta}</CTAButton>
</Hero>
<SocialProof config={variant.resolved.socialProof} />
<TrackImpression
experimentId={experiment.id}
combination={variant.assignment}
/>
</Page>
);
}
MVT 결과 분석
주효과
변수의 주효과는 다른 변수들의 모든 수준에 걸친 평균 영향이에요:
async function calculateMainEffects(experimentId) {
const experiment = getExperiment(experimentId);
const results = await getAllCombinationResults(experimentId);
const mainEffects = {};
for (const [variable, config] of Object.entries(experiment.variables)) {
mainEffects[variable] = {};
for (const level of config.levels) {
// 이 변수가 이 수준인 모든 조합 가져오기
const matching = results.filter(r => r.assignment[variable] === level.id);
const avgConversion = matching.reduce((sum, r) => sum + r.conversionRate, 0) / matching.length;
mainEffects[variable][level.id] = {
avgConversion: (avgConversion * 100).toFixed(2) + '%',
sampleSize: matching.reduce((sum, r) => sum + r.impressions, 0),
};
}
}
return mainEffects;
}
// 출력 예시:
// {
// headline: { benefit: { avg: '4.2%' }, social: { avg: '3.8%' } },
// cta: { download: { avg: '4.5%' }, try: { avg: '3.9%' }, start: { avg: '3.6%' } },
// socialProof: { rating: { avg: '4.1%' }, count: { avg: '3.9%' } },
// }
상호작용 효과
변수끼리 서로 영향을 줄 때 상호작용 효과가 나타나요:
async function calculateInteractions(experimentId) {
const results = await getAllCombinationResults(experimentId);
const experiment = getExperiment(experimentId);
const variables = Object.keys(experiment.variables);
const interactions = [];
// Check all pairs of variables
for (let i = 0; i < variables.length; i++) {
for (let j = i + 1; j < variables.length; j++) {
const varA = variables[i];
const varB = variables[j];
// For each combination of levels
const levelsA = experiment.variables[varA].levels;
const levelsB = experiment.variables[varB].levels;
const grid = {};
for (const la of levelsA) {
grid[la.id] = {};
for (const lb of levelsB) {
const matching = results.filter(r =>
r.assignment[varA] === la.id && r.assignment[varB] === lb.id
);
grid[la.id][lb.id] = matching.reduce((sum, r) => sum + r.conversionRate, 0) / matching.length;
}
}
// Check if effect of varA differs by level of varB
const hasInteraction = checkInteraction(grid, levelsA, levelsB);
if (hasInteraction.significant) {
interactions.push({
variables: [varA, varB],
grid,
strength: hasInteraction.strength,
});
}
}
}
return interactions;
}
예: "Download Free"(CTA)는 "Save 2 Hours"(헤드라인)와 잘 맞는데, "Try It Free"는 "Join 500K+ Teams."와 잘 맞는다면 상호작용이 있는 거예요. MVT가 없으면 이걸 놓치게 돼요.
최적 조합 찾기
async function findWinner(experimentId) {
const results = await getAllCombinationResults(experimentId);
// 전환율 기준으로 정렬
const sorted = results.sort((a, b) => b.conversionRate - a.conversionRate);
// 최상위 조합이 나머지보다 유의미하게 나은지 확인
const best = sorted[0];
const secondBest = sorted[1];
const significance = zTest(
secondBest.conversions, secondBest.impressions,
best.conversions, best.impressions
);
return {
winner: best.assignment,
conversionRate: (best.conversionRate * 100).toFixed(2) + '%',
lift: ((best.conversionRate - secondBest.conversionRate) / secondBest.conversionRate * 100).toFixed(1) + '%',
vsSecondBest: significance,
allResults: sorted.map(r => ({
combination: r.assignment,
rate: (r.conversionRate * 100).toFixed(2) + '%',
impressions: r.impressions,
})),
};
}
필요 트래픽
완전 요인 설계
function mvtTrafficRequirement(variables, baselineRate, mde, perCombinationSample = 500) {
const numCombinations = Object.values(variables).reduce(
(product, levels) => product * levels.length,
1
);
const totalRequired = numCombinations * perCombinationSample;
return {
combinations: numCombinations,
perCombination: perCombinationSample,
totalRequired,
note: `총 ${totalRequired.toLocaleString()}회 노출이 필요해요`,
};
}
// 2 x 3 x 2 = 12개 조합 x 조합당 500 = 총 6,000
// 하루 1,000이면 6일 (주간 패턴을 보려면 최소 14일 필요)
빠른 참조
| 변수 | 변수당 레벨 | 조합 | 최소 트래픽 (조합당 500) |
|---|---|---|---|
| 변수 2개 | 각 2개 | 4 | 2,000 |
| 변수 2개 | 각 3개 | 9 | 4,500 |
| 변수 3개 | 각 2개 | 8 | 4,000 |
| 변수 3개 | 각 3개 | 27 | 13,500 |
| 변수 4개 | 각 2개 | 16 | 8,000 |
| 변수 4개 | 각 3개 | 81 | 40,500 |
변수가 3개를 넘고 각 레벨이 3개라면, 필요한 트래픽을 줄이기 위해 일부 요인 설계(fractional factorial)를 고려해 보세요.
딥 링크 MVT 시나리오
시나리오 1: 랜딩 페이지 최적화
폴백 랜딩 페이지에서 헤드라인, CTA, 사회적 증거를 테스트해요:
const landingPageMVT = {
id: 'landing_mvt_v1',
variables: {
headline: {
levels: [
{ id: 'benefit', value: '매주 2시간 절약' },
{ id: 'social', value: '50만+ 팀이 사용 중' },
],
},
cta: {
levels: [
{ id: 'download', value: '무료로 다운로드' },
{ id: 'try', value: '무료로 체험하기' },
],
},
proof: {
levels: [
{ id: 'stars', value: 'App Store 평점 4.8' },
{ id: 'users', value: '50만+ 팀이 사용 중' },
],
},
},
// 2 x 2 x 2 = 8개 조합, 관리 가능한 수준
};
시나리오 2: 스마트 배너 설정
배너 문구, 위치, 노출 타이밍을 테스트해요:
const bannerMVT = {
id: 'banner_mvt_v1',
variables: {
copy: {
levels: [
{ id: 'benefit', value: '앱에서 더 나은 경험' },
{ id: 'action', value: '앱에서 계속하기' },
],
},
position: {
levels: [
{ id: 'top', value: 'top' },
{ id: 'bottom', value: 'bottom' },
],
},
timing: {
levels: [
{ id: 'immediate', value: 0 },
{ id: 'delayed', value: 3000 },
],
},
},
// 2 x 2 x 2 = 8개 조합
};
시나리오 3: 이메일 캠페인 요소
이메일 제목, CTA, 링크 도착지를 테스트해요:
const emailMVT = {
id: 'email_mvt_v1',
variables: {
subject: {
levels: [
{ id: 'direct', value: '주문이 준비됐어요' },
{ id: 'app', value: '주문이 준비됐어요 - 앱에서 추적하세요' },
],
},
cta: {
levels: [
{ id: 'generic', value: '주문 보기' },
{ id: 'specific', value: '배송 추적' },
],
},
destination: {
levels: [
{ id: 'order_page', value: '/orders/:id' },
{ id: 'tracking', value: '/orders/:id/tracking' },
],
},
},
// 2 x 2 x 2 = 8개 조합
};
권장 사항
- 변수는 2~3개로 제한: 변수가 늘어날수록 조합과 필요한 트래픽이 기하급수적으로 늘어나요.
- 가능하면 변수당 레벨은 2개로: 레벨을 2개에서 3개로 늘리면 변수당 조합 수가 1.5배가 돼요.
- 최소 14일 동안 실행: 주간 패턴이 모든 조합에 영향을 줘요.
- 상호작용 확인하기: 순차 A/B 테스트 대비 MVT의 핵심 가치는 상호작용을 찾아내는 데 있어요. 이 분석을 건너뛰지 마세요.
- A/B로 시작하고 MVT로 발전: 먼저 A/B 테스트로 어떤 변수가 중요한지 찾은 다음, MVT로 최적 조합을 찾으세요.
- 변수가 많은 테스트에는 일부 요인 설계 고려: 모든 조합을 다 테스트할 필요는 없어요.
A/B 테스트 기능은 Tolinku A/B 테스트. 테스트 설정 방법은 다음 문서를 참고하세요. A/B 테스트 문서.
딥 링킹 팁을 메일로 받아 보세요
일주일에 한 번만 보내요. 스팸은 없어요.