Connecting Firebase Authentication to Branch
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. Branch's real job is the web-to-app seam — a person clicks a link in a browser, installs the app, and something has to carry the context across an install that destroys every cookie involved. The join between them succeeds or fails on one thing: whether the Branch link click identifier and the deferred deep link payload reaches the Firebase user identity before the conversion happens, because Branch can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Branch deferred deep links stitched to the Firebase user
Call Branch's set-identity method with the Firebase UID right after auth. Read the deferred deep link payload at first open, write it to the anonymous Firebase user, then link that account at sign-up so the campaign survives. Keep personal data out of link parameters, and send purchases from one place only, since Branch forwards events to ad partners.
Many Firebase teams reach Branch because Firebase Dynamic Links was shut down in 2025 and they needed a replacement for deferred deep links. The migration is a good moment to fix identity: call Branch's set-identity method with the Firebase UID right after auth, so Branch's install record and your user record share a key.
Order of events matters. A user clicks a Branch link on the web, installs, and the app opens with the deferred link payload before anyone has signed in. Read the payload at that moment and write it to the anonymous Firebase user, then link that anonymous account at sign-up so the campaign survives. If sign-up creates a new UID instead, the payload sits on an abandoned account and the install looks unattributed. Keep email and other personal data out of link parameters entirely.
Send purchases from one place only. Branch forwards events to connected ad partners, so a purchase logged by both the SDK and your billing server goes out twice to every network, and each will report it.
Firebase Auth → Branch · what breaks
Why this join usually fails — Firebase Auth → Branch
- 01
The Branch link click identifier and the deferred deep link payload 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.
- 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.
- 03
The install that erases the campaign
Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.
- 04
Nothing reconciles afterwards
Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.
Firebase Auth → Branch · the fix
What working looks like — Firebase Auth → Branch
The Branch link click identifier and the deferred deep link payload on every account
Conversions arriving in Branch
The event is attributed to the originating link and campaign, and forwarded to any configured downstream partners.
Reconciled against the source
Firebase Authentication's own records are the reference, not either dashboard.
Firebase Auth → Branch · architecture
How Firebase Auth and Branch actually connect
- 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
Branch needs a click to match
Branch needs the link click context matched to the app open, plus the event and its revenue. Without the deferred deep link payload there is nothing to join the install to.
- 3
The identifier is the bridge
The Branch link click identifier and the deferred deep link payload, captured at the visit and carried into the Firebase user identity.
- 4
The event source decides reliability
Send paid conversions keyed on the user identity. Signups and anonymous sessions are stages, not revenue.
- 5
Deduplication at the destination
Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.
Firebase Auth → Branch · normal or broken
Working vs. broken, side by side — Firebase Auth → Branch
Normal, not a fault
The Branch link click identifier and the deferred deep link payload 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
Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.
Reconciles with the source
Branch's count and Firebase Authentication's records agree within a few percent over a closed window.
Actually broken
The Branch link click identifier and the deferred deep link payload 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
Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.
Nobody has reconciled it
The dashboard shows a number and no one has compared it to Firebase Authentication.
Firebase Auth → Branch · diagnose
Diagnostic order — Firebase Auth → Branch
- 01
Count accounts carrying the Branch link click identifier and the deferred deep link payload
- 02
Follow one real conversion end to end
- 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.
- 04
Measure your organic install share and ask whether it is plausible
An implausibly large organic share is usually broken attribution rather than genuine word of mouth.
- 05
Read the match rate, not the success message
Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.
Firebase Auth → Branch · prove
How it gets proven — Firebase Auth → Branch
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 Branch link click identifier and the deferred deep link payload confirmed present on a live account.
- Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
- Paid conversions reconciled per linked user identity against imported conversions.
Firebase Auth → Branch · free audit
What we check in the free audit
- Count accounts carrying the Branch link click identifier and the deferred deep link payload
- Follow one real conversion end to end
- Check whether anonymous accounts are linked or orphaned at signup
- Measure your organic install share and ask whether it is plausible
- Read the match rate, not the success message
Checked against
Your billing system, keyed on the Firebase user ID.
Free30 minutesNo obligation
Firebase Auth → Branch · when not to buy
When you don't need this — Firebase Auth → Branch
- If Branch 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 Branch link click identifier and the deferred deep link payload.
- If you do not use anonymous auth, the linking problem does not arise.
- If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.
Firebase Auth → Branch · what we deliver
What gets built — Firebase Auth → Branch
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 Branch
The Branch server-to-server events API, posted from your backend with the user identity and event data.
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.
From $400 · See packages
FAQ
Firebase Auth → Branch questions, answered
Branch is one common choice. When migrating, set Branch's identity to the Firebase UID so installs and users share a key.
Usually the deferred payload was stored on an anonymous user that was replaced, not linked, at sign-up.
Almost always because the Branch link click identifier and the deferred deep link payload never reached the Firebase user identity. Anonymous authentication creates users before signup, and linking an anonymous account to a real one is a step teams frequently skip. Measure coverage before debugging the dispatch.
Branch stores the click context and replays it into the app on first open, which is how a marketing campaign survives an install. That handoff is probabilistic on iOS and increasingly constrained, so the deep link data can arrive incomplete or not at all — and when it does not, the user looks organic.
Your billing system, keyed on the user ID. Send paid conversions keyed on the user identity. Signups and anonymous sessions are stages, not revenue.
Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.
More on Firebase Auth → Branch
- Firebase Auth → Google AdsConnecting Firebase Authentication to Google Ads
- Firebase Auth → MetaConnecting Firebase Authentication to Meta Conversions API
- Firebase Auth → GA4Connecting Firebase Authentication to GA4
RELATED GUIDES
Where Firebase Auth → Branch fits in the rest of your tracking
- Clerk → BranchConnecting Clerk to Branch
- Supabase Auth → BranchConnecting Supabase Auth to Branch
- Auth0 → BranchConnecting Auth0 to Branch
- Firebase Auth → AppsFlyerConnecting Firebase Authentication to AppsFlyer
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
- Okta → BranchConnecting Okta to Branch
Free · 30 min
Get Firebase Auth and Branch joined properly
Free30 minutesNo obligation
