Back to Blog
Shopify

Shopify A/B Testing with Revenue Tracking: The Complete Guide

December 5, 2025
12 min read

Most A/B testing tools tell you which variant gets more clicks. But clicks don't pay the bills — revenue does. This guide shows you how to run A/B tests on your Shopify store that track actual revenue per variant, so you know exactly which experiments make you money.

The Problem with Traditional A/B Testing

Here's a scenario every e-commerce marketer knows: You run an A/B test on your product page. Variant B gets 15% more "Add to Cart" clicks. You celebrate and roll it out. But then...

What you measured

+15% Add to Cart

What actually happened

-8% Revenue

The variant attracted more clicks but from less qualified buyers. Average order value dropped. Returns increased. You optimized for the wrong metric.

The Solution: Revenue-Based A/B Testing

Track what actually matters

ExperimentHQ is the only A/B testing tool built specifically for Shopify with automatic revenue tracking. When a customer completes a purchase, we capture the order value and attribute it to the correct experiment variant.

Revenue per Visitor

Total revenue divided by unique visitors per variant

Average Order Value

Average purchase amount per converting customer

Revenue Lift

Percentage increase in revenue vs control

Statistical Confidence

Probability that results are not due to chance

How Shopify Revenue Tracking Works

Zero-Code Setup

1

Install ExperimentHQ snippet

Add one line of code to your Shopify theme

2

Create a Shopify Purchase goal

Select "Shopify Purchase" as goal type — that's it!

3

Run your experiment

Revenue is tracked automatically for each variant

No checkout.liquid editing required. Our snippet automatically detects Shopify's thank you page and captures the order total. Works with all Shopify themes and checkout configurations.

Under the Hood

When a visitor completes a Shopify checkout, our snippet:

Detects the Shopify thank you page URL pattern
Extracts order value from Shopify's checkout object
Attributes the purchase to the correct experiment variant
Calculates revenue per visitor with statistical significance

What to Test with Revenue Tracking

Pricing Tests

Test different price points and see actual revenue impact, not just conversion rate. A 10% price increase might lower conversion 5% but increase revenue 4%.

Revenue tracking reveals the true winner

Upsell Strategies

Test bundle offers, "frequently bought together," and cross-sells. Measure actual AOV increase, not just click-through rate.

See which upsells actually increase cart value

Free Shipping Thresholds

Test $50 vs $75 vs $100 thresholds. Higher thresholds may reduce conversions but increase AOV enough to boost total revenue.

Find the revenue-maximizing threshold

Discount Strategies

10% off vs $10 off vs free gift. Different discount frames attract different customers with different spending patterns.

Optimize for profit, not just conversions

ExperimentHQ vs Other Shopify A/B Testing Tools

FeatureExperimentHQOthers
Auto Shopify revenue trackingManual setup
Revenue per visitor metricLimited
No checkout.liquid editingRequired
Works with Checkout ExtensibilityVaries
Free tier availableVaries

Start Testing with Revenue Tracking Today

Stop guessing which tests make money. ExperimentHQ's Shopify integration takes 2 minutes to set up and automatically tracks revenue for every experiment.

Get Started Free

Free forever plan • No credit card required

The Bottom Line

E-commerce A/B testing without revenue tracking is like driving with your eyes closed. You might be optimizing for metrics that actually hurt your bottom line.

ExperimentHQ's automatic Shopify revenue tracking ensures every experiment is measured by what matters most: actual revenue impact. Because at the end of the day, the only winning variant is the one that makes you more money.

Share this article

Ready to start A/B testing?

Free forever plan available. No credit card required.