Skip to main content
Clerk → Customer.ioIntegration guide

Connecting Clerk to Customer.io

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. Customer.io triggers messages from behaviour, which means an event you send is not recorded — it is acted on, usually within seconds, by sending something to a real person. The join between them succeeds or fails on one thing: whether the person identifier you assign reaches the Clerk user and organisation before the conversion happens, because Customer.io can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Clerk organizations as Customer.io objects for B2B journeys

Identify Customer.io people by Clerk user ID, not email, and trigger onboarding from Clerk's user.created webhook. Map each Clerk organization to a Customer.io object with members related to it, so trial-ending or payment-failed messages reach admins once. Delay or branch the welcome trigger so invitees don't get creator onboarding.

Customer.io is a common pick for a product built on Clerk because both are webhook-driven and developer-friendly. Identify people by the Clerk user ID rather than email, since Clerk users can change their primary email and an email-keyed profile then splits in two. Clerk's user.created webhook is the right server-side trigger for onboarding, with sign-up method and organization context as attributes.

Customer.io supports objects for modeling companies or accounts and relating people to them; check that your plan includes them. Mapping each Clerk organization to an object, with members related to it, lets an organization-level trigger such as trial ending or payment failed send once to admins rather than to every member, and lets messages reference organization attributes like plan and seat count.

The failure specific to this pair is the invitation race. A colleague accepts a Clerk invitation, the user and membership webhooks arrive in either order, and if the user event triggers a generic welcome campaign before the membership event marks them as an invitee, they receive the new-customer onboarding meant for whoever created the workspace. Delay the welcome trigger by a few minutes or branch on membership attributes, and test with a real invitation.

Clerk → Customer.io · what breaks

Why this join usually fails — Clerk → Customer.io

  1. 01

    The person identifier you assign 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

    A test event sending a real email

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  4. 04

    Nothing reconciles afterwards

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

Clerk → Customer.io · the fix

What working looks like — Clerk → Customer.io

  • The person identifier you assign on every account

  • Conversions arriving in Customer.io

    The event lands on the person, evaluates against every campaign trigger and segment condition, and may send immediately.

  • Reconciled against the source

Clerk → Customer.io · architecture

How Clerk and Customer.io 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

    Customer.io needs a click to match

    Customer.io needs the person identifier, the event name and any attributes the campaign conditions reference. An event whose attributes are missing will still trigger a campaign, which may then send a message with an empty placeholder in it.

  3. 3

    The identifier is the bridge

    The person identifier you assign, 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

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

Clerk → Customer.io · normal or broken

Working vs. broken, side by side — Clerk → Customer.io

Normal, not a fault

  • The person identifier you assign present on the account

  • Sent from your billing system, keyed on the organisation

  • Deduplicated correctly

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

  • Reconciles with the source

Actually broken

  • The person identifier you assign 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

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  • Nobody has reconciled it

Clerk → Customer.io · diagnose

Diagnostic order — Clerk → Customer.io

  1. 01

    Count accounts carrying the person identifier you assign

  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

    Confirm which workspace you are writing to before sending anything

    Environment separation is the whole safety mechanism in behaviour-triggered tools, and it is the thing most often skipped.

  5. 05

    Read the match rate, not the success message

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

Clerk → Customer.io · prove

How it gets proven — Clerk → Customer.io

Source of truth

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

  • The person identifier you assign confirmed present on a live account.
  • Events confirmed on person profiles with the triggered campaign activity verified, in a test workspace before production.
  • Paid conversions reconciled per organisation against imported conversions, deduplicated across users.

Clerk → Customer.io · free audit

What we check in the free audit

  • Count accounts carrying the person identifier you assign
  • Follow one real conversion end to end
  • Compare user signups against paying organisations
  • Confirm which workspace you are writing to before sending anything
  • 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 → Customer.io · when not to buy

When you don't need this — Clerk → Customer.io

  • Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the person identifier you assign.
  • Consumer products where one user is one customer do not have this distinction.
  • If your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.

Clerk → Customer.io · what we deliver

What gets built — Clerk → Customer.io

  • 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 Customer.io

    The Customer.io Track API, posted server-side from your order or product system with the person identifier and event attributes.

  • 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 → Customer.io questions, answered

By Clerk user ID. Email can change in Clerk, and an email-keyed profile then becomes two people receiving the same campaigns.

Free · 30 min

Get Clerk and Customer.io joined properly

Free30 minutesNo obligation