Skip to main content
WooCommerce → BrazeIntegration guide

Connecting WooCommerce to Braze

WooCommerce keeps the order in your own database, which is both the advantage and the reason nobody has wired it properly. 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 WooCommerce 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

WooCommerce to Braze: one profile per buyer, guests included

WooCommerce guest orders lack a customer ID, so use Braze user aliases keyed on email, merged on registration, or your own stable ID, not raw email. Send the purchase from woocommerce_payment_complete with line items, refusing repeat order IDs, and send shipped, delivered and refunded separately. Without an app or push, an email platform suffices.

Braze resolves people by external_id, and WooCommerce gives you an obvious one in the customer ID, except for guest checkout. Many stores let people buy without an account, and a guest order has no customer ID. Decide before building: create Braze user aliases keyed on the guest's email and merge them into the external_id when the guest registers, or assign your own stable ID per email. Avoid using the raw email as the external_id.

Send the purchase from woocommerce_payment_complete with line items as properties, so campaigns can branch on what was bought, and keep the order ID in your sender to refuse repeats. If the brand has an app built on the same store, its SDK may already log purchases; adding a server event for those orders duplicates them and can send two push notifications about one order.

Status changes matter more in Braze than in reporting tools, because they trigger messages. Shipped, delivered and refunded should be separate events with their own triggers, and an abandoned-cart campaign must exit on the paid event, not on order creation, which also fires for orders still awaiting payment. Without an app or push channel, Braze is heavy machinery for a WooCommerce store; an email platform handles the same purchase journeys.

WooCommerce → Braze · what breaks

Why this join usually fails — WooCommerce → Braze

  1. 01

    The Braze external user ID never reaches WooCommerce

    WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.

  2. 02

    Caching and optimization plugins eat the tracking

    The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.

  3. 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.

  4. 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.

WooCommerce → Braze · the fix

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

WooCommerce → Braze · architecture

How WooCommerce and Braze actually connect

  1. 1

    WooCommerce holds the truth

    You own the database, so the truth is exactly as good as the query you write against it. Pin the status set first — whether processing, completed, or both count as a conversion changes the number by a lot and is the source of most arguments.

  2. 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. 3

    The identifier is the bridge

    The Braze external user ID, captured at the visit and carried into the WooCommerce order.

  4. 4

    The event source decides reliability

    Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.

  5. 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.

WooCommerce → Braze · normal or broken

Working vs. broken, side by side — WooCommerce → Braze

Normal, not a fault

  • The Braze external user ID present on the order

  • Sent from the woocommerce_payment_complete hook

  • 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

    WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.

  • Sent from the browser

    The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.

  • 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

WooCommerce → Braze · diagnose

Diagnostic order — WooCommerce → Braze

  1. 01

    Count orders carrying the Braze external user ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Check order meta on ten recent orders

    Directly in the database or with a meta viewer. Then disable page caching for the checkout path and see whether coverage changes — if it does, caching is your cause.

  4. 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.

  5. 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.

WooCommerce → Braze · prove

How it gets proven — WooCommerce → Braze

Source of truth

WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and 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 meta confirmed present on orders placed while full page caching was active.

WooCommerce → 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 order meta on ten recent orders
  • Send a test purchase and read the user profile's event stream
  • Read the match rate, not the success message

Checked against

WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.

Get my free conversion tracking audit

Free30 minutesNo obligation

WooCommerce → Braze · when not to buy

When you don't need this — WooCommerce → Braze

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Braze external user ID.
  • If you run a small store with no caching layer and a single free plugin already reporting accurately, leave it alone.
  • 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.

WooCommerce → Braze · what we deliver

What gets built — WooCommerce → Braze

  • Identifier capture into WooCommerce

    Capture the click identifier and persist it as order meta on the order object with a small snippet in the theme's functions or a purpose-built plugin. Order meta lives in your own database, so it survives caching, plugin conflicts and the customer's browser.

  • Event source: the woocommerce_payment_complete hook

    Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.

  • 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

    The refund hooks carry the order ID, so reversals are straightforward once the identifier is on the order.

Written guarantee

95%+ tracking accuracy

Measured against WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

WooCommerce → Braze questions, answered

The WooCommerce customer ID works for registered buyers, but guest orders have none. Use user aliases for guests and merge them on registration, or assign your own stable ID per email.

Free · 30 min

Get WooCommerce and Braze joined properly

Free30 minutesNo obligation