Connecting Firebase Authentication to TikTok Events 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. TikTok's audience skews to exactly the browsers and app contexts where browser-side tracking performs worst. The join between them succeeds or fails on one thing: whether the ttclid reaches the Firebase user identity before the conversion happens, because TikTok can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Firebase Auth to TikTok: ttclid saved before the app install
Write the ttclid to the Firebase user document at the first auth event, before any install prompt, with the hashed uid as external_id. Fire CompleteRegistration on linking or new account creation, and CompletePayment or Subscribe from billing with event_id from the transaction. Make sure server and app SDK events are not both counted.
TikTok's web-to-app path is where Firebase identity earns its keep. A user taps an ad in TikTok's in-app browser, lands on a web sign-up, and is pushed to install the app. The ttclid exists only in that webview, so it must be written to the Firebase user document at the first auth event, before the install prompt, or it is gone. Send the uid hashed as external_id alongside it.
Separate the sign-up from the payment. CompleteRegistration should fire when an anonymous account is linked to a real credential or a new account is created; CompletePayment or Subscribe fires from the billing system, keyed on the same uid, with event_id from the billing transaction. If the app also reports through a TikTok SDK or a mobile measurement partner, check that the server event and the app event are not both counted for one subscription.
Most TikTok-acquired app users are on mobile, and many will never return to the web after install, so the web pixel will see the visit and the sign-up and nothing else. Persist the ttclid immediately, do not wait for consent flows inside the app to retrieve it, and measure its capture rate on users whose first session came from TikTok.
Firebase Auth → TikTok · what breaks
Why this join usually fails — Firebase Auth → TikTok
- 01
The ttclid 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
The ttclid is lost in the in-app browser
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
- 04
Nothing reconciles afterwards
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
Firebase Auth → TikTok · the fix
What working looks like — Firebase Auth → TikTok
The ttclid on every account
Conversions arriving in TikTok
Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.
Reconciled against the source
Firebase Authentication's own records are the reference, not either dashboard.
Firebase Auth → TikTok · architecture
How Firebase Auth and TikTok 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
TikTok Events API needs a click to match
TikTok matches server events using ttclid where available, falling back to hashed contact information. Both should be sent — the fallback is what carries the events where the click ID did not survive.
- 3
The identifier is the bridge
The ttclid, 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
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
Firebase Auth → TikTok · normal or broken
Working vs. broken, side by side — Firebase Auth → TikTok
Normal, not a fault
The ttclid 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
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
Reconciles with the source
TikTok's count and Firebase Authentication's records agree within a few percent over a closed window.
Actually broken
The ttclid 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
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
Nobody has reconciled it
The dashboard shows a number and no one has compared it to Firebase Authentication.
Firebase Auth → TikTok · diagnose
Diagnostic order — Firebase Auth → TikTok
- 01
Count accounts carrying the ttclid
- 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
Measure ttclid capture rate on TikTok traffic specifically
Not on all traffic. TikTok's in-app browser is the failure case, so a healthy overall capture rate can hide a poor one on exactly the traffic that matters.
- 05
Read the match rate, not the success message
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
Firebase Auth → TikTok · prove
How it gets proven — Firebase Auth → TikTok
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 ttclid confirmed present on a live account.
- Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
- Paid conversions reconciled per linked user identity against imported conversions.
Firebase Auth → TikTok · free audit
What we check in the free audit
- Count accounts carrying the ttclid
- Follow one real conversion end to end
- Check whether anonymous accounts are linked or orphaned at signup
- Measure ttclid capture rate on TikTok traffic specifically
- Read the match rate, not the success message
Checked against
Your billing system, keyed on the Firebase user ID.
Free30 minutesNo obligation
Firebase Auth → TikTok · when not to buy
When you don't need this — Firebase Auth → TikTok
- If TikTok 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 ttclid.
- If you do not use anonymous auth, the linking problem does not arise.
- If TikTok is a small share of spend, the effort is hard to justify. It pays when TikTok is a channel you are actively scaling.
Firebase Auth → TikTok · what we deliver
What gets built — Firebase Auth → TikTok
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 TikTok
Server events to the TikTok Events API with the ttclid, hashed contact information and a matching event_id.
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 → TikTok questions, answered
Store the ttclid from the web landing on the Firebase user at first sign-in, then send it with the purchase from billing, along with the hashed uid as external_id.
Yes. If the anonymous account is not linked at sign-up, the stored ttclid sits on a user who never pays.
Almost always because the ttclid 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.
The ttclid — TikTok's click identifier, appended to your landing page URL and also stored in the _ttp cookie. TikTok additionally matches on hashed email and phone. In-app browser behavior makes ttclid capture more fragile than the equivalents on other platforms, so persisting it server-side as soon as it is seen matters more here than elsewhere.
Your billing system, keyed on the user ID. Send paid conversions keyed on the user identity. Signups and anonymous sessions are stages, not revenue.
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
More on Firebase Auth → TikTok
- 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 → TikTok fits in the rest of your tracking
- TikTok · B2BTikTok Ads conversion tracking for B2B companies
- TikTok · SaaSTikTok Ads conversion tracking for SaaS companies
- TikTok × SubscriptionsHow to reconcile TikTok Ads against your billing system
- TikTok · Signup → activationHow to track signup to product activation for TikTok Ads
- Okta → TikTokConnecting Okta to TikTok Events API
- Firebase Auth → SnapchatConnecting Firebase Authentication to Snapchat
- B2BConversion tracking for B2B, from first touch to closed-won
- Supabase Auth → TikTokConnecting Supabase Auth to TikTok Events API
Free · 30 min
Get Firebase Auth and TikTok joined properly
Free30 minutesNo obligation
