Skip to main content
Swell → Customer.ioIntegration guide

Connecting Swell to Customer.io

Swell is headless commerce with subscriptions built in, which puts two conversion types in one system: a one-off order and a recurring plan that will bill again next month. 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 Swell 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

Swell webhooks to Customer.io without test sends

Swell's test environment sends webhooks that look real, so route test orders to a separate Customer.io workspace or drop them. Identify people by one ID, the Swell account ID or email, everywhere. Send payment failed, card expiring, paused and canceled as events with plan, interval and next billing date, keeping renewals out of the purchase event.

Customer.io keys people on an ID you choose, and for a Swell store the choice is between the Swell account ID and the email. Pick one and use it everywhere, including in any front-end snippet on the storefront, because a person identified by email on the site and by account ID from the webhook becomes two people in two copies of every campaign.

The risk specific to this pair is test traffic. Swell keeps separate test and live environments, and a webhook from a test order looks exactly like a real one. If both environments point at the same Customer.io workspace, a developer testing checkout fires real order confirmations and win-back emails at real addresses. Route test-environment webhooks to a separate workspace, or drop them at your endpoint before they reach Customer.io.

Subscriptions are where the campaigns earn money: payment failed, card expiring, paused, canceled. Send each as its own event with the attributes the message templates reference, such as plan name, interval and next billing date, because Customer.io will trigger on an event with a missing attribute and send the email with a blank where the product should be. Keep renewals out of the purchase event so a monthly charge does not re-enter the post-purchase sequence.

Swell → Customer.io · what breaks

Why this join usually fails — Swell → Customer.io

  1. 01

    The person identifier you assign never reaches Swell

    Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.

  2. 02

    Renewals indistinguishable from new orders

    In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.

  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.

Swell → Customer.io · the fix

What working looks like — Swell → 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

Swell → Customer.io · architecture

How Swell and Customer.io actually connect

  1. 1

    Swell holds the truth

    A subscription's first payment and its renewals are the same object type in most exports. Sending both means one acquisition produces a conversion every billing cycle.

  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 Swell order.

  4. 4

    The event source decides reliability

    Send one-off orders and first subscription payments. Renewals belong in a retention figure.

  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.

Swell → Customer.io · normal or broken

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

Normal, not a fault

  • The person identifier you assign present on the order

  • Sent from the Swell order and subscription webhooks

  • 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

    Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.

  • Sent from the browser

    In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.

  • 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

Swell → Customer.io · diagnose

Diagnostic order — Swell → Customer.io

  1. 01

    Count orders carrying the person identifier you assign

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare monthly conversion count against new customer count

    If conversions exceed new customers, renewals are being counted as acquisition.

  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.

Swell → Customer.io · prove

How it gets proven — Swell → Customer.io

Source of truth

Swell orders and subscriptions by date, held apart from each other.

  • 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.
  • First payments reconciled against imported conversions, with renewals reported separately.

Swell → 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
  • Compare monthly conversion count against new customer count
  • Confirm which workspace you are writing to before sending anything
  • Read the match rate, not the success message

Checked against

Swell orders and subscriptions by date, held apart from each other.

Get my free conversion tracking audit

Free30 minutesNo obligation

Swell → Customer.io · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the person identifier you assign.
  • A store selling only one-off products does not have the renewal problem.
  • If your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.

Swell → Customer.io · what we deliver

What gets built — Swell → Customer.io

  • Identifier capture into Swell

    Write the identifier into customer metadata so the first payment can be attributed and renewals can be recognised as renewals.

  • Event source: the Swell order and subscription webhooks

    Send one-off orders and first subscription payments. Renewals belong in a retention figure.

  • 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 and cancellations inside the first period reverse.

Written guarantee

95%+ tracking accuracy

Measured against Swell orders and subscriptions by date, held apart from each other.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Swell → Customer.io questions, answered

Both Swell environments are likely posting to the same workspace. Route test webhooks to a separate workspace or filter them out at your endpoint.

Free · 30 min

Get Swell and Customer.io joined properly

Free30 minutesNo obligation