Skip to main content
Firebase Auth → Marketing CloudIntegration guide

Connecting Firebase Authentication to Salesforce Marketing Cloud

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. Marketing Cloud is a different product from Salesforce CRM with a different identity model, which catches out almost everyone who assumes a contact in one is a contact in the other. The join between them succeeds or fails on one thing: whether the Subscriber Key reaches the Firebase user identity before the conversion happens, because Marketing Cloud can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Firebase Auth to Marketing Cloud: the uid as Subscriber Key

Use the Firebase uid as the Subscriber Key, not email, with email and mobile as updated attributes. Insert new verified accounts, first payments from billing and cancellations server-side into the data extensions journeys listen to. Store the uid on any CRM contact for Contact Builder, register push devices against it, and never insert anonymous users.

The identity decision for this pair is what becomes the Subscriber Key. Use the Firebase uid, not the email: Firebase users can change their email, phone-auth users have none, and a Subscriber Key built on email splits one person into two subscribers the first time either happens. Email and mobile number then travel as attributes on the record, updated when Firebase reports a change.

If the company also runs Salesforce CRM, check what Contact Builder links the Subscriber Key to. A CRM contact keyed on its own Contact ID and a Marketing Cloud subscriber keyed on uid will not relate unless the uid is stored on the CRM contact and the relationship is configured. Push sends add a third place: the app's Marketing Cloud SDK has to register the device against the same uid, which is separate work from the Firebase login.

The event path is a server-side insert into the data extension a journey listens to: new verified account for the welcome journey, first payment from billing for onboarding, cancellation for win-back. Anonymous Firebase users have no channel to message and should never be inserted.

Firebase Auth → Marketing Cloud · what breaks

Why this join usually fails — Firebase Auth → Marketing Cloud

  1. 01

    The Subscriber Key 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

    Two identity models treated as one

    Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.

  4. 04

    Nothing reconciles afterwards

    Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.

Firebase Auth → Marketing Cloud · the fix

What working looks like — Firebase Auth → Marketing Cloud

  • The Subscriber Key on every account

  • Conversions arriving in Marketing Cloud

    The record lands in the data extension, the journey's entry criteria evaluate on its schedule, and sends follow.

  • Reconciled against the source

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

Firebase Auth → Marketing Cloud · architecture

How Firebase Auth and Marketing Cloud 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

    Salesforce Marketing Cloud needs a click to match

    The Subscriber Key, the data extension the journey listens to, and the fields its decision splits reference. An event landing in the wrong data extension will be stored correctly and trigger nothing.

  3. 3

    The identifier is the bridge

    The Subscriber Key, 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

    Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.

Firebase Auth → Marketing Cloud · normal or broken

Working vs. broken, side by side — Firebase Auth → Marketing Cloud

Normal, not a fault

  • The Subscriber Key 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

    Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.

  • Reconciles with the source

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

Actually broken

  • The Subscriber Key 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

    Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.

  • Nobody has reconciled it

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

Firebase Auth → Marketing Cloud · diagnose

Diagnostic order — Firebase Auth → Marketing Cloud

  1. 01

    Count accounts carrying the Subscriber Key

  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

    Confirm what Subscriber Key is actually set to in this org

    Before sending anything. It is a configuration decision made once, often years ago, and every integration built afterwards inherits it.

  5. 05

    Read the match rate, not the success message

    Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.

Firebase Auth → Marketing Cloud · prove

How it gets proven — Firebase Auth → Marketing Cloud

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 Key confirmed present on a live account.
  • Records confirmed on single subscriber records in the correct data extension, with the triggered journey verified in a non-production business unit first.
  • Paid conversions reconciled per linked user identity against imported conversions.

Firebase Auth → Marketing Cloud · free audit

What we check in the free audit

  • Count accounts carrying the Subscriber Key
  • Follow one real conversion end to end
  • Check whether anonymous accounts are linked or orphaned at signup
  • Confirm what Subscriber Key is actually set to in this org
  • 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 → Marketing Cloud · when not to buy

When you don't need this — Firebase Auth → Marketing Cloud

  • If Marketing Cloud 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 Key.
  • If you do not use anonymous auth, the linking problem does not arise.
  • If you are on Salesforce CRM but sending email through a simpler platform, adding Marketing Cloud brings an identity model to reconcile that you currently do not have to think about.

Firebase Auth → Marketing Cloud · what we deliver

What gets built — Firebase Auth → Marketing Cloud

  • 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 Marketing Cloud

    A server-side insert into the data extension the journey is configured against, keyed on Subscriber Key.

  • 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 → Marketing Cloud questions, answered

The uid. It is permanent and present on every account, including phone-only users, while email can change or be missing.

Free · 30 min

Get Firebase Auth and Marketing Cloud joined properly

Free30 minutesNo obligation