Skip to main content
LoyaltyLion → AppsFlyerIntegration guide

Connecting LoyaltyLion to AppsFlyer

LoyaltyLion is built around tiers, which means a customer's discount rate changes as they spend more — and so does the margin on every subsequent order. 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 LoyaltyLion tier 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

LoyaltyLion and AppsFlyer: in-app loyalty events only, net revenue

Only if your app shows the loyalty program: send in-app loyalty joined, tier reached and purchase net of tier discount with the device ID. Never send web events, points balances or point value as revenue, since AppsFlyer forwards revenue to ad networks. Choose one source for purchases, app SDK or server, and map LoyaltyLion webhook users to devices first.

AppsFlyer attributes app installs and in-app events to device IDs, and most LoyaltyLion activity happens on the web store where there is no appsflyer_id. Sending web points earned or web orders to AppsFlyer produces events with no install behind them. The pair only makes sense if your app shows the loyalty program and members redeem or earn inside it.

In that case, send a small set of in-app events with the device ID: loyalty joined, tier reached, and purchase with revenue net of the tier discount. Do not send points balance or the cash equivalent of points earned as revenue. AppsFlyer forwards revenue to the ad networks it postbacks to, so inflated revenue becomes inflated ROAS in every one of them.

Watch duplication between your app SDK and your server. If the app fires a purchase event on the confirmation screen and your backend also posts the same order through the server-to-server API when LoyaltyLion awards points, every in-app order counts twice downstream. Choose one source for purchases, and if loyalty events come from LoyaltyLion webhooks, make sure the user is mapped to a device before you post anything.

LoyaltyLion → AppsFlyer · what breaks

Why this join usually fails — LoyaltyLion → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches LoyaltyLion

    Tier benefits apply automatically at checkout, so the discount is inside the order rather than in a code.

  2. 02

    Tier discounts absorbed silently into order value

    Unlike a coupon, a tier discount has no code. It is applied automatically and disappears into the order total, so the margin erosion from a maturing loyalty base is invisible in every marketing report.

  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.

LoyaltyLion → AppsFlyer · the fix

What working looks like — LoyaltyLion → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every redemption

  • 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

LoyaltyLion → AppsFlyer · architecture

How LoyaltyLion and AppsFlyer actually connect

  1. 1

    LoyaltyLion holds the truth

    A top-tier customer buys at a permanently lower margin. Their order value looks identical to a new customer's and is worth meaningfully less, which matters when you are deciding what a new customer is worth acquiring.

  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 LoyaltyLion tier order.

  4. 4

    The event source decides reliability

    Send orders net of tier discount, with the tier recorded so margin by cohort stays visible.

  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.

LoyaltyLion → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the redemption

  • Sent from your order feed with tier attached

  • 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

    Tier benefits apply automatically at checkout, so the discount is inside the order rather than in a code.

  • Sent from the browser

    Unlike a coupon, a tier discount has no code. It is applied automatically and disappears into the order total, so the margin erosion from a maturing loyalty base is invisible in every marketing report.

  • 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

LoyaltyLion → AppsFlyer · diagnose

Diagnostic order — LoyaltyLion → AppsFlyer

  1. 01

    Count redemptions carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare average margin by loyalty tier

    As the programme matures this gap widens, and it is the reason a growing loyal base can coincide with falling profitability.

  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.

LoyaltyLion → AppsFlyer · prove

How it gets proven — LoyaltyLion → AppsFlyer

Source of truth

Store orders with the customer's loyalty tier recorded at the time of purchase.

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live redemption.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • Orders reconciled net of tier discount against imported conversions, with tier recorded.

LoyaltyLion → AppsFlyer · free audit

What we check in the free audit

  • Count redemptions carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Compare average margin by loyalty tier
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

Store orders with the customer's loyalty tier recorded at the time of purchase.

Get my free conversion tracking audit

Free30 minutesNo obligation

LoyaltyLion → AppsFlyer · when not to buy

When you don't need this — LoyaltyLion → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred redemptions and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • Flat-rate loyalty programmes without tiers do not have this problem.
  • 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.

LoyaltyLion → AppsFlyer · what we deliver

What gets built — LoyaltyLion → AppsFlyer

  • Identifier capture into LoyaltyLion

    Record the tier on the order and net tier discounts out of the reported value.

  • Event source: your order feed with tier attached

    Send orders net of tier discount, with the tier recorded so margin by cohort stays visible.

  • 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

    Refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against Store orders with the customer's loyalty tier recorded at the time of purchase.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

LoyaltyLion → AppsFlyer questions, answered

Only for loyalty activity that happens in your app, posted with the AppsFlyer device ID. Web loyalty events have no device identifier and cannot be attributed to an install.

Free · 30 min

Get LoyaltyLion and AppsFlyer joined properly

Free30 minutesNo obligation