Skip to main content
Firebase Auth → BrazeIntegration guide

Connecting Firebase Authentication to Braze

Firebase Auth is usually the identity layer in a mobile-first product, which means the user ID it issues is the only thing connecting a web visit to an in-app purchase. 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 Firebase 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

Braze external ID from the Firebase UID, set after real sign-in

Call Braze's changeUser with the Firebase UID on every sign-in, but set the external ID only for non-anonymous users or after linking succeeds, to avoid duplicate profiles. Send purchases and renewals from billing through Braze's user track endpoint against the UID, choosing SDK or server. Firebase account deletion should trigger a Braze user deletion.

Braze's external user ID and the Firebase UID are a natural match: both are meant to be stable per person across devices. Call Braze's changeUser with the UID on every sign-in, on web and app, and Braze merges the device's anonymous activity into the identified profile.

The catch is anonymous Firebase users. Their UID is real and stable, so it is tempting to set it as the external ID at launch. Do that, and a user who later signs in to an existing account gets a different UID, leaving a second Braze profile holding the device's push token and a duplicate of every campaign. Set the external ID only for non-anonymous users, or only after linking succeeds, and let Braze's own anonymous profile cover the time before sign-up.

Purchases and renewals come from billing, server-side through Braze's user track endpoint against the UID; if the app SDK also logs purchases, pick one. Account deletion in Firebase should trigger a Braze user deletion so you are not messaging an identity that no longer exists.

Firebase Auth → Braze · what breaks

Why this join usually fails — Firebase Auth → Braze

  1. 01

    The Braze external user ID never reaches Firebase Auth

    Anonymous authentication creates users before signup, and linking an anonymous account to a real one is a step teams frequently skip.

  2. 02

    Anonymous accounts never linked to real ones

    Firebase's anonymous auth is convenient and creates a separate user. If it is not linked at signup, the pre-signup activity and the paying customer are two different people in every downstream system.

  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.

Firebase Auth → Braze · the fix

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

    Firebase Authentication's own records are the reference, not either dashboard.

Firebase Auth → Braze · architecture

How Firebase Auth and Braze actually connect

  1. 1

    Firebase Authentication holds the truth

    Firebase holds identity, not revenue. Its value to measurement is that it gives a stable key that survives the web-to-app transition where every cookie dies.

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

  4. 4

    The event source decides reliability

    Send paid conversions keyed on the user identity. Signups and anonymous sessions are stages, 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.

Firebase Auth → Braze · normal or broken

Working vs. broken, side by side — Firebase Auth → Braze

Normal, not a fault

  • The Braze external user ID present on the account

    Visible on the record itself in Firebase Authentication, not merely captured somewhere on the site.

  • Sent from your billing system, keyed on the 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

    Braze's count and Firebase Authentication's records agree within a few percent over a closed window.

Actually broken

  • The Braze external user ID missing on most records

    Anonymous authentication creates users before signup, and linking an anonymous account to a real one is a step teams frequently skip.

  • Sent from the browser

    Firebase's anonymous auth is convenient and creates a separate user. If it is not linked at signup, the pre-signup activity and the paying customer are two different people in every downstream system.

  • 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

    The dashboard shows a number and no one has compared it to Firebase Authentication.

Firebase Auth → Braze · diagnose

Diagnostic order — Firebase Auth → Braze

  1. 01

    Count accounts carrying the Braze external user ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether anonymous accounts are linked or orphaned at signup

    Orphaned anonymous users are the most common Firebase identity failure and they silently break every cross-signup funnel.

  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.

Firebase Auth → Braze · prove

How it gets proven — Firebase Auth → Braze

Against Firebase Authentication's own records, not against either platform's dashboard.

Source of truth

Your billing system, keyed on the Firebase 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 linked user identity against imported conversions.

Firebase Auth → 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 anonymous accounts are linked or orphaned at signup
  • 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, keyed on the Firebase user ID.

Get my free conversion tracking audit

Free30 minutesNo obligation

Firebase Auth → Braze · when not to buy

When you don't need this — Firebase Auth → Braze

  • If Braze already reports conversions that reconcile against Firebase Authentication's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the Braze external user ID.
  • If you do not use anonymous auth, the linking problem does not arise.
  • 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.

Firebase Auth → Braze · what we deliver

What gets built — Firebase Auth → Braze

  • Identifier capture into Firebase Auth

    Capture the identifier on the web, write it to custom claims or your own user document at first auth, and link anonymous accounts rather than creating duplicates.

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

    Send paid conversions keyed on the user identity. Signups and anonymous sessions are stages, 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, keyed on the Firebase user ID.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Firebase Auth → Braze questions, answered

Yes, for signed-in users. Avoid setting it for anonymous users unless linking is reliable, or you will create duplicate profiles.

Free · 30 min

Get Firebase Auth and Braze joined properly

Free30 minutesNo obligation