Changing themes while testing
Why template tests pause when you publish another theme, what ab.one does on a theme change, and how to prepare a new theme.
Template tests belong to a theme. Their templates live inside the theme you built them in, and ab.one remembers which theme that was. As long as that theme is live, nothing on this page matters. When you publish a different theme, it does.
Split URL tests compare page addresses, not templates, so a theme change doesn't affect them.
Why tests pause when you publish another theme
When a different theme goes live, ab.one pauses every live template test that belongs to another theme. A different theme can't show those templates, and visitors would otherwise see broken or wrong pages. The banner at the top of the test page says "Test paused — your live theme changed" and names the theme the test needs: "It resumes automatically when you publish this theme in Shopify Admin."
While a test is paused, visitors see your normal pages and no data is collected. The results so far stay. On Home, the test appears under Needs you as Paused: "The live theme changed since the test was built."
Good to know:
- A test stays tied to its theme, even if the new theme has the same templates. A duplicate of your theme gets a new identity in Shopify, so the test stays paused there.
- Drafts and scheduled tests belong to the theme that was live when you created them. If they start after the switch, they pause straight away.
- A theme update counts as a theme change. When you update a theme to a new version in Shopify, you usually get an updated copy that you then publish. That's a different theme for ab.one.
Getting a paused test running again
- Go back: publish the original theme again, and its tests resume on their own within a few minutes.
- Keep the new theme: end the test and start it again on the new theme. See Prepare a new theme below.
What ab.one does when your live theme changes
Shopify tells ab.one when a new theme is published. The next time you open ab.one, it sets up tracking for that theme and shows the Changing theme... window while it works: "Shopify detected a new live theme. We are automatically setting up A/B testing tracking for it. This will only take a moment."
The window closes on its own when it's done. If ab.one is already switched on in the new theme, you may not see it at all.
If setting up fails, the window shows Theme Setup Failed with the reason. Click Retry Setup. If it fails again, check that ab.one can still reach your store (Your store connection), then contact support.
The app embed is per theme
Switching ab.one on in one theme doesn't switch it on in any other theme. If the new live theme doesn't have the ab.one app embed on, no tests run on your storefront, and the sidebar shows App embed not enabled with Enable app embed. Turn on tracking has the steps.
Prepare a new theme
The smoothest switch is the one you prepare before you publish.
Decide what happens to running tests
Every live template test pauses when the new theme goes live. End the tests that already have a result, and note the ones you want to run again on the new theme.
Switch ab.one on in the new theme
Go to Store settings → Tracking and click Enable App Embed (or Manage App Embed). Under Theme, pick the new theme. Themes that aren't live yet are marked: "This theme is not live. The embed starts serving shoppers after you publish it." Click Open theme editor, switch ab.one on and click Save.
Check the variant templates
If the new theme is a copy of your current theme made after you created the variant templates, they're already in it. Otherwise, create them again in the new theme: see Prepare variant templates in Shopify.
Publish the new theme
In Shopify, publish the new theme as usual. ab.one sets up tracking for it, as described above.
Start the tests again
For each test you want to keep running, open it, end it, and click Duplicate. Check that each version uses the right template in the new theme, then launch the copy. The copy starts with no data; the original keeps its results. Drafts from before the switch need the same: duplicate them, then delete the old draft. See Duplicate.
Editing your live theme during a test
You can keep working on your live theme while tests run, but leave the templates in a running test alone. If you click Edit in theme editor on a running test, ab.one asks "Edit theme while test is live?": editing the template changes what visitors see and can distort your results. To test a different version, end the test and start a new one.