Connecting Magento to Braze
Magento is self-hosted and endlessly customisable, which means every installation is different and full-page caching is always in the way. 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 Magento 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
Magento to Braze: guest checkout splits the profile
Send Magento purchases to Braze from the order placement observer with external_id set to the customer entity ID and the increment ID in properties. Decide the guest rule first: a user alias keyed on email merged at registration, or an email lookup attaching the order to an existing customer. Map store views to language and currency; send refunds.
Braze is keyed on external_id, and the natural choice on Magento is the customer entity ID. Guest checkout breaks that: a guest order has no customer ID, only an email on the order. Send it without an external_id and Braze creates a profile that the same person's app account never merges with, so the app user gets "come back and buy" pushes for something they already bought on the web as a guest.
Decide the guest rule before building. Either send guest orders under a user alias keyed on email and merge when the person registers, or look up an existing customer by email in the observer and attach the order to that customer's ID. Magento lets the same email exist as a registered customer and as a guest on separate orders, so the lookup is necessary, not optional.
Fire the purchase from the order placement observer with the increment ID in its properties so duplicates can be spotted, and stop the app SDK logging the same purchase for app orders unless one copy is discarded by design. Map store views to the profile's language and currency, since multi-store Magento often runs several of each. Credit memos should send a refund event that pulls the customer out of post-purchase pushes for a returned item.
Magento → Braze · what breaks
Why this join usually fails — Magento → Braze
- 01
The Braze external user ID never reaches Magento
Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.
- 02
Full-page cache between the visitor and your code
The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.
- 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.
Magento → Braze · the fix
What working looks like — Magento → 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
Magento → Braze · architecture
How Magento and Braze actually connect
- 1
Magento holds the truth
You own the database, so the truth is as good as the query. Pin down which order statuses count as revenue — processing, complete, or both — because that choice moves the number substantially.
- 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 Magento order.
- 4
The event source decides reliability
Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.
- 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.
Magento → Braze · normal or broken
Working vs. broken, side by side — Magento → Braze
Normal, not a fault
The Braze external user ID present on the order
Sent from the Magento order placement observer
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
Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.
Sent from the browser
The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.
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
Magento → Braze · diagnose
Diagnostic order — Magento → Braze
- 01
Count orders carrying the Braze external user ID
- 02
Follow one real conversion end to end
- 03
Place a test order as an anonymous visitor through cache
Not as an admin, which bypasses it. If the order data is missing on the cached path, caching is your cause.
- 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.
Magento → Braze · prove
How it gets proven — Magento → Braze
Source of truth
Magento's sales order records in your own database, for the same window and order status set.
- 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.
- Order data confirmed populated on an order placed through a fully warmed cache.
Magento → 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
- Place a test order as an anonymous visitor through cache
- Send a test purchase and read the user profile's event stream
- Read the match rate, not the success message
Checked against
Magento's sales order records in your own database, for the same window and order status set.
Free30 minutesNo obligation
Magento → Braze · when not to buy
When you don't need this — Magento → Braze
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Braze external user ID.
- If your Magento build has heavy customisation by another team, scope their availability first — the build is usually blocked there.
- 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.
Magento → Braze · what we deliver
What gets built — Magento → Braze
Identifier capture into Magento
Capture the identifier and persist it as order data through an observer on order placement, server-side, so it never depends on what the cache served.
Event source: the Magento order placement observer
Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.
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
Credit memos are recorded against the original order and should reduce the reported figure.
Written guarantee
95%+ tracking accuracy
Measured against Magento's sales order records in your own database, for the same window and order status set.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Magento → Braze questions, answered
Use an alias keyed on email or match the email to an existing Magento customer in the observer, so guest orders land on the profile the app uses.
Usually guest orders sent without an external_id, or app and web using different identifiers for the same person.
Almost always because the Braze external user ID never reached the Magento order. Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one. 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.
The Magento order placement observer. Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.
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 Magento → Braze
- Magento → Google AdsConnecting Magento to Google Ads
- Magento → MetaConnecting Magento to Meta Conversions API
- Magento → GA4Connecting Magento to GA4
RELATED GUIDES
Where Magento → Braze fits in the rest of your tracking
- Shopify POS → BrazeConnecting Shopify POS to Braze
- Swell → BrazeConnecting Swell to Braze
- Checkout Extensibility → BrazeConnecting Shopify Checkout Extensibility to Braze
- Magento → Marketing CloudConnecting Magento to Salesforce Marketing Cloud
- Magento → KlaviyoConnecting Magento to Klaviyo
- Jewelry ecommerceConversion tracking for jewelry ecommerce, measured in settled orders
- nopCommerce → BrazeConnecting nopCommerce to Braze
- Wix → BrazeConnecting Wix Stores to Braze
Free · 30 min
Get Magento and Braze joined properly
Free30 minutesNo obligation
