Skip to main content
PrestaShop → AppsFlyerIntegration guide

Connecting PrestaShop to AppsFlyer

PrestaShop is self-hosted open source with a large module ecosystem, which means the store's behaviour depends heavily on which modules are installed. 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 PrestaShop 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

PrestaShop and AppsFlyer: send app orders, keep web orders out

AppsFlyer only helps when a PrestaShop app places orders through the webservice API. Flag each order as app-originated and store the device's appsflyer_id on it, then send the purchase server-to-server from the order validation hook once paid, unless the app SDK already logs it. Keep desktop and mobile-web PrestaShop orders out, since they carry no device ID.

AppsFlyer only helps a PrestaShop merchant whose app places orders through the PrestaShop webservice API. Those orders are created in the same back office as web orders, so the first job is a reliable flag on each order saying it came from the app, plus the appsflyer_id of the device that placed it. Without the device ID stored on the order, a server event about that purchase has nothing to attribute to and lands as organic.

Send the purchase server-to-server from the order validation hook only when the order is flagged as app-originated and has reached a paid state. If the app already fires a purchase through the SDK on its confirmation screen, pick one of the two; both will be counted and forwarded to every network AppsFlyer feeds. Credit slips and cancellations need their own event with negative or reversed revenue, and the event names should match whatever your AppsFlyer setup already expects, so confirm them in the account rather than inventing new ones.

Do not send desktop and mobile-web PrestaShop orders here. They carry no device ID and either vanish or inflate organic. If most revenue is on the website, AppsFlyer covers installs and in-app orders only, and web orders go to the ad platforms directly. Check whether your AppsFlyer plan includes its web-to-app product before assuming any view across the two.

PrestaShop → AppsFlyer · what breaks

Why this join usually fails — PrestaShop → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches PrestaShop

    Module conflicts and caching both interfere with anything running in the page, and multi-store installations complicate which store an order belongs to.

  2. 02

    Module ecosystem interference

    PrestaShop stores accumulate modules, and any of them can alter checkout behaviour or strip what your code depends on. Failures appear after an unrelated update.

  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.

PrestaShop → AppsFlyer · the fix

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

PrestaShop → AppsFlyer · architecture

How PrestaShop and AppsFlyer actually connect

  1. 1

    PrestaShop holds the truth

    You own the data and can query it directly. Pin down which order states count as revenue, since PrestaShop's state machine is more granular than most.

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

  4. 4

    The event source decides reliability

    Fire server-side from the hook rather than the confirmation template.

  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.

PrestaShop → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the order

  • Sent from the PrestaShop order validation hook

  • 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

    Module conflicts and caching both interfere with anything running in the page, and multi-store installations complicate which store an order belongs to.

  • Sent from the browser

    PrestaShop stores accumulate modules, and any of them can alter checkout behaviour or strip what your code depends on. Failures appear after an unrelated update.

  • 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

PrestaShop → AppsFlyer · diagnose

Diagnostic order — PrestaShop → AppsFlyer

  1. 01

    Count orders carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check order metadata on ten recent orders

    Partial coverage across orders points at a module conflict rather than a missing implementation.

  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.

PrestaShop → AppsFlyer · prove

How it gets proven — PrestaShop → AppsFlyer

Source of truth

PrestaShop's order records in your own database, for the same window and order state set.

  • 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.
  • Order metadata confirmed present across ten consecutive orders rather than one.

PrestaShop → 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
  • Check order metadata on ten recent orders
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

PrestaShop's order records in your own database, for the same window and order state set.

Get my free conversion tracking audit

Free30 minutesNo obligation

PrestaShop → AppsFlyer · when not to buy

When you don't need this — PrestaShop → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If your PrestaShop install is heavily moduled and maintained by another party, scope their involvement before starting.
  • 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.

PrestaShop → AppsFlyer · what we deliver

What gets built — PrestaShop → AppsFlyer

  • Identifier capture into PrestaShop

    Capture the identifier and write it to order metadata through a hook, server-side, so it does not depend on page execution.

  • Event source: the PrestaShop order validation hook

    Fire server-side from the hook rather than the confirmation template.

  • 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

    Credit slips are recorded against the order.

Written guarantee

95%+ tracking accuracy

Measured against PrestaShop's order records in your own database, for the same window and order state set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

PrestaShop → AppsFlyer questions, answered

Not one we can confirm. The usual route is the AppsFlyer SDK inside the app plus a server-to-server event from PrestaShop for orders the app placed.

Free · 30 min

Get PrestaShop and AppsFlyer joined properly

Free30 minutesNo obligation