All guides · Offers

Test up to four versions of an offer

An A/B test shows other versions of an offer to different visitors, and tells you which one brings more money per visitor.

  1. Open a live offer and press "A/B test" at the top.
  2. Press "Write side B". Side A is the offer as it is. Side B starts as a copy. Change its quantities, discounts and names. Drag a tier by its handle, or use its "…" to move it up or down, copy it or remove it. The look is the same on every side.
  3. To try more ideas at once, press "Add side C", then "Add side D". Each new side starts as a copy of side A. "Side B", "Side C" and "Side D" above the tiers choose the side you change, and "What each side sees" draws every side. "Remove side C" takes a side off before the start; side D then becomes side C.
  4. Press "Start the test". Each side must differ from side A and from the other sides. After the start, the sides and the tiers of the offer cannot change. To change them, end the test first.

Your visitors split evenly across the sides: half see side B in a test of two sides, a third each side in a test of three, a quarter each in a test of four. Each visitor keeps their side on every visit and pays that side's price at checkout. Visitors whose cookie choice does not allow it see side A and are not counted: nothing is kept in their browser for the test, and the test's figures leave them out. Where your store asks no cookie consent of a visitor's country, Shopify says yes and they are split. A visitor who allows it later is split from their next page.

A sale at your shop's till (Shopify POS) always pays side A's price: the till has no page to show a side on. An offer only at the till cannot start a test.

An offer with versions for other markets cannot have a test: a test compares one set of tiers, and the buyers of a version see other tiers.

The test page shows each side's visitors, the visitors who added the offer to their cart, orders, what they paid, money per visitor and profit per visitor. Orders come in every hour.

Profit per visitor is what a side's orders paid less what their items cost, over its visitors. The cost is each item's Cost per item, as you set it on the product's variant in Shopify, read when the order comes in. The page says which side makes more profit. The app still judges on money per visitor, not profit: profit is for you to weigh. When some items have no Cost per item, the page says "Profit needs the cost per item of:" with a link to each product in Shopify. Add it there; the orders already counted have no cost, so that test shows no profit. A refund takes its items off at the cost Shopify holds then.

After 7 days and 10 orders on all sides together, the app works out how many visitors each side needs to see a difference of a fifth in money per visitor, never fewer than 1,000. Each side is compared with side A. With more sides, each side needs more visitors, so that a test of four sides names a winner by luck no more often than a test of two (the app holds each comparison to a stricter bar, by Holm's method). When every side has them, the app judges the test once and says which side brings the most money per visitor among those that clearly beat side A, or that there is no clear winner.

When the app judges the test, it emails you once: who won, and each side's visitors, conversion and money per visitor, with profit per visitor when every item had a cost. With a winner, the email has "Apply side B" (or C, or D) and "Keep side A"; with no winner it says "No side beat A: side A stays." and has "Keep side A". Each link opens the test's page with that button in blue. Nothing changes until you press it there. Until then, your visitors still see every side. The email goes to the addresses in Settings, under Emails, and "Your A/B tests' results" there switches it off.

Then you press "Use side B" (or C, or D) or "Keep side A". The app never changes the offer by itself. "End the test and keep side A" stops a test early, without a judgement.

The app may suggest a test. When a live offer's figures call for a change (a smaller next step, a better next tier, the tier buyers take marked, or a stronger first discount), its editor shows the suggestion above the tiers, and the Suggestions page lists it. "Test it" opens this page with side B already made of the change, not started: check it, add sides if you like, and press "Start the test". In the Offers list, the row's A/B test says the change, like "A/B test: 15% off from 3 items", and does the same.

When a test ends, the app keeps what it found. The last three tests of an offer stay under "Past tests" on the test page: the days it ran, what you did, the judgement if there was one, each side's tier names, and the figures of each side. A copy of an offer does not take them.

To read your tests in Google Analytics, turn on "Tell Google Analytics which side each visitor saw" on any test's page. It is one switch for all your tests, off at the start. When a visitor first sees a test, your store then sends the event weird_bundles_test, through Shopify's customer events, with the test's code, the offer's name and the side (A, B, C or D), once for each visitor and test. The offer's name is then in your product page's code, where anyone could read it.

Shopify's customer events do not reach Google Analytics by themselves. Add our pixel once:

  1. In Shopify, open Settings, then Customer events, and press "Add custom pixel". Name it "Weird Bundles A/B tests".
  2. Paste the code below. Put your Google Analytics 4 measurement ID (it starts with G-) in place of G-XXXXXXXXXX. Google Analytics shows it under Admin, Data streams, your web stream.
  3. Under Customer privacy, keep "Required" and choose Analytics, so a visitor who declines analytics where your store asks sends nothing.
  4. Press Save, then Connect.
The custom pixel for Google Analytics 4
const MEASUREMENT_ID = "G-XXXXXXXXXX";

const script = document.createElement("script");
script.src = "https://www.googletagmanager.com/gtag/js?id=" + MEASUREMENT_ID;
script.async = true;
document.head.appendChild(script);
window.dataLayer = window.dataLayer || [];
function gtag() { window.dataLayer.push(arguments); }
gtag("js", new Date());
gtag("config", MEASUREMENT_ID, { send_page_view: false });

analytics.subscribe("weird_bundles_test", (event) => {
  const data = event.customData;
  gtag("event", "weird_bundles_test", { test_id: data.test, offer_name: data.offer, test_side: data.side });
});

To check it, open the product page with the offer in a private window (and allow cookies if your store asks: without that, nothing is sent), then Google Analytics' Reports, Realtime. "Event count by Event name" lists weird_bundles_test within a minute; press it to see test_side and offer_name. To use the side in your reports and explorations, add it once under Admin, Custom definitions, "Create custom dimension": scope Event, event parameter test_side, and offer_name the same way. Google fills them in from then on, within a day or two.

If your theme loads Google Tag Manager, the same event is in its dataLayer too: a Custom Event trigger named weird_bundles_test, with the Data Layer Variables test, offer and side.

More in Offers

Made by Web Weirdos · hello@webweirdos.com · Privacy