Connecting Clerk to Branch
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. Branch's real job is the web-to-app seam — a person clicks a link in a browser, installs the app, and something has to carry the context across an install that destroys every cookie involved. The join between them succeeds or fails on one thing: whether the Branch link click identifier and the deferred deep link payload reaches the Clerk user and organisation before the conversion happens, because Branch can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Branch deep links into a Clerk organization invitation
Use Branch deferred deep links to carry Clerk organization invitations through an App Store install into the right workspace. Set the Clerk user ID as Branch's developer identity after sign-in, send the paid conversion server-to-server from billing for the organization creator only, and tag invitation links so partners aren't credited.
Branch's most useful job for a Clerk-based product is not ad attribution; it is getting an invited colleague from an email link into the right organization inside the app after an install. Clerk organization invitations are emailed links whose redirect URL you can set, and on mobile that link needs to survive an App Store detour and open the app with the invitation intact, which is the deferred deep link problem Branch exists for.
For paid acquisition, set the Clerk user ID as Branch's developer identity once the user signs in, so the install a Branch link attributed is tied to an account. Send the paid conversion from billing server-to-server for the organization creator only, with your own event identifier, so the SDK and the server do not both report it.
Separate the two flows in reporting. Installs from Branch links in invitation emails are team growth, not acquisition, and if they share a channel with ad links Branch will forward them to ad partners as if campaigns had produced them. Tag invitation links with their own channel or feature value, and check that your partner postbacks exclude them. Test the invitation path with the app not installed, since that is the case that fails.
Clerk → Branch · what breaks
Why this join usually fails — Clerk → Branch
- 01
The Branch link click identifier and the deferred deep link payload never reaches Clerk
Several people from one company sign up separately, each carrying a different acquisition source.
- 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.
- 03
The install that erases the campaign
Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.
- 04
Nothing reconciles afterwards
Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.
Clerk → Branch · the fix
What working looks like — Clerk → Branch
The Branch link click identifier and the deferred deep link payload on every account
Conversions arriving in Branch
The event is attributed to the originating link and campaign, and forwarded to any configured downstream partners.
Reconciled against the source
Clerk → Branch · architecture
How Clerk and Branch actually connect
- 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
Branch needs a click to match
Branch needs the link click context matched to the app open, plus the event and its revenue. Without the deferred deep link payload there is nothing to join the install to.
- 3
The identifier is the bridge
The Branch link click identifier and the deferred deep link payload, captured at the visit and carried into the Clerk user and organisation.
- 4
The event source decides reliability
Send paid conversions per organisation, deduplicated across its users.
- 5
Deduplication at the destination
Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.
Clerk → Branch · normal or broken
Working vs. broken, side by side — Clerk → Branch
Normal, not a fault
The Branch link click identifier and the deferred deep link payload present on the account
Sent from your billing system, keyed on the organisation
Deduplicated correctly
Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.
Reconciles with the source
Actually broken
The Branch link click identifier and the deferred deep link payload 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
Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.
Nobody has reconciled it
Clerk → Branch · diagnose
Diagnostic order — Clerk → Branch
- 01
Count accounts carrying the Branch link click identifier and the deferred deep link payload
- 02
Follow one real conversion end to end
- 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.
- 04
Measure your organic install share and ask whether it is plausible
An implausibly large organic share is usually broken attribution rather than genuine word of mouth.
- 05
Read the match rate, not the success message
Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.
Clerk → Branch · prove
How it gets proven — Clerk → Branch
Source of truth
Your billing system, joined to the Clerk organisation rather than the user.
- The Branch link click identifier and the deferred deep link payload confirmed present on a live account.
- Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
- Paid conversions reconciled per organisation against imported conversions, deduplicated across users.
Clerk → Branch · free audit
What we check in the free audit
- Count accounts carrying the Branch link click identifier and the deferred deep link payload
- Follow one real conversion end to end
- Compare user signups against paying organisations
- Measure your organic install share and ask whether it is plausible
- Read the match rate, not the success message
Checked against
Your billing system, joined to the Clerk organisation rather than the user.
Free30 minutesNo obligation
Clerk → Branch · when not to buy
When you don't need this — Clerk → Branch
- Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the Branch link click identifier and the deferred deep link payload.
- Consumer products where one user is one customer do not have this distinction.
- If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.
Clerk → Branch · what we deliver
What gets built — Clerk → Branch
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 Branch
The Branch server-to-server events API, posted from your backend with the user identity and event data.
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.
From $400 · See packages
FAQ
Clerk → Branch questions, answered
Yes, if the invitation's redirect URL is a Branch link that carries the invitation through a deferred deep link. Test it with the app not yet installed.
No. Tag invitation links separately so they are not forwarded to ad partners as campaign installs.
Almost always because the Branch link click identifier and the deferred deep link payload never reached the Clerk user and organisation. Several people from one company sign up separately, each carrying a different acquisition source. Measure coverage before debugging the dispatch.
Branch stores the click context and replays it into the app on first open, which is how a marketing campaign survives an install. That handoff is probabilistic on iOS and increasingly constrained, so the deep link data can arrive incomplete or not at all — and when it does not, the user looks organic.
Your billing system, keyed on the organisation. Send paid conversions per organisation, deduplicated across its users.
Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.
More on Clerk → Branch
- Stripe → BranchConnecting Stripe to Branch
- PayPal → BranchConnecting PayPal to Branch
- Shopify → BranchConnecting Shopify to Branch
RELATED GUIDES
Where Clerk → Branch fits in the rest of your tracking
- Supabase Auth → BranchConnecting Supabase Auth to Branch
- Auth0 → BranchConnecting Auth0 to Branch
- Firebase Auth → BranchConnecting Firebase Authentication to Branch
- Clerk → AppsFlyerConnecting Clerk to AppsFlyer
- B2BConversion tracking for B2B, from first touch to closed-won
- Okta → BranchConnecting Okta to Branch
Free · 30 min
Get Clerk and Branch joined properly
Free30 minutesNo obligation
