Connecting Clerk to TikTok Events API
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. TikTok's audience skews to exactly the browsers and app contexts where browser-side tracking performs worst. The join between them succeeds or fails on one thing: whether the ttclid reaches the Clerk user and organisation before the conversion happens, because TikTok can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Clerk B2B signups and paid orgs in the TikTok Events API
Send the TikTok Events API CompleteRegistration from the founding Clerk user and CompletePayment once per organization from billing, with the organization ID as event_id. Hashed work email does most matching because B2B buyers sign up on desktop. Store ttclid only when seen in the same browser, never on invited teammates.
TikTok is the destination where B2B identifiers are weakest. The ad is seen on a phone inside TikTok's in-app browser, and the person who becomes a paying organization often signs up days later on a desktop with a work email. A ttclid stored on the Clerk user is the exception, not the rule, so the hashed work email that Clerk holds as the login is doing most of the matching here.
Send CompleteRegistration from the founding user and CompletePayment once per organization from your billing system. Check whether TikTok's Subscribe event is available and suits recurring plans in your ad account. Store the ttclid in the user's unsafeMetadata at signup only if it was seen in the same browser, and do not copy it onto teammates who joined by invitation; they never clicked the ad.
Use the organization ID as event_id for the paid event so retries collapse into one. Volume is the other constraint: few B2B products produce enough paid organizations per week from TikTok to optimize on payment, so many teams optimize on the founding-user registration and use the paid event for reporting. Decide that before reading cost per acquisition off TikTok's dashboard.
Clerk → TikTok · what breaks
Why this join usually fails — Clerk → TikTok
- 01
The ttclid 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 ttclid is lost in the in-app browser
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
- 04
Nothing reconciles afterwards
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
Clerk → TikTok · the fix
What working looks like — Clerk → TikTok
The ttclid on every account
Conversions arriving in TikTok
Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.
Reconciled against the source
Clerk → TikTok · architecture
How Clerk and TikTok 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
TikTok Events API needs a click to match
TikTok matches server events using ttclid where available, falling back to hashed contact information. Both should be sent — the fallback is what carries the events where the click ID did not survive.
- 3
The identifier is the bridge
The ttclid, 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
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
Clerk → TikTok · normal or broken
Working vs. broken, side by side — Clerk → TikTok
Normal, not a fault
The ttclid present on the account
Sent from your billing system, keyed on the organisation
Deduplicated correctly
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
Reconciles with the source
Actually broken
The ttclid 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
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
Nobody has reconciled it
Clerk → TikTok · diagnose
Diagnostic order — Clerk → TikTok
- 01
Count accounts carrying the ttclid
- 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 ttclid capture rate on TikTok traffic specifically
Not on all traffic. TikTok's in-app browser is the failure case, so a healthy overall capture rate can hide a poor one on exactly the traffic that matters.
- 05
Read the match rate, not the success message
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
Clerk → TikTok · prove
How it gets proven — Clerk → TikTok
Source of truth
Your billing system, joined to the Clerk organisation rather than the user.
- The ttclid confirmed present on a live account.
- Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
- Paid conversions reconciled per organisation against imported conversions, deduplicated across users.
Clerk → TikTok · free audit
What we check in the free audit
- Count accounts carrying the ttclid
- Follow one real conversion end to end
- Compare user signups against paying organisations
- Measure ttclid capture rate on TikTok traffic specifically
- 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 → TikTok · when not to buy
When you don't need this — Clerk → TikTok
- Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the ttclid.
- Consumer products where one user is one customer do not have this distinction.
- If TikTok is a small share of spend, the effort is hard to justify. It pays when TikTok is a channel you are actively scaling.
Clerk → TikTok · what we deliver
What gets built — Clerk → TikTok
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 TikTok
Server events to the TikTok Events API with the ttclid, hashed contact information and a matching event_id.
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 → TikTok questions, answered
B2B buyers tend to click on mobile and sign up later on a work computer, so the ttclid is lost. Send the founding user's hashed email, which Clerk always has, to recover matches.
Only if you produce enough paid organizations weekly for TikTok to learn from. Otherwise optimize on founding-user registrations and report payments separately.
Almost always because the ttclid 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.
The ttclid — TikTok's click identifier, appended to your landing page URL and also stored in the _ttp cookie. TikTok additionally matches on hashed email and phone. In-app browser behavior makes ttclid capture more fragile than the equivalents on other platforms, so persisting it server-side as soon as it is seen matters more here than elsewhere.
Your billing system, keyed on the organisation. Send paid conversions per organisation, deduplicated across its users.
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
More on Clerk → TikTok
- TikTok · Lead → booked callHow to track lead to booked call for TikTok Ads
- TikTok · Booked call → closed wonHow to track booked call to closed won for TikTok Ads
- TikTok · Free trial → paidHow to track free trial to paid for TikTok Ads
RELATED GUIDES
Where Clerk → TikTok fits in the rest of your tracking
- TikTok · B2BTikTok Ads conversion tracking for B2B companies
- TikTok · SaaSTikTok Ads conversion tracking for SaaS companies
- TikTok × SubscriptionsHow to reconcile TikTok Ads against your billing system
- TikTok · Signup → activationHow to track signup to product activation for TikTok Ads
- Firebase Auth → TikTokConnecting Firebase Authentication to TikTok Events API
- Clerk → NextdoorConnecting Clerk to Nextdoor Ads
- B2BConversion tracking for B2B, from first touch to closed-won
- Auth0 → TikTokConnecting Auth0 to TikTok Events API
Free · 30 min
Get Clerk and TikTok joined properly
Free30 minutesNo obligation
