Skip to main content
Ecwid → MixpanelIntegration guide

Connecting Ecwid to Mixpanel

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. Mixpanel is a product analytics tool, not an ad platform, which means it has no attribution model of its own and will faithfully report whatever event schema you give it — including a bad one. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Ecwid order before the conversion happens, because Mixpanel can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Ecwid to Mixpanel: one distinct_id from host page to order

The purchase arrives server-side from Ecwid's order webhook, so read Mixpanel's distinct_id on the host page when the cart starts and save it in an Ecwid extra field. Send the purchase with that distinct_id and the Ecwid order number as $insert_id, send refunds as their own event, and use one email-derived customer key across host site and Ecwid accounts.

Mixpanel's SDK runs on the host page and sees the visitor browse; the purchase happens inside the Ecwid widget and reaches you server-side from the order webhook. To land on the same profile, the purchase has to carry the same distinct_id. Read Mixpanel's current distinct_id on the host page when the cart starts and write it into an Ecwid extra field, so it sits on the order next to the click IDs and comes back with the order data.

Agree the event name with the product team first. If the host page also fires a client-side purchase from the widget's JavaScript events, decide which one counts and drop the other, or give both the same $insert_id, the Ecwid order number, so Mixpanel keeps one. Ecwid reports status changes on the order, so send refunds as their own event rather than trying to edit the original purchase.

Accounts are where this pair breaks. An Ecwid customer account is created at checkout, while your site's Mixpanel identify call happens on the host site's own login, if it has one. If the two use different user IDs, a returning customer's second order lands on a different profile from the first and repeat-purchase reports undercount. Pick one customer key, usually derived from email, and use it in both places.

Ecwid → Mixpanel · what breaks

Why this join usually fails — Ecwid → Mixpanel

  1. 01

    The distinct_id 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

    One event schema, two teams, no agreement

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  4. 04

    Nothing reconciles afterwards

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Ecwid → Mixpanel · the fix

What working looks like — Ecwid → Mixpanel

  • The distinct_id on every order

  • Conversions arriving in Mixpanel

    The event lands on the user profile and becomes available in funnels, retention and cohort analysis.

  • Reconciled against the source

Ecwid → Mixpanel · architecture

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

    Mixpanel needs a click to match

    Mixpanel needs a distinct_id, an event name and its properties. Events without a distinct_id are rejected; events with the wrong one land on a stranger's profile.

  3. 3

    The identifier is the bridge

    The distinct_id, 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

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

Ecwid → Mixpanel · normal or broken

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

Normal, not a fault

  • The distinct_id present on the order

  • Sent from the Ecwid order webhook

  • Deduplicated correctly

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

  • Reconciles with the source

Actually broken

  • The distinct_id 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

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  • Nobody has reconciled it

Ecwid → Mixpanel · diagnose

Diagnostic order — Ecwid → Mixpanel

  1. 01

    Count orders carrying the distinct_id

  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

    List every event name in the project and look for near-duplicates

    Case differences, tense differences and synonyms are the usual finding, and they are cheap to fix before a year of data is built on them.

  5. 05

    Read the match rate, not the success message

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Ecwid → Mixpanel · prove

How it gets proven — Ecwid → Mixpanel

Source of truth

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

  • The distinct_id confirmed present on a live order.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • A purchase completed through the embedded widget, confirmed to report with the identifier attached.

Ecwid → Mixpanel · free audit

What we check in the free audit

  • Count orders carrying the distinct_id
  • Follow one real conversion end to end
  • Open a recent Ecwid order and check its extra fields
  • List every event name in the project and look for near-duplicates
  • 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 → Mixpanel · when not to buy

When you don't need this — Ecwid → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
  • 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 you already have the same events in a warehouse and nobody is running product analysis on them, adding Mixpanel adds a second source of truth rather than an answer.

Ecwid → Mixpanel · what we deliver

What gets built — Ecwid → Mixpanel

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

    The Mixpanel ingestion API, posted server-side from your backend with the distinct_id and event 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 → Mixpanel questions, answered

From Ecwid's order webhook on your server, posting to Mixpanel's ingestion API with the distinct_id you stored on the order from the host page.

Free · 30 min

Get Ecwid and Mixpanel joined properly

Free30 minutesNo obligation