Skip to main content
Ecwid → AppsFlyerIntegration guide

Connecting Ecwid to AppsFlyer

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. AppsFlyer exists because mobile app attribution is a different problem from web attribution, and on iOS a large share of it is now aggregated and delayed by design rather than by accident. The join between them succeeds or fails on one thing: whether the AppsFlyer device identifier, appsflyer_id reaches the Ecwid order before the conversion happens, because AppsFlyer can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Ecwid inside an app webview: getting appsflyer_id onto the order

AppsFlyer attributes to app installs, so this only applies when an app shows the Ecwid store in a webview. The app passes appsflyer_id into the webview, the store page writes it into an Ecwid order extra field, and your server sends the purchase to AppsFlyer's server-to-server API from the paid-order webhook. Desktop orders without the identifier are not sent.

AppsFlyer attributes events to an app install, and an Ecwid store is a website, so for most merchants the pair does not apply. It does come up when a merchant ships a simple app that wraps their site, with the Ecwid store loaded in a webview. Purchases then happen inside the app, but the AppsFlyer SDK sits in the native layer and has no idea an Ecwid order was placed in the web content.

Bridging it takes three pieces. The app passes the appsflyer_id into the webview, typically as a URL parameter or a JavaScript value set on load. The store page writes it into an Ecwid order extra field at checkout, so it is stored on the order. Your server then sends the purchase to AppsFlyer's server-to-server events API from Ecwid's paid-order webhook, with that device identifier and the order value. If the native layer also logs a purchase on a thank-you screen, pick one source or both fire.

Orders placed on the same store from a desktop browser have no device identifier and must not be sent. Check the share of orders that carry the field: if it is low, the app is not where customers buy, and AppsFlyer is the wrong destination for this revenue.

Ecwid → AppsFlyer · what breaks

Why this join usually fails — Ecwid → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_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

    Web conversions sent to a mobile attribution platform

    This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.

  4. 04

    Nothing reconciles afterwards

    AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.

Ecwid → AppsFlyer · the fix

What working looks like — Ecwid → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every order

  • Conversions arriving in AppsFlyer

    The event is attributed to the install source, forwarded to whichever networks are configured, and appears in the cohort reporting.

  • Reconciled against the source

Ecwid → AppsFlyer · architecture

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

    AppsFlyer needs a click to match

    AppsFlyer needs the device identifier and an event name it recognizes, plus the revenue value for in-app purchases. A server event about a user with no linked device cannot be attributed to an install.

  3. 3

    The identifier is the bridge

    The AppsFlyer device identifier, appsflyer_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

    AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.

Ecwid → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the order

  • Sent from the Ecwid order webhook

  • Deduplicated correctly

    AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.

  • Reconciles with the source

Actually broken

  • The AppsFlyer device identifier, appsflyer_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

    This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.

  • Nobody has reconciled it

Ecwid → AppsFlyer · diagnose

Diagnostic order — Ecwid → AppsFlyer

  1. 01

    Count orders carrying the AppsFlyer device identifier, appsflyer_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

    Check what share of your revenue happens in the app at all

    If most purchases are on the web, AppsFlyer is not your conversion destination and the work belongs somewhere else entirely.

  5. 05

    Read the match rate, not the success message

    AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.

Ecwid → AppsFlyer · prove

How it gets proven — Ecwid → AppsFlyer

Source of truth

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

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live order.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • A purchase completed through the embedded widget, confirmed to report with the identifier attached.

Ecwid → AppsFlyer · free audit

What we check in the free audit

  • Count orders carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Open a recent Ecwid order and check its extra fields
  • Check what share of your revenue happens in the app at all
  • 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 → AppsFlyer · when not to buy

When you don't need this — Ecwid → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the AppsFlyer device identifier, appsflyer_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 have no mobile app, this is not a destination for you. If you have one but sell mostly on the web, send web conversions to your ad platforms directly and use AppsFlyer only for install and in-app events.

Ecwid → AppsFlyer · what we deliver

What gets built — Ecwid → AppsFlyer

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

    The AppsFlyer server-to-server events API, posted from your billing system with the device identifier and revenue.

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

Yes, if the app passes the appsflyer_id into the webview and checkout stores it in an Ecwid order extra field, so your server can send the purchase with it.

Free · 30 min

Get Ecwid and AppsFlyer joined properly

Free30 minutesNo obligation