Skip to main content
AfterSell → Customer.ioIntegration guide

Connecting AfterSell to Customer.io

AfterSell works through checkout extensions and post-purchase pages, which puts its offers inside Shopify's sandboxed surfaces where your own scripts cannot reach. Customer.io triggers messages from behaviour, which means an event you send is not recorded — it is acted on, usually within seconds, by sending something to a real person. The join between them succeeds or fails on one thing: whether the person identifier you assign reaches the AfterSell upsell order before the conversion happens, because Customer.io can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

AfterSell to Customer.io: delay the order event until the upsell is in

Delay the Customer.io order event until the AfterSell offer is accepted or declined, then send one event with final items and total, keyed on whichever of Shopify customer ID or checkout email your workspace uses. Include an accepted-offer attribute and upsell items, with template fields present on every order, and test in a separate workspace.

Customer.io acts on an event within seconds, and that speed works against an AfterSell store. If the order event fires when Shopify creates the order, the confirmation email goes out before the customer has answered the post-purchase offer, and the receipt lists a cart that is already out of date. Delay the event until the offer has been accepted or declined, then send one order event with the final items and total.

Use the Shopify customer ID or the checkout email as the person identifier, whichever your workspace already uses; mixing them creates the second profile that sends everything twice. Include an attribute for accepted offers and the upsell items themselves, and make sure every field the email template references is present on every order, including orders where no offer was shown at all.

Test with a real store order against a test workspace, not the live one; a test event fired at a real customer's identifier runs the campaign and sends the email. Afterwards, compare orders with accepted offers against Customer.io deliveries for a week. One email per order is the pass mark, and a confirmation that lists the upsell is the second.

AfterSell → Customer.io · what breaks

Why this join usually fails — AfterSell → Customer.io

  1. 01

    The person identifier you assign never reaches AfterSell

    Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported.

  2. 02

    Trying to instrument a sandbox

    Time gets spent attempting to observe checkout extension behaviour from the storefront. It cannot be done, by design, and every hour spent on it is an hour not spent on the server-side path that works.

  3. 03

    A test event sending a real email

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  4. 04

    Nothing reconciles afterwards

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

AfterSell → Customer.io · the fix

What working looks like — AfterSell → Customer.io

  • The person identifier you assign on every order

  • Conversions arriving in Customer.io

    The event lands on the person, evaluates against every campaign trigger and segment condition, and may send immediately.

  • Reconciled against the source

AfterSell → Customer.io · architecture

How AfterSell and Customer.io actually connect

  1. 1

    AfterSell holds the truth

    Checkout UI extensions run sandboxed. Nothing you write can observe them, so the only reliable view of what the customer accepted is the order itself.

  2. 2

    Customer.io needs a click to match

    Customer.io needs the person identifier, the event name and any attributes the campaign conditions reference. An event whose attributes are missing will still trigger a campaign, which may then send a message with an empty placeholder in it.

  3. 3

    The identifier is the bridge

    The person identifier you assign, captured at the visit and carried into the AfterSell upsell order.

  4. 4

    The event source decides reliability

    Send the final order total from the webhook, with upsell line items identified.

  5. 5

    Deduplication at the destination

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

AfterSell → Customer.io · normal or broken

Working vs. broken, side by side — AfterSell → Customer.io

Normal, not a fault

  • The person identifier you assign present on the order

  • Sent from the Shopify order webhook

  • Deduplicated correctly

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

  • Reconciles with the source

Actually broken

  • The person identifier you assign missing on most records

    Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported.

  • Sent from the browser

    Time gets spent attempting to observe checkout extension behaviour from the storefront. It cannot be done, by design, and every hour spent on it is an hour not spent on the server-side path that works.

  • Counted twice, or not at all

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  • Nobody has reconciled it

AfterSell → Customer.io · diagnose

Diagnostic order — AfterSell → Customer.io

  1. 01

    Count orders carrying the person identifier you assign

  2. 02

    Follow one real conversion end to end

  3. 03

    Confirm the conversion is sourced from the order, not from a page

    On modern Shopify checkout there is no supported page-based option left, so this is the only correct architecture.

  4. 04

    Confirm which workspace you are writing to before sending anything

    Environment separation is the whole safety mechanism in behaviour-triggered tools, and it is the thing most often skipped.

  5. 05

    Read the match rate, not the success message

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

AfterSell → Customer.io · prove

How it gets proven — AfterSell → Customer.io

Source of truth

The final Shopify order total, read from the order record.

  • The person identifier you assign confirmed present on a live order.
  • Events confirmed on person profiles with the triggered campaign activity verified, in a test workspace before production.
  • Final order totals reconciled from the webhook against imported conversions.

AfterSell → Customer.io · free audit

What we check in the free audit

  • Count orders carrying the person identifier you assign
  • Follow one real conversion end to end
  • Confirm the conversion is sourced from the order, not from a page
  • Confirm which workspace you are writing to before sending anything
  • Read the match rate, not the success message

Checked against

The final Shopify order total, read from the order record.

Get my free conversion tracking audit

Free30 minutesNo obligation

AfterSell → Customer.io · when not to buy

When you don't need this — AfterSell → Customer.io

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the person identifier you assign.
  • If your conversions already come from the order webhook, checkout extensions change nothing for you.
  • If your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.

AfterSell → Customer.io · what we deliver

What gets built — AfterSell → Customer.io

  • Identifier capture into AfterSell

    Do not try to instrument the checkout surface. Read the order server-side, which is the supported and more reliable path anyway.

  • Event source: the Shopify order webhook

    Send the final order total from the webhook, with upsell line items identified.

  • Dispatch to Customer.io

    The Customer.io Track API, posted server-side from your order or product system with the person identifier and event attributes.

  • Reversals where they exist

    Refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against The final Shopify order total, read from the order record.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

AfterSell → Customer.io questions, answered

The event fired when the order was created, before the post-purchase offer was accepted. Wait for the offer to be answered, then send the final order.

Free · 30 min

Get AfterSell and Customer.io joined properly

Free30 minutesNo obligation