The short answer (native method)
In Meta Ads Manager, build a Website Custom Audience from Purchase events (which includes Shopify server-side CAPI events when Shopify's Facebook & Instagram channel is set to Enhanced or Maximum data sharing) or upload a customer CSV, then add it under Excluded Audiences on your ad sets, including Advantage+ sales campaigns. Manual CSVs go stale quickly, while website audiences can't reflect refunds, offline orders, or custom reorder-cycle rules.
How Apex automates it
Apex connects Shopify orders directly to Meta Ads, maintains a rolling hashed Custom Audience of recent buyers that updates automatically (Meta processes changes within 24 hours), and lets you keep one clean server-side Meta Conversions API Purchase sender without double-counting.
How to set this up in 4 steps
Audit Shopify's built-in Meta channel and accept Meta audience terms
Confirm your Meta Ad Account lives inside a Meta Business portfolio and has accepted Meta's Custom Audience Terms. Check your Shopify Facebook & Instagram channel's data-sharing level (Standard is pixel-only; Enhanced and Maximum already send server-side CAPI Purchase events) so you run only one server-side Purchase sender.
Connect Shopify and Meta Ads in Apex
Authorize your live Shopify store and Meta Ads account in Apex Integrations so Apex imports verified completed orders (purchase_completed) and daily ad spend.
Build a Recent Buyers segment sized to your reorder cycle
Create a Segment matching purchase_completed within a window shorter than your typical reorder cycle (for example, 21 days for consumable coffee or 30 to 60 days for durable goods) so exclusions don't suppress repeat buyers who are ready to restock.
Sync the hashed Custom Audience and attach it in Meta Ads Manager
Export the segment to Meta using normalized SHA-256 email (lowercased and trimmed), E.164 phone, and your merchant external_id. Once Meta populates the list (typically up to 24 hours, requiring 100+ matched users), add it under Excluded Audiences on your prospecting and Advantage+ ad sets.
What you already have (native Ads Manager options and real limits)
You don't need third-party software just to exclude recent buyers on Meta. Inside Meta Ads Manager, you already have two built-in approaches:
Meta Pixel Website Custom Audience (Purchase, last 21 to 30 days): Free and automatic inside Ads Manager, and you can attach it under Excluded Audiences on standard ad sets and Advantage+ sales campaigns (where Meta retired the older existing-customer budget cap). When Shopify's Facebook & Instagram channel is set to Enhanced or Maximum data sharing, that native Website Custom Audience already receives server-side CAPI
Purchaseevents alongside browser pixel fires. Where it still falls short is orders outside the online store pixel path (draft/manual orders, subscription rebills, POS, or offline refunds) and custom exclusion rules beyond a single raw Purchase window.Manual Shopify CSV upload: Exporting recent buyers from Shopify and uploading them to Meta covers every order source, but the list freezes the moment you upload it. Yesterday's buyers keep seeing cold acquisition ads until someone exports another CSV, and older buyers never roll off automatically.
Connecting Shopify and Meta Ads through Apex keeps a server-verified, rolling Customer List Custom Audience synced from actual Shopify orders (purchase_completed) without weekly spreadsheet exports.
Critical check: avoiding duplicate Meta CAPI Purchase events
Shopify's built-in Facebook & Instagram sales channel sends server-side Meta Conversions API (CAPI) Purchase events when data sharing is set to Enhanced or Maximum (and browser pixel events on Standard). If you also enable Apex's Meta CAPI Purchase sender on the same Pixel without coordination, Meta will count orders twice and distort ROAS and bidding.
Before touching Meta CAPI settings, pick one clean configuration and confirm it inside Meta Events Manager -> Overview -> Deduplication:
Single authoritative CAPI sender (recommended for buyer exclusions): Keep Shopify's native Meta channel handling CAPI
Purchaseevents (Enhanced or Maximum) and leave Apex's CAPIPurchasesend off. Use Apex purely for the rolling Customer List exclusion audience and cross-channel attribution.Apex as single server-side sender: If you want Apex to be your one server-side sender across Meta, Google, and TikTok, switch Shopify's Facebook & Instagram data sharing down to browser-only (or disable its duplicate server-side Purchase push) first, then verify a single deduplicated
Purchaseper order in Meta Events Manager.Deduplicated dual path: Whenever a browser pixel and a server-side CAPI sender both emit
Purchasefor the same order, both payloads must carry the exact sameevent_id(such as the Shopify order ID) so Meta deduplicates them within its 48-hour window.
Match rates, 24-hour latency, and rolling removals

Every completed Shopify order triggers a hashed member add to your rolling Recent Buyers Custom Audience, including draft orders and subscription rebills that never fire a browser pixel.
Hashing normalization and identifier hygiene
Meta matches Custom Audience members from hashed PII and your own customer identifier. Before SHA-256 hashing, Apex normalizes:
Email (
em): trimmed of leading/trailing whitespace and converted to lowercase before hashing.Phone (
ph): formatted to E.164 digits (country code included, punctuation stripped) before hashing.Merchant
external_id: your own stable customer identifier (not an ID issued by Meta) sent alongside email and phone so Meta can link multi-identifier profiles consistently.
Honest expectations on latency, match rate, and removals
Up to 24-hour Meta propagation: Apex pushes audience updates as orders arrive, and Meta typically takes up to 24 hours to reflect Custom Audience additions and removals in live ad delivery. Exclusions meaningfully reduce wasted impressions, but they never guarantee zero impressions immediately after checkout.
Illustrative match rates (50% to 75%) and 100-person minimum: Match rates vary widely by catalog and checkout email quality; the 50% to 75% band used below is an illustrative assumption rather than a Meta guarantee. Meta requires at least 100 matched people in a Custom Audience before exclusions actively filter delivery.
Incremental
/usersadds and deletes (vs./usersreplace): On Meta's Marketing API,/userssupports incremental member additions (POST) and removals (DELETE), whereas/usersreplacereplaces the entire audience list in one upload. Apex uses targeted member additions andDELETEremovals as buyers enter and age past your rolling window (for example Day 22 on a 21-day window) so you never have to re-upload the full list or risk an empty-audience gap. Routine Custom Audience membership updates do not trigger a Meta ad-set learning reset on their own, though shrinking an already tiny ad set can affect pacing.Watch your reorder cycle on consumables: If your store sells coffee beans or supplements that customers rebuy every 28 to 30 days, excluding buyers for 60 or 90 days can suppress high-intent repeat orders. Set the exclusion window shorter than your repeat purchase cycle (for example 14 to 21 days for coffee) or run a separate reorder campaign targeting buyers past Day 21.
Optional storefront enrichment (sandbox-safe Shopify Custom Pixel)
Shopify's Custom Pixel runs inside a strict sandboxed Web Worker where window globals like window.apex are unavailable. If you want storefront checkout telemetry alongside the Shopify order webhook, post directly to Apex's public ingest endpoint with fetch(..., { keepalive: true }) and pass Shopify's event.clientId as anonymousId:
// Settings -> Customer events -> Add custom pixel (runs in strict sandbox; no window.apex)
const APEX_KEY = "YOUR_APEX_WORKSPACE_KEY";
analytics.subscribe("checkout_completed", (event) => {
const checkout = event.data.checkout;
fetch("https://app.apex.inc/api/events", {
method: "POST",
keepalive: true,
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
workspaceKey: APEX_KEY,
anonymousId: event.clientId,
userId: checkout.email ?? undefined,
event: "purchase_completed",
properties: {
order_id: checkout.order?.id,
value: Number(checkout.totalPrice?.amount ?? 0),
currency: checkout.currencyCode,
},
}),
});
});
Worked financial example (illustrative assumptions)
All figures below are illustrative assumptions for a fictional specialty coffee store (Roast & Anchor Coffee) using a 21-day rolling exclusion window (kept shorter than its ~30-day coffee reorder cycle):
| Input or derived figure | Illustrative value | Basis / formula |
|---|---|---|
| Monthly Meta Ads spend | $12,000 / mo | Illustrative store assumption |
| Completed Shopify orders | 600 / mo ($68 AOV) | Illustrative store assumption |
| Recent buyers in rolling 21-day window | 420 buyers | 600 orders x (21 / 30 days) |
| Estimated matched users in Meta | ~273 matched | 420 x 65% illustrative match rate (above 100-user Meta minimum) |
| Spend reaching recent buyers before exclusion | $1,440 / mo | $12,000 x 12% illustrative overlap assumption |
| Addressable spend redirected away from recent buyers | ~$936 / mo | $1,440 x 65% matched (reallocated to new prospects, not automatically saved cash) |

