Connecting Medusa to Braze
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. Braze is mobile-first lifecycle messaging, which means it resolves to a user rather than to a click and its most valuable channels — push and in-app — exist nowhere near a browser. The join between them succeeds or fails on one thing: whether the Braze external user ID reaches the Medusa order before the conversion happens, because Braze can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Medusa orders to Braze keyed on the customer ID
Use the Medusa customer ID as Braze's external ID, set at login, and decide how guest checkouts are handled. Post purchases from a payment-capture subscriber, one per line item with variant SKU, price and currency, plus display ID, region and promotion code. Record sent order IDs to skip retries, and send refunds as custom events.
Braze's external user ID should be your Medusa customer ID, set in the storefront and the app at login so browsing, push tokens and orders land on one profile. Guest checkouts are the gap: a guest order has an email but may not map to a Braze user with that external ID. Decide whether guests should be identified by email in Braze or left out of order-triggered campaigns, and be consistent.
Post purchases from your subscriber on payment capture, one entry per line item with the variant SKU as the product ID, the price and the order's currency. That matches how Braze reports purchases and lets campaigns target buyers of a specific product. Add order-level fields such as display ID, region and promotion code as properties, since Medusa regions often mean different currencies and catalogues.
Duplicates are the risk to plan for. If your subscriber is retried after a timeout, it can post the same purchase twice, and Braze can trigger two order confirmations or two cross-sell pushes for one order. Record which order IDs have been sent in your own database and skip repeats. Refunds and cancellations should arrive as their own custom events so post-purchase campaigns can exit the customer.
Medusa → Braze · what breaks
Why this join usually fails — Medusa → Braze
- 01
The Braze external user ID 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 sending duplicate push notifications
A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.
- 04
Nothing reconciles afterwards
Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.
Medusa → Braze · the fix
What working looks like — Medusa → Braze
The Braze external user ID on every order
Conversions arriving in Braze
The event lands on the user profile, triggers whatever campaigns depend on it, and becomes available for segmentation across push, email and in-app.
Reconciled against the source
Medusa → Braze · architecture
How Medusa and Braze 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
Braze needs a click to match
Braze needs the external user ID and a well-named event with its properties. An event with no external ID lands on an anonymous device profile that may never merge with the real user.
- 3
The identifier is the bridge
The Braze external user ID, 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
Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.
Medusa → Braze · normal or broken
Working vs. broken, side by side — Medusa → Braze
Normal, not a fault
The Braze external user ID present on the order
Sent from a Medusa subscriber on order payment capture
Deduplicated correctly
Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.
Reconciles with the source
Actually broken
The Braze external user ID 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
A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.
Nobody has reconciled it
Medusa → Braze · diagnose
Diagnostic order — Medusa → Braze
- 01
Count orders carrying the Braze external user ID
- 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
Send a test purchase and read the user profile's event stream
One event or two? Check whether the SDK is already sending the same event before adding a server source, and check that the external ID matches the signed-in user rather than creating a new profile.
- 05
Read the match rate, not the success message
Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.
Medusa → Braze · prove
How it gets proven — Medusa → Braze
Source of truth
Medusa orders by payment status, emitted from your own subscriber code.
- The Braze external user ID confirmed present on a live order.
- The user profile confirmed to show one event per conversion, with device and user profiles correctly merged.
- Payment-captured orders reconciled against imported conversions.
Medusa → Braze · free audit
What we check in the free audit
- Count orders carrying the Braze external user ID
- Follow one real conversion end to end
- Check which event your subscriber listens to
- Send a test purchase and read the user profile's event stream
- 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 → Braze · when not to buy
When you don't need this — Medusa → Braze
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Braze external user ID.
- If every payment method you accept is instant, the two events nearly coincide and the distinction costs more than it returns.
- If you have no mobile app and no push channel, Braze is a large piece of infrastructure for a job an email platform already does.
Medusa → Braze · what we deliver
What gets built — Medusa → Braze
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 Braze
The Braze user track endpoint, posted server-side from your order or billing system with the external user ID and event properties.
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 → Braze questions, answered
The Medusa customer ID, set at login in both storefront and app. Decide separately how guest checkouts are identified.
As purchases per line item with the variant SKU as product ID, posted from a subscriber on payment capture and deduplicated on order ID.
Almost always because the Braze external user ID 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.
Braze identifies people by an external_id you assign, usually your own user ID, with anonymous device profiles merged in once a user signs in. There is no click identifier at all. Getting the external ID right is the entire integration; getting it wrong fragments one customer into several profiles who each receive the same campaign.
A Medusa subscriber on order payment capture. Send orders at payment capture, at the paid total.
Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.
More on Medusa → Braze
- Stripe → BrazeConnecting Stripe to Braze
- PayPal → BrazeConnecting PayPal to Braze
- Shopify → BrazeConnecting Shopify to Braze
RELATED GUIDES
Where Medusa → Braze fits in the rest of your tracking
- Gumroad → BrazeConnecting Gumroad to Braze
- Ecwid → BrazeConnecting Ecwid to Braze
- PrestaShop → BrazeConnecting PrestaShop to Braze
- Medusa → Marketing CloudConnecting Medusa to Salesforce Marketing Cloud
- Medusa → AttentiveConnecting Medusa to Attentive
- FashionConversion tracking for fashion brands, reported net of returns
- Magento → BrazeConnecting Magento to Braze
- Shopify → BrazeConnecting Shopify to Braze
Free · 30 min
Get Medusa and Braze joined properly
Free30 minutesNo obligation
