Skip to main content
Ecwid → X AdsIntegration guide

Connecting Ecwid to X Ads

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. X is a conversation platform where a large share of engagement is discussion rather than intent, which makes the gap between engagement metrics and conversions unusually wide. The join between them succeeds or fails on one thing: whether the twclid click identifier reaches the Ecwid order before the conversion happens, because X Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Ecwid to X Ads: twclid through the embed and the in-app browser

An X click crosses the in-app browser and the Ecwid widget, so store twclid in a first-party cookie on first load and write it into an Ecwid extra field when the cart is created. Send the paid order from Ecwid's webhook to the X Conversions API with twclid, hashed email, value, currency and the Ecwid order number as conversion ID.

An X click on an Ecwid store passes through two environments that both lose data: X's in-app browser, with short-lived storage, and then the Ecwid widget inside the host page, which does not share the host page's context. Capture twclid on the host page's first load, store it in a first-party cookie, and write it into an Ecwid extra field when the cart is created, not at the end of checkout, by which point the in-app session may have dropped the cookie.

Send the paid order to the X Conversions API from Ecwid's webhook with twclid, the hashed email from the order, value and currency, and the Ecwid order number as conversion ID. If an X pixel on the host page fires a purchase from the widget's confirmation step, it must carry the same conversion ID; if you cannot guarantee that, send server-only.

A miss specific to X: shoppers open the link in the in-app browser, browse, then reopen your site in Safari or Chrome to buy. That order arrives with no twclid at all, and hashed email is the only thing left that can connect it, so make sure every server event includes it. Measure what share of X-referred orders carry twclid; if it is low, the in-app hop is the reason, not a broken webhook.

Ecwid → X Ads · what breaks

Why this join usually fails — Ecwid → X Ads

  1. 01

    The twclid click identifier 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

    Engagement mistaken for intent

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  4. 04

    Nothing reconciles afterwards

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

Ecwid → X Ads · the fix

What working looks like — Ecwid → X Ads

  • The twclid click identifier on every order

  • Conversions arriving in X Ads

    The conversion is matched to a click or an engagement and becomes available for optimisation and reporting.

  • Reconciled against the source

Ecwid → X Ads · architecture

How Ecwid and X Ads 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

    X Ads needs a click to match

    An event X recognises, a conversion identifier for deduplication, hashed customer information, and the click identifier where you have it.

  3. 3

    The identifier is the bridge

    The twclid click identifier, 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

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

Ecwid → X Ads · normal or broken

Working vs. broken, side by side — Ecwid → X Ads

Normal, not a fault

  • The twclid click identifier present on the order

  • Sent from the Ecwid order webhook

  • Deduplicated correctly

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

  • Reconciles with the source

Actually broken

  • The twclid click identifier 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

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  • Nobody has reconciled it

Ecwid → X Ads · diagnose

Diagnostic order — Ecwid → X Ads

  1. 01

    Count orders carrying the twclid click identifier

  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

    Compare engagement rate against conversion rate by campaign

    On X the two frequently move in opposite directions, and that divergence is the finding rather than a measurement fault.

  5. 05

    Read the match rate, not the success message

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

Ecwid → X Ads · prove

How it gets proven — Ecwid → X Ads

Source of truth

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

  • The twclid click identifier confirmed present on a live order.
  • Conversions reconciled per order against imported figures, with deduplication verified on a live test.
  • A purchase completed through the embedded widget, confirmed to report with the identifier attached.

Ecwid → X Ads · free audit

What we check in the free audit

  • Count orders carrying the twclid click identifier
  • Follow one real conversion end to end
  • Open a recent Ecwid order and check its extra fields
  • Compare engagement rate against conversion rate by campaign
  • 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 → X Ads · when not to buy

When you don't need this — Ecwid → X Ads

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the twclid click identifier.
  • 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 X is a brand and community channel for you rather than a performance one, measure it that way and do not force a conversion pipeline onto it.

Ecwid → X Ads · what we deliver

What gets built — Ecwid → X Ads

  • 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 X Ads

    The X Conversions API, posted server-side with the click identifier and hashed customer data.

  • 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 → X Ads questions, answered

Capture twclid on the host page, store it on the Ecwid order through an extra field, and send paid orders to the X Conversions API from Ecwid's order webhook.

Free · 30 min

Get Ecwid and X Ads joined properly

Free30 minutesNo obligation