Skip to main content
Firebase Auth → MetaIntegration guide

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

  1. 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.

  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

    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.

  4. 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. 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

    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. 3

    The identifier is the bridge

    The fbc and fbp values, 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

    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

  1. 01

    Count accounts carrying the fbc and fbp values

  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

    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.

  5. 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.

Get my free conversion tracking audit

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.

Get my free conversion tracking audit

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.

Free · 30 min

Get Firebase Auth and Meta joined properly

Free30 minutesNo obligation