Skip to main content
Auth0 → TikTokIntegration guide

Connecting Auth0 to TikTok Events API

Auth0 issues the user identity that everything downstream joins on, which makes it the system that decides whether an anonymous visitor and a paying customer can ever be connected. 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 Auth0 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

Auth0 and TikTok ads: social login fails inside the in-app browser

Test signup from a TikTok ad on a real phone, because Google sign-in often fails in TikTok's in-app browser. Persist ttclid server-side on landing and attach it to app_metadata in a post-login Action. Send CompleteRegistration with event_id as the Auth0 user ID, matching the pixel, and Subscribe or CompletePayment from billing with hashed email or phone.

TikTok ad traffic opens in TikTok's in-app browser, and Google blocks its sign-in inside many embedded browsers. If your Auth0 login page offers Continue with Google, a share of TikTok visitors will hit an error at exactly the moment they tried to sign up, and that loss shows up as a weak campaign rather than a broken login. Test the full signup from a TikTok ad preview on a real phone, and if Google login fails there, make the email and password connection the prominent option.

The ttclid sits on the landing URL and in the _ttp cookie, both on your domain. Persist the ttclid server-side as soon as the landing page loads, then attach it to the user's app_metadata in a post-login Action. Many TikTok visitors browse in the app and sign up later on another device, so the hashed email from the Auth0 profile is often the only thing that joins the later conversion back.

Send CompleteRegistration at signup with event_id set to the Auth0 user ID and the same value on the pixel, and send Subscribe or CompletePayment from billing when the first invoice is paid. Users who signed up with phone-number login give you a hashed phone instead of an email; send whichever one Auth0 actually holds.

Auth0 → TikTok · what breaks

Why this join usually fails — Auth0 → TikTok

  1. 01

    The ttclid never reaches Auth0

    Login flows redirect to a hosted Auth0 domain and back, which breaks the session and can lose an identifier captured before login.

  2. 02

    The login redirect losing the acquisition source

    The visitor arrives from an ad, clicks sign in, goes to Auth0's domain and comes back as a fresh session. Without deliberate persistence the campaign that produced them is gone at exactly the moment they became identifiable.

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

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

Auth0 → TikTok · the fix

What working looks like — Auth0 → 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

Auth0 → TikTok · architecture

How Auth0 and TikTok actually connect

  1. 1

    Auth0 holds the truth

    Auth0 holds identity, not money. Its value to measurement is that it provides the stable key which lets a pre-signup session and a later subscription be recognised as one person.

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

    The identifier is the bridge

    The ttclid, captured at the visit and carried into the Auth0 user identity.

  4. 4

    The event source decides reliability

    Send paid conversions keyed on the user identity. Signups are a stage, not revenue.

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

Auth0 → TikTok · normal or broken

Working vs. broken, side by side — Auth0 → TikTok

Normal, not a fault

  • The ttclid present on the account

  • Sent from your billing system, keyed on the Auth0 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

Actually broken

  • The ttclid missing on most records

    Login flows redirect to a hosted Auth0 domain and back, which breaks the session and can lose an identifier captured before login.

  • Sent from the browser

    The visitor arrives from an ad, clicks sign in, goes to Auth0's domain and comes back as a fresh session. Without deliberate persistence the campaign that produced them is gone at exactly the moment they became identifiable.

  • 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

Auth0 → TikTok · diagnose

Diagnostic order — Auth0 → TikTok

  1. 01

    Count accounts carrying the ttclid

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether the identifier survives the login round trip

    Test it on a live login. This is the single most common identity break in products that use hosted authentication.

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

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

Auth0 → TikTok · prove

How it gets proven — Auth0 → TikTok

Source of truth

Your billing system, joined to the Auth0 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 user identity against imported conversions, with identifier survival verified across login.

Auth0 → TikTok · free audit

What we check in the free audit

  • Count accounts carrying the ttclid
  • Follow one real conversion end to end
  • Check whether the identifier survives the login round trip
  • Measure ttclid capture rate on TikTok traffic specifically
  • Read the match rate, not the success message

Checked against

Your billing system, joined to the Auth0 user ID.

Get my free conversion tracking audit

Free30 minutesNo obligation

Auth0 → TikTok · when not to buy

When you don't need this — Auth0 → TikTok

  • Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the ttclid.
  • If your product has no authentication, there is no identity to join and session-level attribution is all there is.
  • 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.

Auth0 → TikTok · what we deliver

What gets built — Auth0 → TikTok

  • Identifier capture into Auth0

    Persist the identifier before the redirect and write it onto the user's app metadata at first login, so it survives every subsequent session.

  • Event source: your billing system, keyed on the Auth0 user ID

    Send paid conversions keyed on the user identity. Signups are a stage, 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, joined to the Auth0 user ID.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Auth0 → TikTok questions, answered

Check whether Google social login works inside TikTok's in-app browser for your flow. Embedded browsers are often blocked by Google sign-in, which silently drops users who pick that button.

Free · 30 min

Get Auth0 and TikTok joined properly

Free30 minutesNo obligation