The short answer (native method)
Shopify includes a built-in abandoned checkout email, and tools like Klaviyo offer prebuilt cart flows. Both recover orders, but neither runs a randomized holdout by default, so they credit themselves for shoppers who would have returned and purchased anyway. Always disable overlapping native cart emails before launching a new flow.
How Apex automates it
Apex receives cart events from a sandboxed Shopify Custom Pixel, exits shoppers cleanly before sending if a completed order arrives during the wait window, and measures true incremental orders with a built-in 10% randomized holdout and 95% confidence interval.
How to set this up in 4 steps
Pause overlapping Shopify or Klaviyo abandoned cart emails
Before publishing in Apex, turn off Shopify's built-in abandoned checkout automation (and any Klaviyo or Mailchimp abandoned cart flow) so shoppers never receive two competing reminders for the same cart.
Connect Shopify and add a sandbox-safe Shopify Custom Pixel
Authorize Shopify in Apex Integrations (including protected customer data permissions for customer email) and add a Shopify Customer Events Custom Pixel that posts product_added_to_cart (using cartLine.cost.totalAmount), product_removed_from_cart, and checkout_contact_info_submitted directly to Apex's /api/events endpoint using event.clientId.
Configure exit rules and repeat-cart re-entry limits
In Apex Adaptive Journeys, add a 2-hour wait after cart activity, set exit rules on purchase_completed, emptied cart, and unsubscribe, and set a 7-day re-entry cooldown so shoppers adding items across multiple sessions aren't spammed.
Enable a 10% randomized holdout and review Calibrated Impact
Publish the journey with a 10% silent holdout group. Compare total exposed vs holdout conversion rates and the 95% confidence interval in Calibrated Impact before scaling follow-up touches or discounts.
What you already have (and what to turn off first)
Before turning on an Apex Abandoned Cart Journey, disable Shopify's built-in abandoned checkout automation (Marketing -> Automations) and any active Klaviyo or Mailchimp abandoned cart flow. Running two cart flows at once sends duplicate reminders and irritates shoppers.
Shopify's native abandoned checkout email works out of the box with zero extra setup, and email tools like Klaviyo offer solid prebuilt cart flows. Where both leave blind spots is incrementality:
Click-attributed revenue overstates email impact. Many shoppers who abandon a cart are simply interrupted and come back to buy within a few hours on their own. Without a randomized silent holdout group, standard email dashboards take credit for every order placed after an email opens or clicks.
Checkout-only triggers miss earlier cart intent. Shopify's built-in abandoned checkout automation only fires after a shopper reaches checkout and enters an email. Tracking
add_to_cartandremove_from_cartfor already-identified shoppers catches earlier intent while still verifying live cart contents before sending.
Tracking carts with Shopify Web Pixels and exit rules

Many distracted shoppers return and finish checkout within the first two hours on their own. Waiting two hours and exiting on purchase_completed avoids emailing people who already bought.
Use Shopify Web Pixels (Settings -> Customer events -> Add custom pixel) rather than brittle theme Liquid edits. Because Shopify Custom Pixels execute inside a strict sandboxed Web Worker where window.apex does not exist, post events directly to Apex's public ingest endpoint using fetch(..., { keepalive: true }), pass Shopify's event.clientId as anonymousId, and stitch email identity when checkout_contact_info_submitted fires:
// Settings -> Customer events -> Add custom pixel (strict sandbox; no window.apex)
const APEX_KEY = "YOUR_APEX_WORKSPACE_KEY";
function sendToApex(payload: Record<string, unknown>) {
fetch("https://app.apex.inc/api/events", {
method: "POST",
keepalive: true,
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ workspaceKey: APEX_KEY, ...payload }),
});
}
analytics.subscribe("product_added_to_cart", (event) => {
const line = event.data.cartLine;
if (!line) return;
sendToApex({
anonymousId: event.clientId,
event: "add_to_cart",
properties: {
product_id: line.merchandise.product.id,
variant_id: line.merchandise.id,
quantity: line.quantity,
value: Number(line.cost?.totalAmount?.amount ?? line.merchandise.price.amount),
currency: line.cost?.totalAmount?.currencyCode ?? line.merchandise.price.currencyCode,
},
});
});
analytics.subscribe("product_removed_from_cart", (event) => {
const line = event.data.cartLine;
if (!line) return;
sendToApex({
anonymousId: event.clientId,
event: "remove_from_cart",
properties: {
product_id: line.merchandise.product.id,
variant_id: line.merchandise.id,
quantity: line.quantity,
currency: line.merchandise.price.currencyCode,
},
});
});
analytics.subscribe("checkout_contact_info_submitted", (event) => {
const email = event.data.checkout?.email;
if (!email) return;
sendToApex({
anonymousId: event.clientId,
userId: email,
event: "identify",
properties: { email },
});
});
Exit rules and re-entry cooldowns
Exit before send on
purchase_completed: During the 2-hour wait window, if Shopify delivers a completed order webhook for that customer, Apex clears their cart state and exits them from the journey before any email dispatches.Exit on empty cart or unsubscribe: Shoppers who remove every item from their cart or opt out of marketing email also exit prior to dispatch.
7-day re-entry cooldown: Restrict each contact to one active journey run at a time plus a 7-day cooldown so a shopper browsing across two consecutive evenings does not get stacked cart reminders.
Worked 30-day holdout example (illustrative assumptions)
All figures below are illustrative assumptions for the same fictional specialty coffee store (Roast & Anchor Coffee, $68 average order value, ~600 monthly Shopify orders) evaluating 1,500 abandoned carts over 30 days split randomly at entry (90% exposed, 10% silent holdout):
| Cohort stage (30-day window) | Exposed (90%) | Silent holdout (10%) | Reconciliation note |
|---|---|---|---|
| Abandoned carts entering journey | 1,350 | 150 | 1,500 total randomized entries |
| Purchased on their own during 2h wait (illustrative) | 135 (10.0%) | 15 (10.0%) | Exited exposed group before send (0 emails) |
| Emptied cart or unsubscribed during 2h wait | 27 (2.0%) | 0 emails | Total exited before send = 162 (135 + 27) |
| Shoppers sent the 2h reminder | 1,188 | 0 | 1,350 - 162 = 1,188 emails dispatched |
| Post-wait conversions (within 7 days) | 176 | 8 | Captured via Shopify purchase_completed |
| Full randomized 7-day conversion rate | 23.04% (311 / 1,350) | 15.33% (23 / 150) | +7.7 pts lift (95% CI: +1.5 to +13.9 pts, p = 0.031) |

