Connecting Firebase Authentication to Meta Conversions API
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. Meta's pixel loses a large share of conversions to Safari, ad blockers and iOS, and the Conversions API exists because of it. The join between them succeeds or fails on one thing: whether the fbc and fbp values reaches the Firebase user identity before the conversion happens, because Meta can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Firebase Auth to Meta CAPI: external_id from the uid, app or web
Send the hashed Firebase uid as external_id on every Meta server event, pixel and SDK event, and store fbc on the user document at first auth so in-app purchases carry it. Fire CompleteRegistration only for real credentials or at the link step, and Subscribe or Purchase from billing with event_id from the transaction. Set action_source correctly for app versus web.
For Meta, the Firebase uid is useful as external_id: send it hashed on every server event, and send the same value from the pixel and the Meta SDK, so Meta can connect web and app activity for one person. It does not replace fbc and fbp. The fbclid from the ad click has to be turned into fbc on the web, then stored on the user document or custom claims at first auth so the in-app purchase can carry it later.
Decide the action_source per event. A subscription bought in the app is an app event, and Meta's Conversions API for app events expects app-specific fields that a web event does not; check Meta's current requirements before sending. A subscription bought on the web after a Firebase sign-in is a website event with the seven-day event_time limit. Mixing them up is why app subscriptions sent as website events show odd match quality.
Use CompleteRegistration for the account creation, and only for a real credential, not an anonymous sign-in, or Meta optimizes toward people who opened the app once. If anonymous sessions are later linked, fire CompleteRegistration at the link step. Subscribe or Purchase follows from billing, with event_id built from the billing transaction so the SDK event and the server event deduplicate.
Firebase Auth → Meta · what breaks
Why this join usually fails — Firebase Auth → Meta
- 01
The fbc and fbp values 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
Double counting from broken deduplication
Server and browser both fire, the event_id does not match, and Meta counts two purchases. Reported ROAS goes up, the business does not, and it can run for months before anyone reconciles against the store.
- 04
Nothing reconciles afterwards
Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.
Firebase Auth → Meta · the fix
What working looks like — Firebase Auth → Meta
The fbc and fbp values on every account
Conversions arriving in Meta
Events appear in Events Manager with an Event Match Quality score, deduplicated against the pixel, and become usable for optimization and attribution.
Reconciled against the source
Firebase Authentication's own records are the reference, not either dashboard.
Firebase Auth → Meta · architecture
How Firebase Auth and Meta 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
Meta Conversions API needs a click to match
Meta matches server events to people using whatever identifiers you send, hashed with SHA-256 where required. There is no single mandatory key, which is why quality varies so much between implementations — a poorly matched event is accepted, reported, and worth much less than it appears.
- 3
The identifier is the bridge
The fbc and fbp values, 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
Meta deduplicates on the pair of event_name and event_id. The browser pixel and the server event must send the same event_id for the same conversion, within the deduplication window. Get this wrong and every purchase counts twice — which is by far the most common Conversions API failure and it inflates reported ROAS rather than reducing it.
Firebase Auth → Meta · normal or broken
Working vs. broken, side by side — Firebase Auth → Meta
Normal, not a fault
The fbc and fbp values 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
Meta deduplicates on the pair of event_name and event_id. The browser pixel and the server event must send the same event_id for the same conversion, within the deduplication window. Get this wrong and every purchase counts twice — which is by far the most common Conversions API failure and it inflates reported ROAS rather than reducing it.
Reconciles with the source
Meta's count and Firebase Authentication's records agree within a few percent over a closed window.
Actually broken
The fbc and fbp values 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
Server and browser both fire, the event_id does not match, and Meta counts two purchases. Reported ROAS goes up, the business does not, and it can run for months before anyone reconciles against the store.
Nobody has reconciled it
The dashboard shows a number and no one has compared it to Firebase Authentication.
Firebase Auth → Meta · diagnose
Diagnostic order — Firebase Auth → Meta
- 01
Count accounts carrying the fbc and fbp values
- 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
Read Event Match Quality and the deduplication indicator
In Events Manager, open the event and check both. A low match quality means weak identifiers; a missing deduplication indicator means your event_id pairing is broken.
- 05
Read the match rate, not the success message
Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.
Firebase Auth → Meta · prove
How it gets proven — Firebase Auth → Meta
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 fbc and fbp values confirmed present on a live account.
- Deduplication confirmed in Events Manager on a real purchase, with the browser and server events visibly paired rather than counted twice.
- Paid conversions reconciled per linked user identity against imported conversions.
Firebase Auth → Meta · free audit
What we check in the free audit
- Count accounts carrying the fbc and fbp values
- Follow one real conversion end to end
- Check whether anonymous accounts are linked or orphaned at signup
- Read Event Match Quality and the deduplication indicator
- Read the match rate, not the success message
Checked against
Your billing system, keyed on the Firebase user ID.
Free30 minutesNo obligation
Firebase Auth → Meta · when not to buy
When you don't need this — Firebase Auth → Meta
- If Meta 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 fbc and fbp values.
- If you do not use anonymous auth, the linking problem does not arise.
- If you are not running Meta ads at meaningful spend, the Conversions API is effort without payoff. It earns its cost when the optimization signal is worth improving.
Firebase Auth → Meta · what we deliver
What gets built — Firebase Auth → Meta
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 Meta
Server-side events to the Conversions API with the event_id matched to the pixel, action_source set correctly, and customer data hashed before it leaves your infrastructure.
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 → Meta questions, answered
Yes, as external_id, hashed. It improves cross-device matching but does not replace fbc, fbp or hashed email.
No. Fire it when a real credential is created or linked, otherwise Meta optimizes for people who never signed up.
Almost always because the fbc and fbp values 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.
Two things. The _fbc cookie, derived from the fbclid parameter on the landing URL in the format fb.1.<timestamp>.<fbclid>, is the click identifier. The _fbp cookie is the browser identifier. Beyond those, Meta matches on hashed customer information — email, phone, name, city, country — and every additional field raises the Event Match Quality score. Unlike Google, Meta does not need a click ID at all if the customer data is good, but match quality drops noticeably without it.
Your billing system, keyed on the user ID. Send paid conversions keyed on the user identity. Signups and anonymous sessions are stages, not revenue.
Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.
More on Firebase Auth → Meta
- Supabase Auth → MetaConnecting Supabase Auth to Meta Conversions API
- Stripe → MetaConnecting Stripe to Meta Conversions API
- Toast → MetaConnecting Toast to Meta Conversions API
RELATED GUIDES
Where Firebase Auth → Meta fits in the rest of your tracking
- Meta · B2BMeta Ads conversion tracking for B2B companies
- Meta · SaaSMeta Ads conversion tracking for SaaS companies
- Meta × SubscriptionsHow to reconcile Meta Ads against your billing system
- Meta · Signup → activationHow to track signup to product activation for Meta Ads
- Auth0 → MetaConnecting Auth0 to Meta Conversions API
- Firebase Auth → LinkedInConnecting Firebase Authentication to LinkedIn Ads
- B2BConversion tracking for B2B, from first touch to closed-won
- Clerk → MetaConnecting Clerk to Meta Conversions API
Free · 30 min
Get Firebase Auth and Meta joined properly
Free30 minutesNo obligation
