Skip to main content
Ecwid → AmplitudeIntegration guide

Connecting Ecwid to Amplitude

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. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Ecwid order before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Ecwid to Amplitude: carry the device_id across the embed

Amplitude's SDK sits on the host page, so read its device_id there and pass it into the Ecwid order through an extra field. Then send a revenue event from Ecwid's order webhook for each paid order, using the Ecwid order number as insert_id, and wire refunds and cancellations as negative revenue so cohort value stays net.

Amplitude's browser SDK lives on the host page; the Ecwid checkout runs inside the widget. A server-side purchase from Ecwid's order webhook only joins the visitor's browsing history if it carries the device_id the SDK assigned on the host page. Read it there and pass it into the order through an Ecwid extra field at checkout, the same way you carry click IDs. Without that, every purchase lands on a new anonymous user and conversion rate by acquisition cohort means nothing.

Send a revenue event per paid order with price and quantity per line, or one event carrying the order total as revenue, and use the Ecwid order number as insert_id. Ecwid records the order in the store's currency and Amplitude sums revenue as sent, so if you sell in more than one currency, send a normalized value in a separate property. Wire refunds and cancellations from Ecwid's order updates as negative revenue so cohort value is net, not gross.

Registered Ecwid customers have a customer ID; guest checkouts do not. Use your own user ID where it exists, and an email-derived ID only if your site already identifies people that way. Mixing the two rules splits a repeat customer into two Amplitude users, and their second order looks like a new buyer.

Ecwid → Amplitude · what breaks

Why this join usually fails — Ecwid → Amplitude

  1. 01

    The user ID and device ID pair 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

    Revenue events that carry no revenue

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  4. 04

    Nothing reconciles afterwards

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Ecwid → Amplitude · the fix

What working looks like — Ecwid → Amplitude

  • The user ID and device ID pair on every order

  • Conversions arriving in Amplitude

    The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.

  • Reconciled against the source

Ecwid → Amplitude · architecture

How Ecwid and Amplitude 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

    Amplitude needs a click to match

    Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.

  3. 3

    The identifier is the bridge

    The user ID and device ID pair, 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

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

Ecwid → Amplitude · normal or broken

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

Normal, not a fault

  • The user ID and device ID pair present on the order

  • Sent from the Ecwid order webhook

  • Deduplicated correctly

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

  • Reconciles with the source

Actually broken

  • The user ID and device ID pair 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

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  • Nobody has reconciled it

Ecwid → Amplitude · diagnose

Diagnostic order — Ecwid → Amplitude

  1. 01

    Count orders carrying the user ID and device ID pair

  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

    Check a purchase event for the price and quantity fields specifically

    Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.

  5. 05

    Read the match rate, not the success message

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Ecwid → Amplitude · prove

How it gets proven — Ecwid → Amplitude

Source of truth

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

  • The user ID and device ID pair confirmed present on a live order.
  • Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
  • A purchase completed through the embedded widget, confirmed to report with the identifier attached.

Ecwid → Amplitude · free audit

What we check in the free audit

  • Count orders carrying the user ID and device ID pair
  • Follow one real conversion end to end
  • Open a recent Ecwid order and check its extra fields
  • Check a purchase event for the price and quantity fields 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 → Amplitude · when not to buy

When you don't need this — Ecwid → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the user ID and device ID pair.
  • 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 nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Ecwid → Amplitude · what we deliver

What gets built — Ecwid → Amplitude

  • 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 Amplitude

    The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.

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

Send them server-side from Ecwid's order webhook to Amplitude's HTTP API, carrying the device_id from the host page that you stored on the order. Client-side widget events depend on the page staying open.

Free · 30 min

Get Ecwid and Amplitude joined properly

Free30 minutesNo obligation