Skip to content
IndexRequest a UIAboutContact

A/B Variant Metrics Compare

Two page variants with conversion bars, the lift, and an honest note when data is too small to call.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI IMAGE OR VIDEO TOOL
Clean dashboard card comparing two landing page variants side by side, labelled A Control and B Variant, each with a tiny wireframe thumbnail of a page with a coloured button, below each a horizontal conversion bar with the value 3.1 percent and 3.6 percent and visitor counts 4,820 and 4,790, a small badge between them reading plus 16 percent lift and a verdict line Leaning towards B, light theme, flat modern style. Negative: gradients, 3D, clutter, text errors, device frames. Reduced motion: static design.

About this pattern

Definition

An A/B comparison puts the control and the variant side by side with the same metric. The key number is the lift, but it only means something with enough visitors. Showing the sample size and a plain verdict, rather than a bare percentage, stops people declaring winners from noise.

When to use it

  • Show both variants at the same size with the same metric and the same scale.
  • Display conversion as a bar plus a number, and the visitor count beside it.
  • Show lift as a relative change from A to B.
  • Add a verdict: clear winner, leaning, or not enough data, based on a simple significance check.

What the controls do

  • Three example tests with different sample sizes.

Motion & timing

  • Bars grow over 400ms.
  • Reduced motion: no growth animation.

Tips & variations

  • Do not rely on colour alone to name the winner; also write it.
  • Avoid stopping a test early when the lead looks good.

Code of this live preview

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Test"><button data-p="0" aria-pressed="true">Large test</button><button data-p="1" aria-pressed="false">Small test</button><button data-p="2" aria-pressed="false">Flat result</button></div><div class="two"><div class="vr"><b>A · Control</b><i class="th a"><u></u></i><div class="bar"><span id="ba"></span></div><p id="ta"></p></div><div class="vr"><b>B · Variant</b><i class="th b"><u></u></i><div class="bar"><span id="bb"></span></div><p id="tb"></p></div></div><p class="vd" id="vd" role="status"></p></div>

Related patterns

Keyword Before & After

↗
Keyword Before & AfterBefore & After

Colour Correction Compare

↗
Colour Correction CompareBefore & After

Chart Series Palette Check

↗
Chart Series Palette CheckPalettes by Concept