Skip to main content
Firebase Auth → Customer.ioIntegration guide

Connecting Firebase Authentication to Customer.io

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. Customer.io triggers messages from behaviour, which means an event you send is not recorded — it is acted on, usually within seconds, by sending something to a real person. The join between them succeeds or fails on one thing: whether the person identifier you assign reaches the Firebase user identity before the conversion happens, because Customer.io can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Customer.io identify calls keyed on the Firebase UID, not email

Use the Firebase UID as the Customer.io person identifier, identifying from your backend when a non-anonymous user is created and filtering anonymous sign-ins out of the creation trigger. Send an identify from the linking step with the new email. Send paid events and cancellations from billing keyed on the UID, making purchase an exit condition of trial campaigns.

Customer.io lets you choose the person identifier, and for a Firebase product it should be the UID rather than email. Email/password users can change their address in Firebase, phone-auth users may have none, and Sign in with Apple can return a relay address. The UID survives all three.

Identify from your backend when Firebase reports a new non-anonymous user. A Cloud Function on user creation works, but anonymous sign-ins trigger it too, so filter them out or you will create people with no email that no campaign can reach. When an anonymous account is linked, the UID stays the same and no new user is created, so send an identify from the linking step with the newly attached email.

Paid events come from billing, keyed on the UID. Because Customer.io acts on events within seconds, a trial-started event at sign-up and a purchase minutes later can trigger both an onboarding series and a thank-you email; make purchase an exit condition of the trial campaign. Send cancellations from billing against the same UID so win-back campaigns start from the real state.

Firebase Auth → Customer.io · what breaks

Why this join usually fails — Firebase Auth → Customer.io

  1. 01

    The person identifier you assign 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

    A test event sending a real email

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  4. 04

    Nothing reconciles afterwards

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

Firebase Auth → Customer.io · the fix

What working looks like — Firebase Auth → Customer.io

  • The person identifier you assign on every account

  • Conversions arriving in Customer.io

    The event lands on the person, evaluates against every campaign trigger and segment condition, and may send immediately.

  • Reconciled against the source

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

Firebase Auth → Customer.io · architecture

How Firebase Auth and Customer.io 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

    Customer.io needs a click to match

    Customer.io needs the person identifier, the event name and any attributes the campaign conditions reference. An event whose attributes are missing will still trigger a campaign, which may then send a message with an empty placeholder in it.

  3. 3

    The identifier is the bridge

    The person identifier you assign, 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

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

Firebase Auth → Customer.io · normal or broken

Working vs. broken, side by side — Firebase Auth → Customer.io

Normal, not a fault

  • The person identifier you assign 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

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

  • Reconciles with the source

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

Actually broken

  • The person identifier you assign 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

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  • Nobody has reconciled it

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

Firebase Auth → Customer.io · diagnose

Diagnostic order — Firebase Auth → Customer.io

  1. 01

    Count accounts carrying the person identifier you assign

  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 which workspace you are writing to before sending anything

    Environment separation is the whole safety mechanism in behaviour-triggered tools, and it is the thing most often skipped.

  5. 05

    Read the match rate, not the success message

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

Firebase Auth → Customer.io · prove

How it gets proven — Firebase Auth → Customer.io

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 person identifier you assign confirmed present on a live account.
  • Events confirmed on person profiles with the triggered campaign activity verified, in a test workspace before production.
  • Paid conversions reconciled per linked user identity against imported conversions.

Firebase Auth → Customer.io · free audit

What we check in the free audit

  • Count accounts carrying the person identifier you assign
  • Follow one real conversion end to end
  • Check whether anonymous accounts are linked or orphaned at signup
  • Confirm which workspace you are writing to before sending anything
  • 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 → Customer.io · when not to buy

When you don't need this — Firebase Auth → Customer.io

  • If Customer.io 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 person identifier you assign.
  • If you do not use anonymous auth, the linking problem does not arise.
  • If your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.

Firebase Auth → Customer.io · what we deliver

What gets built — Firebase Auth → Customer.io

  • 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 Customer.io

    The Customer.io Track API, posted server-side from your order or product system with the person identifier and event attributes.

  • 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 → Customer.io questions, answered

The Firebase UID. Emails change and can be relay addresses; the UID does not.

Free · 30 min

Get Firebase Auth and Customer.io joined properly

Free30 minutesNo obligation