Skip to main content
Chargebee → TikTokIntegration guide

Connecting Chargebee to TikTok Events API

Chargebee is a billing system, so it holds the only complete record of what a subscription business earned — and it sits entirely outside the browser. 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 Chargebee subscription 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

Chargebee to TikTok: keeping the ttclid alive through a long trial

Capture the ttclid at landing, send it to your server immediately, and write it to a Chargebee customer custom field, since TikTok's webview won't carry it to hosted checkout. Send CompleteRegistration at trial start for optimization, then Subscribe or CompletePayment on the first payment with ttclid, hashed email and the invoice ID as event_id.

TikTok traffic adds a problem before the trial even starts. Most TikTok clicks open in the in-app browser, and Chargebee's hosted checkout then loads inside that webview; a ttclid held only in a cookie on your marketing site does not cross to the checkout origin. Capture the ttclid on the landing page, send it to your server immediately, and write it to a Chargebee customer custom field when your backend creates the subscription. That field is what the payment_succeeded webhook will read weeks later.

Send the trial start as CompleteRegistration so the campaign has an event it can optimize on inside TikTok's click window, which will be shorter than most trials; check the window set on your account. Send the first successful payment as Subscribe or CompletePayment, picking one and staying with it, with the ttclid, hashed email and the Chargebee invoice ID as event_id.

TikTok deduplicates on event_id, so a browser CompleteRegistration on the signup confirmation and the server one must share the subscription ID. A common TikTok path is signing up on a phone and paying later from a desktop email link. The payment still joins, because the ttclid sits on the Chargebee customer rather than in either device's browser, which is the whole argument for storing it there.

Chargebee → TikTok · what breaks

Why this join usually fails — Chargebee → TikTok

  1. 01

    The ttclid never reaches Chargebee

    The identifier must live on the customer or subscription so it survives a trial period that is longer than any browser cookie you can rely on. Chargebee's hosted checkout is also a different origin, so nothing crosses it by default.

  2. 02

    Trials longer than any cookie

    The gap between signup and first payment is where the identifier has to survive, and it is measured in weeks. Browser storage will not do it.

  3. 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.

  4. 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.

Chargebee → TikTok · the fix

What working looks like — Chargebee → TikTok

  • The ttclid on every subscription

  • Conversions arriving in TikTok

    Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.

  • Reconciled against the source

Chargebee → TikTok · architecture

How Chargebee and TikTok actually connect

  1. 1

    Chargebee holds the truth

    The distinction that matters most here is invoice generated versus payment succeeded. An invoice is a bill you sent; a payment is money you received, and in any business with dunning the gap between them is large.

  2. 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. 3

    The identifier is the bridge

    The ttclid, captured at the visit and carried into the Chargebee subscription.

  4. 4

    The event source decides reliability

    Fire on payment succeeded, not invoice generated, and key the conversion on the billing period so a dunning sequence with four retries produces one conversion rather than four.

  5. 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.

Chargebee → TikTok · normal or broken

Working vs. broken, side by side — Chargebee → TikTok

Normal, not a fault

  • The ttclid present on the subscription

  • Sent from the Chargebee payment_succeeded webhook

  • 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

    The identifier must live on the customer or subscription so it survives a trial period that is longer than any browser cookie you can rely on. Chargebee's hosted checkout is also a different origin, so nothing crosses it by default.

  • Sent from the browser

    The gap between signup and first payment is where the identifier has to survive, and it is measured in weeks. Browser storage will not do it.

  • 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

Chargebee → TikTok · diagnose

Diagnostic order — Chargebee → TikTok

  1. 01

    Count subscriptions carrying the ttclid

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether the event fires on invoice or on payment

    Invoice-based firing counts money you have not received, and in a business with dunning that overstates consistently.

  4. 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.

  5. 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.

Chargebee → TikTok · prove

How it gets proven — Chargebee → TikTok

Source of truth

Chargebee's paid invoices by payment date, net of refunds and failed payments.

  • The ttclid confirmed present on a live subscription.
  • Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
  • A dunning sequence confirmed to produce one conversion rather than one per retry.

Chargebee → TikTok · free audit

What we check in the free audit

  • Count subscriptions carrying the ttclid
  • Follow one real conversion end to end
  • Check whether the event fires on invoice or on payment
  • Measure ttclid capture rate on TikTok traffic specifically
  • Read the match rate, not the success message

Checked against

Chargebee's paid invoices by payment date, net of refunds and failed payments.

Get my free conversion tracking audit

Free30 minutesNo obligation

Chargebee → TikTok · when not to buy

When you don't need this — Chargebee → TikTok

  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the ttclid.
  • If your trial is longer than 90 days, uploading the first payment against the original click cannot work — we will tell you that before quoting.
  • 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.

Chargebee → TikTok · what we deliver

What gets built — Chargebee → TikTok

  • Identifier capture into Chargebee

    Write the click identifier to a custom field on the Chargebee customer or subscription when the subscription is created, server-side, rather than relying on the hosted checkout page to carry it.

  • Event source: the Chargebee payment_succeeded webhook

    Fire on payment succeeded, not invoice generated, and key the conversion on the billing period so a dunning sequence with four retries produces one conversion rather than four.

  • 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 and refunds are exposed and should reverse the lifetime value claimed at acquisition.

Written guarantee

95%+ tracking accuracy

Measured against Chargebee's paid invoices by payment date, net of refunds and failed payments.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Chargebee → TikTok questions, answered

Store the ttclid on the Chargebee customer at signup and send the first payment from the payment_succeeded webhook. Expect TikTok to credit the signup more reliably than the payment, which usually lands outside the click window.

Free · 30 min

Get Chargebee and TikTok joined properly

Free30 minutesNo obligation