Turn on tracking
Switch on the ab.one app embed in your theme. It takes about two minutes and you only do it once per theme.
Before you can create a test, ab.one has to be switched on in your theme. Until then, the New test button stays greyed out with the hint "Set up tracking before creating tests".
Tracking has two parts:
- The app embed runs in your theme and shows each visitor the right version. Shopify doesn't let apps switch it on themselves, so you do this once in the theme editor.
- The web pixel reports add-to-carts and orders. ab.one installs it for you. There's nothing to paste.
Switch on the app embed
Open the setup
In ab.one, click Open setup on the Tracking not connected card in the sidebar. The Set up tracking window opens. (You can also go to Store settings → Tracking.)
Open the theme editor
Click Open theme editor. Shopify's theme editor opens in a new tab, with App embeds already open and ab.one selected.
Switch ab.one on
Make sure the switch next to ab.one is on. There are no settings to fill in.
Save
Click Save in the top right of the theme editor. Nothing is active until you save.
Go back to ab.one
Switch back to the ab.one tab. It checks the connection on its own, and when both parts are working you see "Tracking is live. 🎉".
Check that it worked
In the Set up tracking window, under Verification status, both checks should say Connected:
| Check | What it confirms |
|---|---|
| App embed | ab.one is switched on and saved in your live theme. |
| Web Pixel | ab.one's pixel is installed and can report orders. |
Two more ways to check:
- In ab.one: the Tracking not connected card in the sidebar is gone, and New test on the A/B Tests page works.
- In Shopify: Settings → Customer events lists ab.one under app pixels as connected.
When you change your theme
The app embed is switched on per theme. If you publish a different theme, for example a new seasonal theme or an updated copy, switch ab.one on in that theme too.
ab.one notices when your live theme changes. It shows Changing theme… and sets up tracking for the new theme, and if the embed is still off it shows Turn on ab.one in your Shopify theme with the same steps as above. Template tests that ran on the old theme pause until you publish the original theme again, because their templates live in that theme. Changing themes while testing explains why.
What the sidebar cards mean
| Card | What happened | Button |
|---|---|---|
| Tracking not connected | Your storefront isn't sending events yet, usually because the app embed is off. | Open setup |
| App embed not enabled | The ab.one app embed is switched off in your live theme, so no tests run on your storefront. | Enable app embed |
| Tracking update available | A newer version of the ab.one tracking script is ready. | Update now |
| Shopify connection lost | ab.one can't reach your store anymore. See Your store connection. | Reconnect Shopify |
Still stuck? Tracking not connected goes through every cause.