Skip to main content
Swell → TikTokIntegration guide

Connecting Swell to TikTok Events API

Swell is headless commerce with subscriptions built in, which puts two conversion types in one system: a one-off order and a recurring plan that will bill again next month. 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 Swell order 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

Swell and TikTok: first orders from in-app checkout sessions

Capture the ttclid when TikTok traffic lands and write it to Swell cart or customer metadata at the first record-creating step, so carts resumed outside the in-app browser keep it. Send CompletePayment for one-off orders and first subscription payments from the Swell webhook, sharing an event_id with the pixel, plus hashed email and phone. Renewals stay out.

TikTok traffic to a headless Swell store lands in the in-app browser, and a checkout running inside that webview is where carts can be abandoned and resumed later in a real browser. Capture the ttclid on landing and write it to the Swell cart or customer metadata at the first step that creates a record, not at payment, so a cart resumed later in Safari still carries it.

Send CompletePayment for one-off orders and for the first subscription payment, with an event_id shared between the pixel on your confirmation route and the server event from the Swell webhook. Send hashed email and phone with each; they are the fallback whenever the ttclid did not survive the move out of the in-app browser. If you sell subscriptions, TikTok's Subscribe event can mark first subscription payments so you can see subscription buyers separately.

Renewals billed by Swell months later should not reach TikTok at all. Otherwise a product that sells well on a monthly plan looks like it earns a conversion every month from a single video view. Check Events Manager after the first renewal cycle: if CompletePayment counts climb without new customers appearing in Swell, renewals are leaking through.

Swell → TikTok · what breaks

Why this join usually fails — Swell → TikTok

  1. 01

    The ttclid never reaches Swell

    Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.

  2. 02

    Renewals indistinguishable from new orders

    In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.

  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.

Swell → TikTok · the fix

What working looks like — Swell → TikTok

  • The ttclid on every order

  • Conversions arriving in TikTok

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

  • Reconciled against the source

Swell → TikTok · architecture

How Swell and TikTok actually connect

  1. 1

    Swell holds the truth

    A subscription's first payment and its renewals are the same object type in most exports. Sending both means one acquisition produces a conversion every billing cycle.

  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 Swell order.

  4. 4

    The event source decides reliability

    Send one-off orders and first subscription payments. Renewals belong in a retention figure.

  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.

Swell → TikTok · normal or broken

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

Normal, not a fault

  • The ttclid present on the order

  • Sent from the Swell order and subscription webhooks

  • 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

    Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.

  • Sent from the browser

    In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.

  • 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

Swell → TikTok · diagnose

Diagnostic order — Swell → TikTok

  1. 01

    Count orders carrying the ttclid

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare monthly conversion count against new customer count

    If conversions exceed new customers, renewals are being counted as acquisition.

  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.

Swell → TikTok · prove

How it gets proven — Swell → TikTok

Source of truth

Swell orders and subscriptions by date, held apart from each other.

  • The ttclid confirmed present on a live order.
  • Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
  • First payments reconciled against imported conversions, with renewals reported separately.

Swell → TikTok · free audit

What we check in the free audit

  • Count orders carrying the ttclid
  • Follow one real conversion end to end
  • Compare monthly conversion count against new customer count
  • Measure ttclid capture rate on TikTok traffic specifically
  • Read the match rate, not the success message

Checked against

Swell orders and subscriptions by date, held apart from each other.

Get my free conversion tracking audit

Free30 minutesNo obligation

Swell → TikTok · when not to buy

When you don't need this — Swell → TikTok

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the ttclid.
  • A store selling only one-off products does not have the renewal problem.
  • 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.

Swell → TikTok · what we deliver

What gets built — Swell → TikTok

  • Identifier capture into Swell

    Write the identifier into customer metadata so the first payment can be attributed and renewals can be recognised as renewals.

  • Event source: the Swell order and subscription webhooks

    Send one-off orders and first subscription payments. Renewals belong in a retention figure.

  • 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 and cancellations inside the first period reverse.

Written guarantee

95%+ tracking accuracy

Measured against Swell orders and subscriptions by date, held apart from each other.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Swell → TikTok questions, answered

Capture it on landing and write it to the Swell cart or customer metadata as soon as one exists. The webhook then has it when payment completes, even in another browser.

Free · 30 min

Get Swell and TikTok joined properly

Free30 minutesNo obligation