Skip to main content
Auth0 → BrazeIntegration guide

Connecting Auth0 to Braze

Auth0 issues the user identity that everything downstream joins on, which makes it the system that decides whether an anonymous visitor and a paying customer can ever be connected. 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 Auth0 user identity 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

Auth0 user ID as Braze external_id, and the account-linking trap

Set Braze's external_id to the Auth0 user_id with changeUser right after login in every SDK, never email. Before enabling Auth0 account linking, decide which ID wins and merge Braze profiles through the user merge endpoint when a link happens. Send logins from one source only, and purchases and cancellations from billing to the user track endpoint.

Braze's external_id should be the Auth0 user_id, set with changeUser immediately after login in every SDK you run. That merges the anonymous device profile the app built before login into the identified user. Email is the wrong choice, because Auth0 lets users change it and Braze would then hold two people.

The trap specific to Auth0 is account linking. If a user signs up with email and password, later logs in with Google, and you link the accounts, Auth0 keeps one primary user_id and the other disappears into the identities array. Whichever ID Braze had for the secondary account now names a profile nothing updates. Decide which ID wins before enabling linking, and merge the Braze profiles through Braze's user merge endpoint at the moment a link happens.

Do not send logins as custom events from both the SDK and a post-login Action; pick one, or every session produces two triggers for any canvas that listens to it. Billing is the source for purchases, sent to the user track endpoint with the same external_id, and a cancellation should be its own event so win-back canvases can start and upgrade canvases can stop.

Auth0 → Braze · what breaks

Why this join usually fails — Auth0 → Braze

  1. 01

    The Braze external user ID never reaches Auth0

    Login flows redirect to a hosted Auth0 domain and back, which breaks the session and can lose an identifier captured before login.

  2. 02

    The login redirect losing the acquisition source

    The visitor arrives from an ad, clicks sign in, goes to Auth0's domain and comes back as a fresh session. Without deliberate persistence the campaign that produced them is gone at exactly the moment they became identifiable.

  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.

Auth0 → Braze · the fix

What working looks like — Auth0 → Braze

  • The Braze external user ID on every account

  • 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

Auth0 → Braze · architecture

How Auth0 and Braze actually connect

  1. 1

    Auth0 holds the truth

    Auth0 holds identity, not money. Its value to measurement is that it provides the stable key which lets a pre-signup session and a later subscription be recognised as one person.

  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 Auth0 user identity.

  4. 4

    The event source decides reliability

    Send paid conversions keyed on the user identity. Signups are a stage, not revenue.

  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.

Auth0 → Braze · normal or broken

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

Normal, not a fault

  • The Braze external user ID present on the account

  • Sent from your billing system, keyed on the Auth0 user ID

  • 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

    Login flows redirect to a hosted Auth0 domain and back, which breaks the session and can lose an identifier captured before login.

  • Sent from the browser

    The visitor arrives from an ad, clicks sign in, goes to Auth0's domain and comes back as a fresh session. Without deliberate persistence the campaign that produced them is gone at exactly the moment they became identifiable.

  • 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

Auth0 → Braze · diagnose

Diagnostic order — Auth0 → Braze

  1. 01

    Count accounts carrying the Braze external user ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether the identifier survives the login round trip

    Test it on a live login. This is the single most common identity break in products that use hosted authentication.

  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.

Auth0 → Braze · prove

How it gets proven — Auth0 → Braze

Source of truth

Your billing system, joined to the Auth0 user ID.

  • The Braze external user ID confirmed present on a live account.
  • The user profile confirmed to show one event per conversion, with device and user profiles correctly merged.
  • Paid conversions reconciled per user identity against imported conversions, with identifier survival verified across login.

Auth0 → Braze · free audit

What we check in the free audit

  • Count accounts carrying the Braze external user ID
  • Follow one real conversion end to end
  • Check whether the identifier survives the login round trip
  • Send a test purchase and read the user profile's event stream
  • Read the match rate, not the success message

Checked against

Your billing system, joined to the Auth0 user ID.

Get my free conversion tracking audit

Free30 minutesNo obligation

Auth0 → Braze · when not to buy

When you don't need this — Auth0 → Braze

  • Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the Braze external user ID.
  • If your product has no authentication, there is no identity to join and session-level attribution is all there is.
  • 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.

Auth0 → Braze · what we deliver

What gets built — Auth0 → Braze

  • Identifier capture into Auth0

    Persist the identifier before the redirect and write it onto the user's app metadata at first login, so it survives every subsequent session.

  • Event source: your billing system, keyed on the Auth0 user ID

    Send paid conversions keyed on the user identity. Signups are a stage, not revenue.

  • 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

    Cancellations reverse against the same identity.

Written guarantee

95%+ tracking accuracy

Measured against Your billing system, joined to the Auth0 user ID.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Auth0 → Braze questions, answered

The Auth0 user_id. It stays stable when the email changes, and it is the key your billing system can store too.

Free · 30 min

Get Auth0 and Braze joined properly

Free30 minutesNo obligation