Only orders above the silent 10% holdout baseline count as incremental recovered revenue. In this illustrative 30-day cohort, that equals roughly 20 to 188 net additional shipped orders.
How to read the randomized lift honestly:
- Compare the entire randomized exposed cohort (
{props.fixture.cohort.exposedConvertedTotal} / {props.fixture.cohort.exposedTriggered.toLocaleString("en-US")} = {(props.fixture.stats.exposedRate * 100).toFixed(2)}%) against the entire randomized holdout cohort ({props.fixture.cohort.holdoutConvertedTotal} / {props.fixture.cohort.holdoutTriggered} = {(props.fixture.stats.holdoutRate * 100).toFixed(2)}%) so early self-converters ({props.fixture.cohort.exposedSelfConvertedBeforeSend}exposed,{props.fixture.cohort.holdoutSelfConvertedBeforeWait}holdout, an illustrative 10% assumption) are counted identically on both sides. - Absolute incremental lift:
+{(props.fixture.stats.absoluteLift * 100).toFixed(1)} percentage points(95% confidence interval:+{(props.fixture.stats.ci95Low * 100).toFixed(1)}to+{(props.fixture.stats.ci95High * 100).toFixed(1)}percentage points, two-tailedp = {props.fixture.stats.pValue.toFixed(3)}). - Estimated incremental recovered orders over 30 days: point estimate 104 orders, with a 95% confidence interval of 20 to 188 orders.
- Estimated incremental gross revenue at $68 AOV: point estimate $7,072 / mo (95% CI: $1,360 to $12,784 / mo). Evaluate net profit against your actual gross margin and any discount offered in the reminder. Once buyers convert, pair this flow with our Meta Ads recent buyer exclusion playbook so recovered customers stop seeing cold acquisition ads immediately.
Live Apex pricing for this workflow
The pricing block below reads directly from Apex's live rate card for {props.fixture.apexUsage.monthlyCartEvents.toLocaleString("en-US")} monthly cart/order events, {props.fixture.apexUsage.monthlyOrchestrations.toLocaleString("en-US")} journey orchestrations, and {props.fixture.apexUsage.monthlyEmailsSent.toLocaleString("en-US")} dispatched emails (after suppressing {props.fixture.cohort.exposedExitedBeforeSend} early exits before send).
Live Apex pricing · Pay-as-you-go
Estimated Apex cost for 1,500 abandoned carts / 30 days (1,188 emails sent)
$0 / month
Fully inside Apex's free monthly allowances (resets every calendar month).
| Apex meter | Scenario volume | Free monthly allowance | Overage rate | Apex cost |
|---|---|---|---|---|
Events Shopify Custom Pixel cart additions, removals, checkout contact events, and completed order webhooks | 8,400 / mo | 1M / month | $5 per 100K (per unit) | $0 |
Orchestrations 1,500 randomized holdout assignments + 334 7-day conversion evaluations | 1,812 / mo | 1M / month | $5 per 100K (per unit) | $0 |
Messages 1,188 cart reminder emails sent (162 early buyers/exits suppressed before dispatch) | 1,188 / mo | 10K / month | $60.00 per 100K (per unit) | $0 |
The Shopify connector, Adaptive Journeys holdouts, and unlimited team seats carry no extra Apex fee. Individual event history stays queryable for 13 months without a card, 3 years with a card on file, and 7 years once you've paid an invoice. See the live pricing page.
Third-party and campaign costs (not paid to Apex)
| Expense | Typical range | Notes |
|---|---|---|
| Shopify subscription | Existing plan | Paid directly to Shopify; Web Pixels (Customer events) are included on all Shopify plans. |
| Sending domain DNS verification | $0 | Standard DKIM/SPF records on your existing store domain so reminders land in the primary inbox. |
Limitations and Shopify prerequisites
Shopify protected customer data approval: Custom Shopify apps that read customer email addresses on orders require Shopify's protected customer data access approval before syncing live customer profiles.
Anonymous carts cannot receive email: A first-time visitor who adds an item to their cart without signing in or entering an email at checkout cannot be emailed until they identify themselves.
Holdouts need sample size before calling a winner: Smaller stores with 100 to 200 abandoned carts per month will need several weeks to narrow the 95% confidence interval. Do not treat an early low-sample read as proof of lift.
Consistent purchase event naming: Use one canonical event (
purchase_completed) across both the Shopify connector and your journey goal/exit rules so orders clear carts and count toward holdout lift consistently.

