Connecting Auth0 to Amplitude
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. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Auth0 user identity before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Auth0 user_id as Amplitude's user ID, without splitting people
Call setUserId in the same Amplitude SDK instance that recorded the ad landing, on the callback after Auth0 Universal Login, so pre-signup sessions merge. Enable Auth0 account linking or send your own internal ID, since each connection creates a separate user_id. Send the first paid invoice from billing to the HTTP V2 API with insert_id as the invoice ID.
Amplitude merges a device ID with a user ID the first time setUserId is called, so the moment that matters is the callback after Auth0 Universal Login. Call setUserId there, in the same browser SDK instance that recorded the ad landing, and the pre-signup sessions merge into the account. If the callback lands on an app subdomain running a separate SDK instance with its own device ID, the merge happens on a device that never saw the ad.
Auth0 creates a different user_id per connection: someone who signs up with a password and later uses Continue with Google gets a google-oauth2| identity as well, unless you link accounts. Amplitude treats those as two people with two retention curves. Either enable account linking in Auth0 or map both to your own internal user ID and send that instead of the raw Auth0 sub.
Revenue comes from billing, not Auth0. Send the first paid invoice server-side to the HTTP V2 API under the same user ID, with price and quantity populated and insert_id set to the invoice ID. Copy the first-touch UTM values and click IDs you saved on app_metadata into user properties, so paid cohorts can be split by network. Auth0 signup and login are useful activation steps; give them no revenue.
Auth0 → Amplitude · what breaks
Why this join usually fails — Auth0 → Amplitude
- 01
The user ID and device ID pair 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.
- 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.
- 03
Revenue events that carry no revenue
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
- 04
Nothing reconciles afterwards
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
Auth0 → Amplitude · the fix
What working looks like — Auth0 → Amplitude
The user ID and device ID pair on every account
Conversions arriving in Amplitude
The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.
Reconciled against the source
Auth0 → Amplitude · architecture
How Auth0 and Amplitude actually connect
- 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
Amplitude needs a click to match
Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.
- 3
The identifier is the bridge
The user ID and device ID pair, captured at the visit and carried into the Auth0 user identity.
- 4
The event source decides reliability
Send paid conversions keyed on the user identity. Signups are a stage, not revenue.
- 5
Deduplication at the destination
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Auth0 → Amplitude · normal or broken
Working vs. broken, side by side — Auth0 → Amplitude
Normal, not a fault
The user ID and device ID pair present on the account
Sent from your billing system, keyed on the Auth0 user ID
Deduplicated correctly
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Reconciles with the source
Actually broken
The user ID and device ID pair 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
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
Nobody has reconciled it
Auth0 → Amplitude · diagnose
Diagnostic order — Auth0 → Amplitude
- 01
Count accounts carrying the user ID and device ID pair
- 02
Follow one real conversion end to end
- 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.
- 04
Check a purchase event for the price and quantity fields specifically
Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.
- 05
Read the match rate, not the success message
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
Auth0 → Amplitude · prove
How it gets proven — Auth0 → Amplitude
Source of truth
Your billing system, joined to the Auth0 user ID.
- The user ID and device ID pair confirmed present on a live account.
- Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
- Paid conversions reconciled per user identity against imported conversions, with identifier survival verified across login.
Auth0 → Amplitude · free audit
What we check in the free audit
- Count accounts carrying the user ID and device ID pair
- Follow one real conversion end to end
- Check whether the identifier survives the login round trip
- Check a purchase event for the price and quantity fields specifically
- Read the match rate, not the success message
Checked against
Your billing system, joined to the Auth0 user ID.
Free30 minutesNo obligation
Auth0 → Amplitude · when not to buy
When you don't need this — Auth0 → Amplitude
- Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the user ID and device ID pair.
- If your product has no authentication, there is no identity to join and session-level attribution is all there is.
- If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.
Auth0 → Amplitude · what we deliver
What gets built — Auth0 → Amplitude
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 Amplitude
The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.
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.
From $400 · See packages
FAQ
Auth0 → Amplitude questions, answered
The sub or your own internal ID. Emails change and are personal data, and Amplitude needs one ID that browser and server events share.
Auth0 issues a separate user_id per connection, so one person signing in two ways arrives as two users. Link the accounts in Auth0 or send your own stable ID.
Almost always because the user ID and device ID pair never reached the Auth0 user identity. Login flows redirect to a hosted Auth0 domain and back, which breaks the session and can lose an identifier captured before login. Measure coverage before debugging the dispatch.
Amplitude tracks both a device ID and a user ID and merges them when a user identifies. The merge rules decide who counts as one person, so a mistake here does not produce a small error — it changes every retention curve and cohort size in the account.
Your billing system, keyed on the Auth0 user ID. Send paid conversions keyed on the user identity. Signups are a stage, not revenue.
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
More on Auth0 → Amplitude
- Stripe → AmplitudeConnecting Stripe to Amplitude
- PayPal → AmplitudeConnecting PayPal to Amplitude
- Shopify → AmplitudeConnecting Shopify to Amplitude
RELATED GUIDES
Where Auth0 → Amplitude fits in the rest of your tracking
- Supabase Auth → AmplitudeConnecting Supabase Auth to Amplitude
- Okta → AmplitudeConnecting Okta to Amplitude
- Clerk → AmplitudeConnecting Clerk to Amplitude
- Auth0 → MixpanelConnecting Auth0 to Mixpanel
- Auth0 → PostHogConnecting Auth0 to PostHog
- B2BConversion tracking for B2B, from first touch to closed-won
- Firebase Auth → AmplitudeConnecting Firebase Authentication to Amplitude
Free · 30 min
Get Auth0 and Amplitude joined properly
Free30 minutesNo obligation
