Documentation

Build, run, and measure A/B tests on your Shopify store

AB Test is an A/B testing and conversion-optimization app for Shopify. Run controlled experiments on your storefront, measure the winner on conversion and revenue, and apply it in one click — with revenue tracking that works even through Shop Pay and third-party checkout.

Quickstart

Install the app, enable the storefront embed, and launch your first test.

What to test

Ideas and best practices for high-impact experiments on your store.

Test types

URL redirect, template, theme, and JavaScript API tests explained.

Audience targeting

Run experiments only for the visitors you choose — device, geo, UTM, and more.

Results and statistics

Read Bayesian results, probability to be best, and segment breakdowns.

Revenue attribution

How revenue is credited to variants — even through third-party checkout.

Privacy and consent

Pseudonymous tracking, opt-out consent, and what data the app reads.

API Reference

The window.abtest storefront developer API for JavaScript tests.

How AB Test works

You create an experiment with two or more variants, choose who it runs for, and launch it. The storefront app embed assigns each visitor to a variant, keeps that assignment stable across their visit, and serves the right experience. As visitors browse and buy, AB Test records views, conversions, and revenue, then computes Bayesian results so you can tell which variant actually wins — and apply it.

New here? Start with the Quickstart — you can have your first test live in a few minutes.