Connecting Friendbuy to TikTok Events API
Friendbuy runs customer-to-customer referral, which means the acquisition was produced by an existing customer and paid for with a reward on both sides. 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 Friendbuy referral 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
Friendbuy to TikTok: public referral codes and net order value
Send orders to TikTok as CompletePayment through the Events API with the order number as event_id and value net of both rewards, plus a referral flag, and keep referral orders out of the optimization event. Don't let Friendbuy landings erase stored ttclids. Watch for referral codes spreading through TikTok videos and limit redemptions if your settings allow.
TikTok is where referral codes escape. A customer posts their Friendbuy link or code in a video or bio, it spreads, and what Friendbuy records as a referral is really strangers finding a discount on TikTok. If your referral volume jumps without a matching rise in active referrers, check where the codes are being used. Friendbuy's own settings may let you limit how often one code is redeemed; confirm in your account.
For the paid side, send orders as CompletePayment through the Events API with the order number as event_id, matching the pixel's value, and the value net of both rewards, so TikTok's value optimization is not trained on discounts it never paid for. Add a referral flag to the event properties and keep referral orders out of whatever event your campaigns optimize on.
The identifier conflict is the same as everywhere: the Friendbuy landing must not erase a ttclid stored earlier. With TikTok it also runs the other way, because a click from a creator's organic video may not carry a ttclid at all. Record both on the order and decide which wins on purpose.
Friendbuy → TikTok · what breaks
Why this join usually fails — Friendbuy → TikTok
- 01
The ttclid never reaches Friendbuy
Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier.
- 02
Word of mouth billed to the ad account
The better your referral programme performs, the worse your paid reporting gets — a genuinely perverse outcome caused entirely by last-write-wins identifier storage that nobody consciously chose.
- 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.
Friendbuy → TikTok · the fix
What working looks like — Friendbuy → TikTok
The ttclid on every referral
Conversions arriving in TikTok
Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.
Reconciled against the source
Friendbuy → TikTok · architecture
How Friendbuy and TikTok actually connect
- 1
Friendbuy holds the truth
A double-sided referral costs you two discounts to acquire one customer. That is a real and known acquisition cost, and it sits nowhere near the ad account that will otherwise claim the sale.
- 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 Friendbuy referral.
- 4
The event source decides reliability
Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.
- 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.
Friendbuy → TikTok · normal or broken
Working vs. broken, side by side — Friendbuy → TikTok
Normal, not a fault
The ttclid present on the referral
Sent from your order feed with referral attribution
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
Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier.
Sent from the browser
The better your referral programme performs, the worse your paid reporting gets — a genuinely perverse outcome caused entirely by last-write-wins identifier storage that nobody consciously chose.
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
Friendbuy → TikTok · diagnose
Diagnostic order — Friendbuy → TikTok
- 01
Count referrals carrying the ttclid
- 02
Follow one real conversion end to end
- 03
Check precedence between referral and paid parameters
Whichever wins decides who gets credit, and almost nobody has decided it deliberately.
- 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.
Friendbuy → TikTok · prove
How it gets proven — Friendbuy → TikTok
Source of truth
Orders flagged by whether a referral produced them, with both reward costs recorded.
- The ttclid confirmed present on a live referral.
- Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
- Non-referral orders reconciled against imported conversions, with referral volume and reward cost reported separately.
Friendbuy → TikTok · free audit
What we check in the free audit
- Count referrals carrying the ttclid
- Follow one real conversion end to end
- Check precedence between referral and paid parameters
- Measure ttclid capture rate on TikTok traffic specifically
- Read the match rate, not the success message
Checked against
Orders flagged by whether a referral produced them, with both reward costs recorded.
Free30 minutesNo obligation
Friendbuy → TikTok · when not to buy
When you don't need this — Friendbuy → TikTok
- Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the ttclid.
- No referral programme means no conflict and this is an ordinary store integration.
- 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.
Friendbuy → TikTok · what we deliver
What gets built — Friendbuy → TikTok
Identifier capture into Friendbuy
Apply an explicit precedence rule between referral and paid parameters and record both on the order.
Event source: your order feed with referral attribution
Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.
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
Refunds reverse and should reclaim rewards.
Written guarantee
95%+ tracking accuracy
Measured against Orders flagged by whether a referral produced them, with both reward costs recorded.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Friendbuy → TikTok questions, answered
Then some referral orders are really public-discount orders. Compare redemptions per code and check whether Friendbuy can cap reuse.
The amount you actually keep after both rewards, with a referral flag so those orders can be excluded from optimization.
Almost always because the ttclid never reached the Friendbuy referral. Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier. 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 order feed with referral attribution. Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.
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 Friendbuy → 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 Friendbuy → TikTok fits in the rest of your tracking
- TikTok · Subscription boxesTikTok Ads conversion tracking for subscription box businesses
- TikTok · SaaSTikTok Ads conversion tracking for SaaS companies
- TikTok × Ecommerce OrdersHow to reconcile TikTok Ads against your store's order table
- TikTok · Referral → closed saleHow to track referral to closed sale for TikTok Ads
- Talkable → TikTokConnecting Talkable to TikTok Events API
- Friendbuy → SnapchatConnecting Friendbuy to Snapchat
- Subscription boxesConversion tracking for subscription boxes, measured in retained subscribers
- Extole → TikTokConnecting Extole to TikTok Events API
Free · 30 min
Get Friendbuy and TikTok joined properly
Free30 minutesNo obligation