Keep the exclusion window shorter than your product's repurchase cycle (21 days for coffee beans) so buyers re-enter reorder campaigns right when their bag runs low.
Important caveat: Redirected spend isn't guaranteed net profit. Meta redistributes excluded impressions to other users in your targeting pool, so evaluate actual incremental impact by tracking new-customer CAC and total store revenue over 2 to 4 weeks. Once post-purchase ad spend is clean, pair this workflow with our Shopify abandoned cart recovery playbook so your store measures incremental email lift on the same customer profiles.
Live Apex pricing and campaign cost
The scenario below pulls directly from Apex's live rate card using the reconciled volumes from the worked example above ({props.fixture.apexUsage.totalMonthlyEvents.toLocaleString("en-US")} events, {props.fixture.apexUsage.attributedConversionsPerMonth} attributed paid-channel orders, and {props.fixture.apexUsage.totalOutboundSendsPerMonth.toLocaleString("en-US")} outbound audience additions and removals per month with Apex CAPI Purchase left off).
Live Apex pricing · Pay-as-you-go
Estimated Apex cost for 600 Shopify orders / month ($12,000/mo Meta spend)
$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 16,200 storefront events + 600 completed Shopify orders | 16,800 / mo | 1M / month | $5 per 100K (per unit) | $0 |
Attribution 210 paid-channel attributed Shopify orders measured across Meta campaigns | 210 / mo | 1.5K / month | $0.05 per unit | $0 |
Ad platform activations 600 audience adds + 600 rolling 21-day removals (0 Apex CAPI sends in single-sender setup) | 1,200 / mo | 100K / month | $10 per 100K (per unit) | $0 |
Shopify and Meta Ads connectors 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; Apex adds no connector surcharge. |
| Meta Ads budget | $12,000 / mo illustrative | Paid directly to Meta; excluding recent buyers reallocates budget across remaining audiences rather than lowering your ad-set cap automatically. |
Prerequisites, limits, and privacy compliance
Meta Business portfolio & Custom Audience Terms required: Personal ad accounts can't receive API-synced Customer List Custom Audiences. Your ad account must live inside a Meta Business portfolio and accept Meta's Custom Audience Terms first.
Unmatched buyers still see ads: Buyers who check out with a work email or Apple Hide My Email address that Meta can't match won't be excluded by a Customer List audience.
Consent withdrawal and durable removal: When a customer opts out of ad targeting or requests deletion, Apex queues a durable removal job (see Consent withdrawal and durable audience removals) to delete their identifiers from your live Meta Custom Audience and block future syncs. Server-side CAPI events already sent to Meta in the past can't be recalled retroactively.

