Shopify A/B testing
Test product page copy, prices shown, trust badges, images and homepage headlines on your Shopify store. Paste one snippet into your theme and you're running tests within minutes, with no theme duplication.
Free plan · 1,000 visitors / month · no card
Set up in 4 steps
- 01In Shopify admin, go to Online Store → Themes → ⋯ → Edit code.
- 02Open layout/theme.liquid and paste the snippet just before </head>.
- 03Save, then click Check install in AB Splits.
- 04Create your first test, for example the product description or the Add to cart area, with add-to-cart clicks as the goal.
theme.liquid, before </head>
<script src="https://absplits.com/s.js" data-key="YOUR_SITE_KEY"></script>Your real site key is shown in the dashboard after you add your site.
- Shopify's checkout doesn't allow custom scripts on most plans, so test everything up to the cart and measure add-to-cart clicks or cart page views.
- If you switch themes, paste the snippet into the new theme too.
What to test on Shopify
All 56 examples →Show star rating and review count by the buy button
Show progress to free shipping
Replace jargon with plain language on product pages
Lifestyle photo vs product-only shot as the first image
Offer a 'frequently bought together' bundle
Sticky CTA bar on mobile
AI writes variants
Choose a headline or button and AI reads your real page to write 3–5 alternatives, each with its reasoning.
Honest stats
Chance to beat the original, 95% intervals, and a plain keep-running or stop verdict. No p-value guesswork.
Results in GA4
Every tested visitor is tagged in GA4, so any report can be split by variant.
Questions
Do I need a Shopify app for A/B testing?+
No. AB Splits works with a single script tag in your theme, so there's nothing to install from the app store and nothing that rewrites your theme files.
Can I test prices on Shopify?+
You can test how a price is presented (charm pricing, showing savings, bundles). Charging different prices needs separate products or discount codes, because the price at checkout must match what the shopper saw.
Will visitors see the original flash before the variant?+
The snippet is 8 KB (about 3.5 KB compressed) and hides the page for at most 0.8 seconds while it applies the variant. Returning visitors get their version from a local cache almost instantly.
Will A/B testing hurt my SEO?+
No, not when it's done properly. AB Splits shows each human visitor one version, and search bots and crawlers always see your original page. Tests on separate URLs keep your canonical tags, so ranking signals stay on the original page. End tests when you have a result and ship the winner.
A/B testing on other platforms