Skip to main content
Saleor → Customer.ioIntegration guide

Connecting Saleor to Customer.io

Saleor is headless and GraphQL-first, which means the storefront and the commerce engine are separate applications and the identifier has to survive a boundary that traditional platforms do not have. 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 Saleor 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

Saleor to Customer.io: don't duplicate Saleor's own order emails

Decide who owns which message first: Saleor usually keeps order confirmations, Customer.io handles post-purchase, replenishment and win-back. Identify people by Saleor user ID with email as an attribute, and plan for guest orders. Send the paid order from the webhook with line items, total and currency requested in your subscription query, and keep staging pointed at a test workspace.

Saleor already sends transactional email, such as order confirmations, through its own email configuration or app. Before wiring Saleor orders into Customer.io, decide who owns which message. If Customer.io campaigns also trigger on the purchase event with a confirmation template, every customer receives two confirmations. A common sane split is that Saleor keeps transactional email and Customer.io handles post-purchase, replenishment and win-back.

Identify people in Customer.io by Saleor user ID where one exists, with email as an attribute, and decide how guest orders, which carry only an email, are identified. Send the purchase from the order webhook once fully paid, with the line items, total and currency the campaign conditions reference; Saleor's GraphQL webhook payloads are defined by the subscription query you write, so a field you forgot to request arrives empty and the email renders with a blank.

Use separate environments for testing. Point a staging Saleor's webhooks at a test Customer.io workspace, and never at production. A staging order with a real colleague's email, sent to the live workspace, will send a real post-purchase message that cannot be recalled.

Saleor → Customer.io · what breaks

Why this join usually fails — Saleor → Customer.io

  1. 01

    The person identifier you assign never reaches Saleor

    The storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there.

  2. 02

    A storefront that knows the click and an API that holds the money

    Headless architectures split exactly the two things attribution needs to join. If the storefront does not deliberately write the identifier into order metadata, the connection does not exist anywhere.

  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.

Saleor → Customer.io · the fix

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

Saleor → Customer.io · architecture

How Saleor and Customer.io actually connect

  1. 1

    Saleor holds the truth

    In a headless setup the storefront is one of several possible clients. Attributing from it means measuring one channel of a system designed to have many.

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

  4. 4

    The event source decides reliability

    Send fully paid orders at their net total, sourced from the API.

  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.

Saleor → Customer.io · normal or broken

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

Normal, not a fault

  • The person identifier you assign present on the order

  • Sent from the Saleor 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

    The storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there.

  • Sent from the browser

    Headless architectures split exactly the two things attribution needs to join. If the storefront does not deliberately write the identifier into order metadata, the connection does not exist anywhere.

  • 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

Saleor → Customer.io · diagnose

Diagnostic order — Saleor → Customer.io

  1. 01

    Count orders carrying the person identifier you assign

  2. 02

    Follow one real conversion end to end

  3. 03

    Inspect order metadata on a live order for the identifier

    Either it is on the order or the attribution is guesswork. There is no middle state.

  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.

Saleor → Customer.io · prove

How it gets proven — Saleor → Customer.io

Source of truth

Saleor orders by payment status, read from the API rather than inferred from the storefront.

  • 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.
  • Paid orders reconciled from the API against imported conversions.

Saleor → 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
  • Inspect order metadata on a live order for the identifier
  • Confirm which workspace you are writing to before sending anything
  • Read the match rate, not the success message

Checked against

Saleor orders by payment status, read from the API rather than inferred from the storefront.

Get my free conversion tracking audit

Free30 minutesNo obligation

Saleor → Customer.io · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the person identifier you assign.
  • If you run a single storefront and no other clients, the added complexity of headless attribution buys you nothing over a standard integration.
  • If your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.

Saleor → Customer.io · what we deliver

What gets built — Saleor → Customer.io

  • Identifier capture into Saleor

    Capture in the storefront and write the identifier into order metadata through the API at checkout, so it lives on the order rather than in a session.

  • Event source: the Saleor order webhook

    Send fully paid orders at their net total, sourced from the API.

  • 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 reverse.

Written guarantee

95%+ tracking accuracy

Measured against Saleor orders by payment status, read from the API rather than inferred from the storefront.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Saleor → Customer.io questions, answered

One of them. Usually Saleor keeps transactional confirmations and Customer.io handles behavioral follow-ups, so nobody gets two confirmations.

Free · 30 min

Get Saleor and Customer.io joined properly

Free30 minutesNo obligation