Connecting Medusa to Customer.io
Medusa is a Node commerce engine you extend in your own codebase, which makes the conversion event a piece of application code — and therefore something that can be tested rather than hoped for. 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 Medusa 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
Medusa to Customer.io without real emails from test orders
Send Medusa's payment captured, fulfillment, shipment and return events from subscribers keyed on the customer ID, with email, items, carrier and tracking number as attributes. Give each environment its own Customer.io workspace or credentials and fail closed when keys are missing. Let one system own receipts; use Customer.io for reviews, replenishment and cross-sells.
Customer.io is a natural fit for post-purchase messaging on Medusa, because the backend emits the events those campaigns need: payment captured, fulfillment created, shipment created, return received. Send them from subscribers keyed on the Medusa customer ID, with the email as an attribute, and include what the templates reference, such as items, carrier and tracking number, so a shipped email never renders with an empty tracking link.
The failure that hurts most here is environmental. Medusa projects run locally, in staging and in production, and the same subscriber code runs in all of them. If staging seeds or test orders post to the production Customer.io workspace with real-looking emails, a campaign sends real messages to whoever owns those addresses. Give each environment its own workspace or API credentials, and fail closed when the key is missing.
Keep order confirmation separate from marketing. Medusa stores often send the receipt through a notification provider, and if Customer.io also sends one on payment capture, customers get two. Decide which system owns transactional receipts, and point Customer.io at follow-ups that need behavior data: a review request after delivery, a replenishment nudge timed to the product, or a cross-sell based on what was bought.
Medusa → Customer.io · what breaks
Why this join usually fails — Medusa → Customer.io
- 01
The person identifier you assign never reaches Medusa
The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.
- 02
Firing on order placed rather than payment captured
They are different events and the gap between them contains every failed and pending payment. Order-placed is the easier hook and the wrong one.
- 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.
- 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.
Medusa → Customer.io · the fix
What working looks like — Medusa → 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
Medusa → Customer.io · architecture
How Medusa and Customer.io actually connect
- 1
Medusa holds the truth
Because you own the event handlers, the conversion can fire from the payment-captured event specifically rather than from whatever the frontend happened to render.
- 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
The identifier is the bridge
The person identifier you assign, captured at the visit and carried into the Medusa order.
- 4
The event source decides reliability
Send orders at payment capture, at the paid total.
- 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.
Medusa → Customer.io · normal or broken
Working vs. broken, side by side — Medusa → Customer.io
Normal, not a fault
The person identifier you assign present on the order
Sent from a Medusa subscriber on order payment capture
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 is separate from the backend, and the identifier must be attached to the cart before the order is created.
Sent from the browser
They are different events and the gap between them contains every failed and pending payment. Order-placed is the easier hook and the wrong one.
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
Medusa → Customer.io · diagnose
Diagnostic order — Medusa → Customer.io
- 01
Count orders carrying the person identifier you assign
- 02
Follow one real conversion end to end
- 03
Check which event your subscriber listens to
One line of code, and it decides whether you are counting orders or counting money.
- 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.
- 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.
Medusa → Customer.io · prove
How it gets proven — Medusa → Customer.io
Source of truth
Medusa orders by payment status, emitted from your own subscriber code.
- 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.
- Payment-captured orders reconciled against imported conversions.
Medusa → 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
- Check which event your subscriber listens to
- Confirm which workspace you are writing to before sending anything
- Read the match rate, not the success message
Checked against
Medusa orders by payment status, emitted from your own subscriber code.
Free30 minutesNo obligation
Medusa → Customer.io · when not to buy
When you don't need this — Medusa → Customer.io
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the person identifier you assign.
- If every payment method you accept is instant, the two events nearly coincide and the distinction costs more than it returns.
- If your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.
Medusa → Customer.io · what we deliver
What gets built — Medusa → Customer.io
Identifier capture into Medusa
Write the identifier into cart metadata at first touch so it is carried onto the order automatically at completion.
Event source: a Medusa subscriber on order payment capture
Send orders at payment capture, at the paid total.
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 emit their own event and should reverse.
Written guarantee
95%+ tracking accuracy
Measured against Medusa orders by payment status, emitted from your own subscriber code.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Medusa → Customer.io questions, answered
Payment captured, shipment created and return received, each with the fields your templates use, such as items and tracking number.
Use separate Customer.io workspaces or API keys per environment, and have the subscriber refuse to send when the key for its environment is missing.
Almost always because the person identifier you assign never reached the Medusa order. The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created. Measure coverage before debugging the dispatch.
Customer.io identifies people by an ID you control, with email as a common choice. Anonymous events can be sent and later merged, but a mismatch creates a second profile — and a second profile means a second copy of every campaign that person is enrolled in.
A Medusa subscriber on order payment capture. Send orders at payment capture, at the paid total.
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.
More on Medusa → Customer.io
- Stripe → Customer.ioConnecting Stripe to Customer.io
- PayPal → Customer.ioConnecting PayPal to Customer.io
- Shopify → Customer.ioConnecting Shopify to Customer.io
RELATED GUIDES
Where Medusa → Customer.io fits in the rest of your tracking
- Wix → Customer.ioConnecting Wix Stores to Customer.io
- BigCommerce → Customer.ioConnecting BigCommerce to Customer.io
- WooCommerce Subscriptions → Customer.ioConnecting WooCommerce Subscriptions to Customer.io
- Medusa → BrazeConnecting Medusa to Braze
- Medusa → Marketing CloudConnecting Medusa to Salesforce Marketing Cloud
- FashionConversion tracking for fashion brands, reported net of returns
- Ecwid → Customer.ioConnecting Ecwid to Customer.io
- PrestaShop → Customer.ioConnecting PrestaShop to Customer.io
Free · 30 min
Get Medusa and Customer.io joined properly
Free30 minutesNo obligation
