Connecting Medusa to Klaviyo
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. Klaviyo drives the flows, so an event it never receives is a flow that never triggers and revenue that never happens. The join between them succeeds or fails on one thing: whether the profile identity — email or phone reaches the Medusa order before the conversion happens, because Klaviyo can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Medusa to Klaviyo: Placed Order from your own subscriber
Write a payment-capture subscriber, or a version-matched community plugin, that sends Placed Order with paid total, items and order ID, plus Ordered Product per line, with unique_id from the Medusa order ID. Send Started Checkout with a cart-restoring URL. Choose one system for confirmations, and send refunds as their own metric.
Klaviyo's prebuilt ecommerce flows expect metrics such as Started Checkout, Placed Order and Ordered Product with specific properties, and Medusa does not send them unless you write it or install a community plugin that fits your Medusa version (check before installing). Writing it yourself is a short subscriber: on payment capture, send Placed Order keyed on the order's email with the paid total, items and order ID, plus one Ordered Product per line so product-level flows and segments work.
Set Klaviyo's unique_id on each event to the Medusa order ID (or order ID plus line ID for Ordered Product), so a retried subscriber does not write the same order twice; confirm the behavior in Klaviyo's Events API docs. Abandoned-checkout flows need Started Checkout sent when the cart gains an email, with a URL that restores that cart, which on Medusa means a storefront route that rehydrates by cart ID. Without that URL, the email's button lands on an empty cart.
Decide who sends the order confirmation. Medusa's notification setup may already email customers; if Klaviyo's Placed Order flow also sends one, customers get two. Pick one. Send refunds as their own metric with the refunded amount so Klaviyo's revenue figures and win-back segments reflect money that stayed.
Medusa → Klaviyo · what breaks
Why this join usually fails — Medusa → Klaviyo
- 01
The profile identity — email or phone 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
Duplicate events trigger duplicate emails
Unlike an ad platform, a duplicate here is visible to your customer. Two order confirmations for one order is a support ticket, not a reporting discrepancy.
- 04
Nothing reconciles afterwards
Klaviyo shows the event on the profile's activity feed within moments. Check the profile, not the API response — and specifically check whether the same metric is arriving twice from two sources.
Medusa → Klaviyo · the fix
What working looks like — Medusa → Klaviyo
The profile identity — email or phone on every order
Conversions arriving in Klaviyo
The event lands on the profile, triggers the flows that depend on it, and becomes available for segmentation.
Reconciled against the source
Medusa → Klaviyo · architecture
How Medusa and Klaviyo 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
Klaviyo needs a click to match
Klaviyo needs to resolve the event to a profile. Given an email it will create or update; given nothing it discards the event.
- 3
The identifier is the bridge
The profile identity — email or phone, 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
Klaviyo does not deduplicate events for you. Sending the same purchase from both the store integration and your own server produces two events, two flow triggers and potentially two emails to a customer who bought once.
Medusa → Klaviyo · normal or broken
Working vs. broken, side by side — Medusa → Klaviyo
Normal, not a fault
The profile identity — email or phone present on the order
Sent from a Medusa subscriber on order payment capture
Deduplicated correctly
Klaviyo does not deduplicate events for you. Sending the same purchase from both the store integration and your own server produces two events, two flow triggers and potentially two emails to a customer who bought once.
Reconciles with the source
Actually broken
The profile identity — email or phone 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
Unlike an ad platform, a duplicate here is visible to your customer. Two order confirmations for one order is a support ticket, not a reporting discrepancy.
Nobody has reconciled it
Medusa → Klaviyo · diagnose
Diagnostic order — Medusa → Klaviyo
- 01
Count orders carrying the profile identity — email or phone
- 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
Open the profile's activity feed after a test event
One event or two? Check whether the native store integration is already sending the same metric before you add a second source.
- 05
Read the match rate, not the success message
Klaviyo shows the event on the profile's activity feed within moments. Check the profile, not the API response — and specifically check whether the same metric is arriving twice from two sources.
Medusa → Klaviyo · prove
How it gets proven — Medusa → Klaviyo
Source of truth
Medusa orders by payment status, emitted from your own subscriber code.
- The profile identity — email or phone confirmed present on a live order.
- The profile activity feed confirmed to show one event per conversion, with no overlap against the native integration.
- Payment-captured orders reconciled against imported conversions.
Medusa → Klaviyo · free audit
What we check in the free audit
- Count orders carrying the profile identity — email or phone
- Follow one real conversion end to end
- Check which event your subscriber listens to
- Open the profile's activity feed after a test event
- 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 → Klaviyo · when not to buy
When you don't need this — Medusa → Klaviyo
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the profile identity — email or phone.
- If every payment method you accept is instant, the two events nearly coincide and the distinction costs more than it returns.
- If Klaviyo's native store integration already sends the events your flows need, adding a second source creates duplicates rather than value.
Medusa → Klaviyo · what we deliver
What gets built — Medusa → Klaviyo
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 Klaviyo
The Klaviyo Events API with the profile identifiers and the event properties, sent server-side.
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 → Klaviyo questions, answered
Check the Medusa community for one that supports your version. A subscriber that calls Klaviyo's Events API on payment capture is also a small, testable piece of code.
The Started Checkout event needs a URL that restores the cart by its ID. Build a storefront route that rehydrates the cart and use it in the event.
Almost always because the profile identity — email or phone 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.
Klaviyo is identity-first: it resolves to a profile by email address or phone number. The __kla_id cookie ties an anonymous browser to a profile once identified. Events without any identifier are dropped, and events with a new email create a new profile rather than updating an existing one — which quietly fragments your list.
A Medusa subscriber on order payment capture. Send orders at payment capture, at the paid total.
Klaviyo shows the event on the profile's activity feed within moments. Check the profile, not the API response — and specifically check whether the same metric is arriving twice from two sources.
More on Medusa → Klaviyo
- Shopify → KlaviyoConnecting Shopify to Klaviyo
- Klaviyo → MetaConnecting Klaviyo to Meta Conversions API
- Klaviyo → Google AdsConnecting Klaviyo to Google Ads
RELATED GUIDES
Where Medusa → Klaviyo fits in the rest of your tracking
- Shopify → KlaviyoConnecting Shopify to Klaviyo
- BigCommerce → KlaviyoConnecting BigCommerce to Klaviyo
- OpenCart → KlaviyoConnecting OpenCart to Klaviyo
- Medusa → AttentiveConnecting Medusa to Attentive
- Medusa → Customer.ioConnecting Medusa to Customer.io
- FashionConversion tracking for fashion brands, reported net of returns
- Checkout Extensibility → KlaviyoConnecting Shopify Checkout Extensibility to Klaviyo
- Saleor → KlaviyoConnecting Saleor to Klaviyo
Free · 30 min
Get Medusa and Klaviyo joined properly
Free30 minutesNo obligation
