Skip to main content
MemberPress → AppsFlyerIntegration guide

Connecting MemberPress to AppsFlyer

MemberPress runs memberships inside WordPress, which means you own the database and inherit every WordPress problem alongside it. 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 MemberPress subscription 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

MemberPress to AppsFlyer: web checkout for app users

Relevant only if the app sends users to a MemberPress web checkout. Pass the appsflyer_id into the checkout link, save it to user meta, and post revenue from the transaction hook to AppsFlyer's server-to-server API; skip members with no stored ID. Send renewals under a distinct event name, and stop the SDK duplicating purchases.

AppsFlyer is only relevant if your membership is consumed in a mobile app. The interesting case is an app that sends users out to a MemberPress checkout on the web, which Apple's US rules now permit; confirm the current terms before building around it. The purchase then happens in WordPress, but the install and the campaign that caused it live in AppsFlyer. To join them, the app has to pass its appsflyer_id into the checkout link, the checkout must save it to user meta, and the MemberPress transaction hook posts the revenue to AppsFlyer's server-to-server events API against that device.

Members who sign up on the web without ever coming from the app have no device identifier, and sending their purchases to AppsFlyer produces orphan revenue attributed to nothing. Filter them out at the hook: no stored appsflyer_id, no event.

Renewals need a decision. Sending each recurring transaction as in-app revenue lets AppsFlyer's cohort reports show lifetime value by install source, which is the main reason to bother. Send them with a distinct event name from the first purchase, and make sure the app's SDK is not also logging the same purchase when the member returns from the browser.

MemberPress → AppsFlyer · what breaks

Why this join usually fails — MemberPress → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches MemberPress

    Page caching serves a cached render to the visitor, so anything relying on a dynamically populated field can silently fail. The identifier has to be captured and stored as subscription metadata server-side, not carried in a rendered page.

  2. 02

    Caching between the visitor and your code

    The same problem that breaks WooCommerce tracking. A cached page never runs your capture logic, and the failure is invisible because the site still works.

  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.

MemberPress → AppsFlyer · the fix

What working looks like — MemberPress → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every membership

  • 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

MemberPress → AppsFlyer · architecture

How MemberPress and AppsFlyer actually connect

  1. 1

    MemberPress holds the truth

    Owning the database is the advantage — you can query it directly and reconcile without depending on anyone. The disadvantage is that caching, plugin conflicts and optimisation tools sit between your visitor and your code.

  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 MemberPress subscription.

  4. 4

    The event source decides reliability

    Fire server-side from the PHP hook, which runs regardless of caching, and value recurring memberships over their expected life.

  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.

MemberPress → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the membership

  • Sent from the MemberPress transaction-completed 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

    Page caching serves a cached render to the visitor, so anything relying on a dynamically populated field can silently fail. The identifier has to be captured and stored as subscription metadata server-side, not carried in a rendered page.

  • Sent from the browser

    The same problem that breaks WooCommerce tracking. A cached page never runs your capture logic, and the failure is invisible because the site still works.

  • 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

MemberPress → AppsFlyer · diagnose

Diagnostic order — MemberPress → AppsFlyer

  1. 01

    Count memberships carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Submit a test signup through a fully cached page

    Not as a logged-in admin, which bypasses the cache. If the metadata is empty on the cached path, caching is your cause.

  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.

MemberPress → AppsFlyer · prove

How it gets proven — MemberPress → AppsFlyer

Source of truth

MemberPress transactions and subscriptions in your own WordPress database, for the same window.

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live membership.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • Subscription metadata confirmed populated on a signup made as an anonymous visitor through cache.

MemberPress → AppsFlyer · free audit

What we check in the free audit

  • Count memberships carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Submit a test signup through a fully cached page
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

MemberPress transactions and subscriptions in your own WordPress database, for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

MemberPress → AppsFlyer · when not to buy

When you don't need this — MemberPress → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred memberships and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If you run no caching layer and a single membership tier, a developer can wire this in an afternoon.
  • 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.

MemberPress → AppsFlyer · what we deliver

What gets built — MemberPress → AppsFlyer

  • Identifier capture into MemberPress

    Capture the identifier and write it to subscription metadata through a MemberPress or WordPress hook, so it lives in your database rather than in a page that might be cached.

  • Event source: the MemberPress transaction-completed hook

    Fire server-side from the PHP hook, which runs regardless of caching, and value recurring memberships over their expected life.

  • 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

    Cancellations and refunds are recorded against the subscription and should reduce the reported figure.

Written guarantee

95%+ tracking accuracy

Measured against MemberPress transactions and subscriptions in your own WordPress database, for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

MemberPress → AppsFlyer questions, answered

Only if the app passes its AppsFlyer device ID into the web checkout and MemberPress stores it on the member. Without that, there is nothing to join.

Free · 30 min

Get MemberPress and AppsFlyer joined properly

Free30 minutesNo obligation