Sample ratio mismatch is a larger-than-expected difference between an A/B test's planned allocation and the observed count of eligible units in each group. Compare unique assignments and exposures before reading lift. If assignments are balanced but exposures are uneven, investigate what happens between assignment and event collection.

Check the allocation and counting unit

Use the split actually configured for the period, whether 50/50 or 70/30. Use unique visitor counts if the test assigns visitors. A shopper who reloads three times still counts as one assigned visitor. If allocation changed during the test, evaluate each allocation period separately or account for its expected counts in the analysis.

Find where the groups diverge

Imagine a 50/50 test with 5,020 assignments to A and 4,980 to B. Your exposure report records 4,800 people in A and 4,110 in B. The exposure gap warrants investigation even though assignment looks close to plan. Check whether the B theme or redirect loads correctly and whether a B exposure event is recorded on the same shopping paths as A.

Reproduce the gap in the affected shop context

Compare the first date the imbalance appeared with theme releases and eligibility changes. Check market, device, and landing-page groups to locate the failure. Then replay the same route for both variants with an in-stock product. Verify that the URL, theme, and group persist on reload and that the tracking event arrives once.

Validate before using the outcome

Use your experiment platform's allocation check or an appropriate goodness-of-fit test to judge whether the observed split is unusual for the sample size. Diagnose the cause before assigning a winner. If eligible visitors in one group were systematically lost, correct the measurement, verify it with an A/A test, and plan a clean restart when needed.

Sources

Run the test in Shopify

Sofcy supports URL, template, theme, and custom JavaScript API experiments.

Start free trial