Connecting Firebase Authentication to Attentive
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. Attentive is SMS, where the identifier is a phone number, the consent rules are legal rather than advisory, and a mistake reaches the customer's pocket within seconds. The join between them succeeds or fails on one thing: whether the subscriber's phone number reaches the Firebase user identity before the conversion happens, because Attentive can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Firebase phone sign-in is not SMS consent for Attentive
Verifying a phone through Firebase sign-in is not marketing consent, so subscribe users only through Attentive's flows or a separately worded checkbox. Join on the E.164 phone Firebase stores and record the Firebase UID as a subscriber attribute so billing purchase events resolve correctly. Push phone changes to Attentive and require fresh consent.
Firebase phone authentication verifies a number with a one-time code, which makes it tempting to treat every phone sign-in as an Attentive subscriber. It is not one. Verifying a number to log in is not consent to marketing texts, and Attentive requires its own opt-in for that. Subscribe users only through Attentive's sign-up flows or an explicit, separately worded checkbox.
Where both exist, join them on the E.164 phone number Firebase stores, and record the Firebase UID as a subscriber attribute in Attentive so purchase events from your billing system resolve to the right subscriber. Users who sign in with email or Google have no phone on the Firebase record; for them, Attentive has to collect the number itself.
The common failure is a changed number. A user updates their phone in the app, Firebase holds the new one, and Attentive keeps texting the old one, which may now belong to someone else. Push phone changes from Firebase to Attentive and treat a changed number as needing fresh consent before the next campaign sends.
Firebase Auth → Attentive · what breaks
Why this join usually fails — Firebase Auth → Attentive
- 01
The subscriber's phone number 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
Consent state treated as a tracking detail rather than a legal one
Sending an event is not the same as being allowed to message the person it describes. US SMS marketing is governed by express written consent requirements with statutory damages per message, and "the integration sent it" is not a defence. Consent state has to be checked at send time, in Attentive, not inferred from the fact that an event arrived.
- 04
Nothing reconciles afterwards
Attentive shows the event on the subscriber record and the journey it triggered. Check the subscriber's consent status alongside, because that is the field that decides whether anything should have happened.
Firebase Auth → Attentive · the fix
What working looks like — Firebase Auth → Attentive
The subscriber's phone number on every account
Conversions arriving in Attentive
The event lands on the subscriber, triggers the journeys that depend on it, and becomes available for segmentation.
Reconciled against the source
Firebase Authentication's own records are the reference, not either dashboard.
Firebase Auth → Attentive · architecture
How Firebase Auth and Attentive 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
Attentive needs a click to match
Attentive needs the subscriber's phone number, the event name and its properties. It also needs the subscriber to have consented — an event about someone who never opted in cannot legally be messaged, whatever the event says.
- 3
The identifier is the bridge
The subscriber's phone number, 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
Attentive does not deduplicate for you. A purchase sent twice can trigger a journey twice, and the customer receives two texts. Unlike an email, a duplicate SMS costs you money per send and irritates the recipient measurably more.
Firebase Auth → Attentive · normal or broken
Working vs. broken, side by side — Firebase Auth → Attentive
Normal, not a fault
The subscriber's phone number 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
Attentive does not deduplicate for you. A purchase sent twice can trigger a journey twice, and the customer receives two texts. Unlike an email, a duplicate SMS costs you money per send and irritates the recipient measurably more.
Reconciles with the source
Attentive's count and Firebase Authentication's records agree within a few percent over a closed window.
Actually broken
The subscriber's phone number 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
Sending an event is not the same as being allowed to message the person it describes. US SMS marketing is governed by express written consent requirements with statutory damages per message, and "the integration sent it" is not a defence. Consent state has to be checked at send time, in Attentive, not inferred from the fact that an event arrived.
Nobody has reconciled it
The dashboard shows a number and no one has compared it to Firebase Authentication.
Firebase Auth → Attentive · diagnose
Diagnostic order — Firebase Auth → Attentive
- 01
Count accounts carrying the subscriber's phone number
- 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
Verify that events for non-consented customers cannot trigger a send
Check the journey's entry conditions, not the event pipeline. The pipeline will happily deliver an event about someone who never opted in; the journey is what must refuse to act on it.
- 05
Read the match rate, not the success message
Attentive shows the event on the subscriber record and the journey it triggered. Check the subscriber's consent status alongside, because that is the field that decides whether anything should have happened.
Firebase Auth → Attentive · prove
How it gets proven — Firebase Auth → Attentive
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 subscriber's phone number confirmed present on a live account.
- Events confirmed on subscriber records with consent state verified, and a test proving a non-consented profile does not trigger a send.
- Paid conversions reconciled per linked user identity against imported conversions.
Firebase Auth → Attentive · free audit
What we check in the free audit
- Count accounts carrying the subscriber's phone number
- Follow one real conversion end to end
- Check whether anonymous accounts are linked or orphaned at signup
- Verify that events for non-consented customers cannot trigger a send
- Read the match rate, not the success message
Checked against
Your billing system, keyed on the Firebase user ID.
Free30 minutesNo obligation
Firebase Auth → Attentive · when not to buy
When you don't need this — Firebase Auth → Attentive
- If Attentive 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 subscriber's phone number.
- If you do not use anonymous auth, the linking problem does not arise.
- If you do not have a consented SMS list, the integration is the least of the work. Building the list compliantly comes first, and no event pipeline substitutes for it.
Firebase Auth → Attentive · what we deliver
What gets built — Firebase Auth → Attentive
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 Attentive
The Attentive events API, posted server-side from your order system with the subscriber's phone number and the 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.
From $400 · See packages
FAQ
Firebase Auth → Attentive questions, answered
Not automatically. A login code is not marketing consent; subscribers must opt in through Attentive's flows or an explicit checkbox.
Match on the E.164 phone number and store the Firebase UID as a subscriber attribute so billing events resolve correctly.
Almost always because the subscriber's phone number 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.
Attentive resolves to a subscriber by phone number. There is no click identifier and no cookie in the messaging channel at all. The phone number is also regulated personal data under US telemarketing rules, which means the identifier itself carries obligations that a gclid does not.
Your billing system, keyed on the user ID. Send paid conversions keyed on the user identity. Signups and anonymous sessions are stages, not revenue.
Attentive shows the event on the subscriber record and the journey it triggered. Check the subscriber's consent status alongside, because that is the field that decides whether anything should have happened.
More on Firebase Auth → Attentive
- 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 → Attentive fits in the rest of your tracking
- Clerk → AttentiveConnecting Clerk to Attentive
- Supabase Auth → AttentiveConnecting Supabase Auth to Attentive
- Okta → AttentiveConnecting Okta to Attentive
- Firebase Auth → KlaviyoConnecting Firebase Authentication to Klaviyo
- Firebase Auth → IterableConnecting Firebase Authentication to Iterable
- B2BConversion tracking for B2B, from first touch to closed-won
- Auth0 → AttentiveConnecting Auth0 to Attentive
Free · 30 min
Get Firebase Auth and Attentive joined properly
Free30 minutesNo obligation
