Skip to main content
Ecwid → TikTokIntegration guide

Connecting Ecwid to TikTok Events API

Ecwid is a store that embeds into someone else's website, which makes it the only ecommerce platform here where the checkout runs inside a widget on a page you do not fully control. 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 Ecwid 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

Ecwid to TikTok: catch the ttclid before the store widget loads

TikTok's in-app browser can outrun the Ecwid widget's pixel, so read the ttclid in the host page head and persist it server-side immediately. Send CompletePayment from the paid-order webhook with the ttclid from an order extra field, hashed email and phone, and the order number as event_id, matching any browser event Ecwid's TikTok integration sends.

TikTok traffic opens the host page in the in-app browser, and the Ecwid widget initializes after the host page's own scripts. On a heavy Wix or Squarespace page in a slow webview, a shopper can be adding to cart before the widget's TikTok pixel has loaded, and in the worst case the embed never initializes. Read the ttclid in the host page head, before anything else loads, and persist it server-side immediately.

Send CompletePayment from the Ecwid order webhook when the order is paid, with the ttclid written into an order extra field, hashed email and phone from the order, and the order number as event_id. Check whether Ecwid's TikTok integration or pixel setting sends a browser CompletePayment and what it uses as event_id; if it is not the order number, TikTok cannot pair it with your server event and every order counts twice.

Wallet and redirect payments are where in-app sessions break: the payment sheet or provider page can push the shopper out to the system browser, and the order completes in a context with no _ttp cookie. The webhook still fires, which is the reason to send from the server. Measure ttclid presence on orders whose landing UTM says TikTok, not on all orders, because that is the traffic where capture fails.

Ecwid → TikTok · what breaks

Why this join usually fails — Ecwid → TikTok

  1. 01

    The ttclid never reaches Ecwid

    The store runs inside an embedded widget, so the host page's scripts and the widget's own context are not the same environment. An identifier captured by the host page does not automatically reach the order, and a purchase inside the widget does not automatically fire the host page's tags.

  2. 02

    A checkout inside somebody else's page

    The host site and the store widget are two contexts. Tags installed on the host page routinely miss purchases entirely, and nobody notices because the site looks like it is working.

  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.

Ecwid → TikTok · the fix

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

Ecwid → TikTok · architecture

How Ecwid and TikTok actually connect

  1. 1

    Ecwid holds the truth

    Ecwid is authoritative for the order. Because it embeds into WordPress, Wix, Squarespace and plain HTML sites alike, the surrounding page's own analytics frequently has no idea a purchase happened.

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

  4. 4

    The event source decides reliability

    Send from your server when Ecwid reports the order paid. The widget's own client-side events depend on the host page still being open and the embed having initialized correctly, neither of which is guaranteed.

  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.

Ecwid → TikTok · normal or broken

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

Normal, not a fault

  • The ttclid present on the order

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

    The store runs inside an embedded widget, so the host page's scripts and the widget's own context are not the same environment. An identifier captured by the host page does not automatically reach the order, and a purchase inside the widget does not automatically fire the host page's tags.

  • Sent from the browser

    The host site and the store widget are two contexts. Tags installed on the host page routinely miss purchases entirely, and nobody notices because the site looks like it is working.

  • 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

Ecwid → TikTok · diagnose

Diagnostic order — Ecwid → TikTok

  1. 01

    Count orders carrying the ttclid

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a recent Ecwid order and check its extra fields

    If the identifier is not on the order, the host page captured it and never passed it across the embed boundary.

  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.

Ecwid → TikTok · prove

How it gets proven — Ecwid → TikTok

Source of truth

Ecwid's order list for the same window, in the store's currency and timezone.

  • The ttclid confirmed present on a live order.
  • Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
  • A purchase completed through the embedded widget, confirmed to report with the identifier attached.

Ecwid → TikTok · free audit

What we check in the free audit

  • Count orders carrying the ttclid
  • Follow one real conversion end to end
  • Open a recent Ecwid order and check its extra fields
  • Measure ttclid capture rate on TikTok traffic specifically
  • Read the match rate, not the success message

Checked against

Ecwid's order list for the same window, in the store's currency and timezone.

Get my free conversion tracking audit

Free30 minutesNo obligation

Ecwid → TikTok · when not to buy

When you don't need this — Ecwid → TikTok

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the ttclid.
  • If your Ecwid store is a small add-on to a content site with modest volume, the native integrations may be adequate — measure the order volume before commissioning anything.
  • 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.

Ecwid → TikTok · what we deliver

What gets built — Ecwid → TikTok

  • Identifier capture into Ecwid

    Capture the click identifier on the host page and pass it into the Ecwid order through its order-extra-fields or the storefront API, so it lands on the order record rather than staying on the page.

  • Event source: the Ecwid order webhook

    Send from your server when Ecwid reports the order paid. The widget's own client-side events depend on the host page still being open and the embed having initialized correctly, neither of which is guaranteed.

  • 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

    Ecwid records refunds and cancellations against the original order, so reversals can be wired properly.

Written guarantee

95%+ tracking accuracy

Measured against Ecwid's order list for the same window, in the store's currency and timezone.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Ecwid → TikTok questions, answered

Check Ecwid's sales channels and settings for a TikTok option on your plan. Whatever fires in the browser must use the same event_id as your server CompletePayment.

Free · 30 min

Get Ecwid and TikTok joined properly

Free30 minutesNo obligation