Skip to main content
Auth0 → Marketing CloudIntegration guide

Connecting Auth0 to Salesforce Marketing Cloud

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

Auth0 users in Marketing Cloud: choosing the Subscriber Key

Make the Auth0 user_id the Marketing Cloud Subscriber Key for product users, storing any CRM Contact ID as an attribute. Insert signups, with the verified Auth0 email, into the data extension the onboarding journey watches, queued from your backend rather than a post-login Action. Send Auth0 email changes to Marketing Cloud too.

If Auth0 is where users are created, Marketing Cloud needs a decision before any integration: is the Subscriber Key the Auth0 user_id, the CRM Contact ID, or something else? In product-led companies the Auth0 user often exists long before any CRM contact, so keying on Contact ID leaves new signups with no Subscriber Key until sales touches them, which is too late for onboarding.

The workable pattern is to make the Auth0 user_id the Subscriber Key for product users and store the CRM Contact ID as an attribute once one exists. Insert the signup into the data extension the onboarding journey watches, with the email from the verified Auth0 profile. Do not call Marketing Cloud's API synchronously from a post-login Action; a slow response delays the user's login, so queue the insert in your backend.

Watch email changes. Marketing Cloud sends to the address stored on the subscriber, and an email update in Auth0 does not reach it unless you send it. Users who change their address keep receiving journeys at the old one, which costs deliverability and invites a privacy complaint from whoever now owns that inbox.

Auth0 → Marketing Cloud · what breaks

Why this join usually fails — Auth0 → Marketing Cloud

  1. 01

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

    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.

Auth0 → Marketing Cloud · the fix

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

Auth0 → Marketing Cloud · architecture

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

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

    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.

Auth0 → Marketing Cloud · normal or broken

Working vs. broken, side by side — Auth0 → Marketing Cloud

Normal, not a fault

  • The Subscriber Key present on the account

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

Actually broken

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

    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

Auth0 → Marketing Cloud · diagnose

Diagnostic order — Auth0 → Marketing Cloud

  1. 01

    Count accounts carrying the Subscriber Key

  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

    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.

Auth0 → Marketing Cloud · prove

How it gets proven — Auth0 → Marketing Cloud

Source of truth

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

Auth0 → 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 the identifier survives the login round trip
  • Confirm what Subscriber Key is actually set to in this org
  • 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 → Marketing Cloud · when not to buy

When you don't need this — Auth0 → Marketing Cloud

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

Auth0 → Marketing Cloud · what we deliver

What gets built — Auth0 → Marketing Cloud

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

For product users created in Auth0, usually yes, with the CRM Contact ID stored as an attribute. Decide it once, because every later integration inherits it.

Free · 30 min

Get Auth0 and Marketing Cloud joined properly

Free30 minutesNo obligation