Skip to main content
Clerk → BrazeIntegration guide

Connecting Clerk to Braze

Clerk handles both authentication and organisation membership, which matters for B2B products where the paying entity is a company and the signing-up entity is a person. Braze is mobile-first lifecycle messaging, which means it resolves to a user rather than to a click and its most valuable channels — push and in-app — exist nowhere near a browser. The join between them succeeds or fails on one thing: whether the Braze external user ID reaches the Clerk user and organisation before the conversion happens, because Braze can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Clerk user ID as Braze external_id, org data as attributes

Call Braze changeUser with the Clerk user ID right after authentication on every platform, rather than email. Store the active organization ID, name and role as custom attributes from Clerk membership webhooks, and send the paid conversion only from billing, once per organization, to the admin's profile, updating others with a plan attribute.

Braze resolves on external_id, and the Clerk user ID is the natural choice: stable, assigned at sign-up and available to both your web and mobile code after login. Call changeUser with it right after Clerk authenticates, on every platform, and the anonymous device profile from before sign-in merges into the right user instead of becoming a duplicate. Avoid email as the external ID, since Clerk users can change their primary email.

Braze profiles are per person, which matters for a B2B product built on Clerk organizations. Store the active organization ID, organization name and the user's role as custom attributes, updated from Clerk's membership webhooks, so a campaign about the subscription can target only admins of organizations whose trial is ending. Without the role, every member gets the upgrade push.

The duplicate to avoid is a trial-converted event fired from both the app SDK and your billing server. Send paid conversion only from billing, once per organization, to the admin's profile, and update the other members with a plan attribute rather than an event, so their journeys change without sending a purchase message to people who did not buy.

Clerk → Braze · what breaks

Why this join usually fails — Clerk → Braze

  1. 01

    The Braze external user ID never reaches Clerk

    Several people from one company sign up separately, each carrying a different acquisition source.

  2. 02

    Counting seats instead of customers

    Five colleagues signing up from one company is one paying customer and five conversions if attribution sits on the user. Cost per acquisition then reads as a fifth of reality.

  3. 03

    Duplicate events sending duplicate push notifications

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  4. 04

    Nothing reconciles afterwards

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Clerk → Braze · the fix

What working looks like — Clerk → Braze

  • The Braze external user ID on every account

  • Conversions arriving in Braze

    The event lands on the user profile, triggers whatever campaigns depend on it, and becomes available for segmentation across push, email and in-app.

  • Reconciled against the source

Clerk → Braze · architecture

How Clerk and Braze actually connect

  1. 1

    Clerk holds the truth

    In B2B SaaS the subscription belongs to an organisation and several users belong to it. Attributing revenue per user counts one customer several times.

  2. 2

    Braze needs a click to match

    Braze needs the external user ID and a well-named event with its properties. An event with no external ID lands on an anonymous device profile that may never merge with the real user.

  3. 3

    The identifier is the bridge

    The Braze external user ID, captured at the visit and carried into the Clerk user and organisation.

  4. 4

    The event source decides reliability

    Send paid conversions per organisation, deduplicated across its users.

  5. 5

    Deduplication at the destination

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

Clerk → Braze · normal or broken

Working vs. broken, side by side — Clerk → Braze

Normal, not a fault

  • The Braze external user ID present on the account

  • Sent from your billing system, keyed on the organisation

  • Deduplicated correctly

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

  • Reconciles with the source

Actually broken

  • The Braze external user ID missing on most records

    Several people from one company sign up separately, each carrying a different acquisition source.

  • Sent from the browser

    Five colleagues signing up from one company is one paying customer and five conversions if attribution sits on the user. Cost per acquisition then reads as a fifth of reality.

  • Counted twice, or not at all

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  • Nobody has reconciled it

Clerk → Braze · diagnose

Diagnostic order — Clerk → Braze

  1. 01

    Count accounts carrying the Braze external user ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare user signups against paying organisations

    The ratio is the size of the overcount, and in B2B products it is rarely close to one.

  4. 04

    Send a test purchase and read the user profile's event stream

    One event or two? Check whether the SDK is already sending the same event before adding a server source, and check that the external ID matches the signed-in user rather than creating a new profile.

  5. 05

    Read the match rate, not the success message

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Clerk → Braze · prove

How it gets proven — Clerk → Braze

Source of truth

Your billing system, joined to the Clerk organisation rather than the user.

  • The Braze external user ID confirmed present on a live account.
  • The user profile confirmed to show one event per conversion, with device and user profiles correctly merged.
  • Paid conversions reconciled per organisation against imported conversions, deduplicated across users.

Clerk → Braze · free audit

What we check in the free audit

  • Count accounts carrying the Braze external user ID
  • Follow one real conversion end to end
  • Compare user signups against paying organisations
  • Send a test purchase and read the user profile's event stream
  • Read the match rate, not the success message

Checked against

Your billing system, joined to the Clerk organisation rather than the user.

Get my free conversion tracking audit

Free30 minutesNo obligation

Clerk → Braze · when not to buy

When you don't need this — Clerk → Braze

  • Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the Braze external user ID.
  • Consumer products where one user is one customer do not have this distinction.
  • If you have no mobile app and no push channel, Braze is a large piece of infrastructure for a job an email platform already does.

Clerk → Braze · what we deliver

What gets built — Clerk → Braze

  • Identifier capture into Clerk

    Store the identifier on the user and attribute at the organisation, using the first user's source with the others recorded as supporting.

  • Event source: your billing system, keyed on the organisation

    Send paid conversions per organisation, deduplicated across its users.

  • Dispatch to Braze

    The Braze user track endpoint, posted server-side from your order or billing system with the external user ID and event properties.

  • Reversals where they exist

    Cancellations reverse against the organisation.

Written guarantee

95%+ tracking accuracy

Measured against Your billing system, joined to the Clerk organisation rather than the user.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Clerk → Braze questions, answered

The Clerk user ID, set with changeUser immediately after sign-in on web and mobile. Avoid email, which users can change in Clerk.

Free · 30 min

Get Clerk and Braze joined properly

Free30 minutesNo obligation