Skip to main content
SamCart → TikTokIntegration guide

Connecting SamCart to TikTok Events API

SamCart is a checkout platform built for conversion optimisation, which means order bumps and upsells are the point — and they complicate the value on every order. 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 SamCart 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

SamCart to TikTok: CompletePayment that doesn't triple-count funnels

Fire CompletePayment once per customer from the initial SamCart order, not on every upsell page, and send upsell revenue as a different event. Pass ttclid explicitly into the checkout URL and confirm it on a test order inside the TikTok app. Send the server event with the pixel's event_id, hashed email and a value including bumps.

TikTok's pixel can fire CompletePayment on every SamCart page that looks like a confirmation, including each upsell page, and campaigns optimizing on that event will chase people who click yes to upsells rather than new buyers. Fire CompletePayment once per customer, from the initial order, and send upsell revenue as a different event if you want it recorded.

The ttclid needs to reach the SamCart order through the checkout URL. TikTok in-app buyers often land on a sales page on your domain and then tap through to a SamCart checkout on another domain; a cookie set on the sales page will not travel, so pass the parameter explicitly and confirm it on a test order placed inside the TikTok app.

Send the server CompletePayment with the same event_id the pixel used, hashed email from the order, and a value that includes bumps. If you hold the server event until upsells finish so the value includes them, make sure the pixel's version does not reach TikTok first with the smaller figure; check how TikTok resolves differing values on deduplicated events before relying on either.

SamCart → TikTok · what breaks

Why this join usually fails — SamCart → TikTok

  1. 01

    The ttclid never reaches SamCart

    SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition.

  2. 02

    Upsells counted as separate acquisitions

    A funnel with two upsells can produce three orders from one customer. Counted as three conversions, the campaign looks three times better than it is.

  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.

SamCart → TikTok · the fix

What working looks like — SamCart → 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

SamCart → TikTok · architecture

How SamCart and TikTok actually connect

  1. 1

    SamCart holds the truth

    The headline product price is rarely what the customer paid. Order bumps and one-click upsells are the platform's core feature, so the order total and the product price routinely differ substantially.

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

  4. 4

    The event source decides reliability

    Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.

  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.

SamCart → TikTok · normal or broken

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

Normal, not a fault

  • The ttclid present on the order

  • Sent from the SamCart order 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

    SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition.

  • Sent from the browser

    A funnel with two upsells can produce three orders from one customer. Counted as three conversions, the campaign looks three times better than it is.

  • 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

SamCart → TikTok · diagnose

Diagnostic order — SamCart → TikTok

  1. 01

    Count orders carrying the ttclid

  2. 02

    Follow one real conversion end to end

  3. 03

    Follow one purchase with upsells through to the conversions sent

    If three orders produced three acquisition conversions, you have found the inflation.

  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.

SamCart → TikTok · prove

How it gets proven — SamCart → TikTok

Source of truth

SamCart's order records for the same window, including bumps and upsells.

  • The ttclid confirmed present on a live order.
  • Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
  • A purchase with two upsells confirmed to produce one acquisition conversion at the combined value.

SamCart → TikTok · free audit

What we check in the free audit

  • Count orders carrying the ttclid
  • Follow one real conversion end to end
  • Follow one purchase with upsells through to the conversions sent
  • Measure ttclid capture rate on TikTok traffic specifically
  • Read the match rate, not the success message

Checked against

SamCart's order records for the same window, including bumps and upsells.

Get my free conversion tracking audit

Free30 minutesNo obligation

SamCart → TikTok · when not to buy

When you don't need this — SamCart → TikTok

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the ttclid.
  • If you run a single product with no bumps or upsells, the standard checkout approach applies and none of this complexity is relevant.
  • 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.

SamCart → TikTok · what we deliver

What gets built — SamCart → TikTok

  • Identifier capture into SamCart

    Pass the identifier into the SamCart checkout URL and confirm it lands on the order, then decide how upsell orders relate to the parent purchase before sending anything.

  • Event source: the SamCart order webhook

    Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.

  • 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 are recorded and, on aggressive upsell funnels, refund rates are high enough that ignoring them materially overstates performance.

Written guarantee

95%+ tracking accuracy

Measured against SamCart's order records for the same window, including bumps and upsells.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

SamCart → TikTok questions, answered

Check SamCart's integration settings for your plan. Whatever it offers, confirm how it treats upsell pages before trusting the count.

Free · 30 min

Get SamCart and TikTok joined properly

Free30 minutesNo obligation