Skip to main content
Twilio → AppsFlyerIntegration guide

Connecting Twilio to AppsFlyer

Twilio is infrastructure rather than a product, so what it can tell you depends entirely on what your own application logged alongside the message or call. 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 Twilio message or call record 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

Twilio Verify signups and SMS links in AppsFlyer

Send AppsFlyer an event from your server when a Twilio Verify check is approved, using the appsflyer_id stored on the user, once and with a stable event identifier. Put OneLink attribution links in Twilio SMS, checking that link shortening preserves them. Never forward delivery callbacks, and don't fire registration on code sent.

Twilio touches app attribution in two places. The first is phone verification during signup: an approved Twilio Verify check is when an install becomes a registered user, and that is the event worth sending to AppsFlyer, from your server, with the appsflyer_id your app reported at launch and stored on the user. Twilio knows the phone number; only your backend knows which device it belongs to.

The second is links inside SMS sent through Twilio. A text that drives app opens or re-engagement needs an AppsFlyer OneLink, or another attribution link, in the message body, or those opens land as organic. Twilio can shorten and track links on a messaging service; check whether that rewriting preserves the attribution link's parameters and redirect behavior before using it on a campaign.

Do not forward Twilio delivery callbacks as in-app events. Delivered describes a carrier hop, not user behavior, and sending it inflates every network AppsFlyer posts to. Guard against SMS pumping as well: if your registration event fires on code sent, automated fraud shows up as registrations credited to whatever campaign happened to be live. Send the event once, on approval, with a stable event identifier.

Twilio → AppsFlyer · what breaks

Why this join usually fails — Twilio → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches Twilio

    Twilio has no concept of marketing at all. Any identifier has to be attached by your own code at the point the interaction is created, and if it was not, the record cannot be recovered afterwards.

  2. 02

    Transport confused with meaning

    A delivered SMS is not a conversion. Twilio reports delivery, and reading that as a business outcome is the standard mistake when teams wire the console directly.

  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.

Twilio → AppsFlyer · the fix

What working looks like — Twilio → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every interaction

  • 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

Twilio → AppsFlyer · architecture

How Twilio and AppsFlyer actually connect

  1. 1

    Twilio holds the truth

    Twilio knows a message was sent or a call connected. Whether that represented a lead, a booking or a delivery notification is something only your application knows, which makes your own logging the source of truth rather than Twilio's console.

  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 Twilio message or call record.

  4. 4

    The event source decides reliability

    Send from your application when the interaction represents something commercially meaningful, not from Twilio's status callbacks, which report transport rather than outcome.

  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.

Twilio → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the interaction

  • Sent from your application's own event, keyed to the Twilio SID

  • 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

    Twilio has no concept of marketing at all. Any identifier has to be attached by your own code at the point the interaction is created, and if it was not, the record cannot be recovered afterwards.

  • Sent from the browser

    A delivered SMS is not a conversion. Twilio reports delivery, and reading that as a business outcome is the standard mistake when teams wire the console directly.

  • 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

Twilio → AppsFlyer · diagnose

Diagnostic order — Twilio → AppsFlyer

  1. 01

    Count interactions carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether your application logs the business meaning of each interaction

    If it only stores Twilio SIDs and statuses, there is nothing to build a conversion on.

  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.

Twilio → AppsFlyer · prove

How it gets proven — Twilio → AppsFlyer

Source of truth

Your own application's records of Twilio interactions, since Twilio itself stores the transport and not the business meaning.

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live interaction.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • Conversions confirmed to come from your application's business events rather than Twilio's delivery callbacks.

Twilio → AppsFlyer · free audit

What we check in the free audit

  • Count interactions carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Check whether your application logs the business meaning of each interaction
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

Your own application's records of Twilio interactions, since Twilio itself stores the transport and not the business meaning.

Get my free conversion tracking audit

Free30 minutesNo obligation

Twilio → AppsFlyer · when not to buy

When you don't need this — Twilio → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred interactions and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If Twilio is purely notification infrastructure in your stack, it is not a conversion source and should not be treated as one.
  • 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.

Twilio → AppsFlyer · what we deliver

What gets built — Twilio → AppsFlyer

  • Identifier capture into Twilio

    Attach the click identifier in your own application's record when creating the Twilio interaction, and store it alongside the Twilio SID so the two can be joined.

  • Event source: your application's own event, keyed to the Twilio SID

    Send from your application when the interaction represents something commercially meaningful, not from Twilio's status callbacks, which report transport rather than outcome.

  • 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

    Nothing inherent; whatever your application defines as a reversal applies.

Written guarantee

95%+ tracking accuracy

Measured against Your own application's records of Twilio interactions, since Twilio itself stores the transport and not the business meaning.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Twilio → AppsFlyer questions, answered

Have the app report its appsflyer_id to your backend, then post a registration event server-to-server when Twilio returns an approved verification for that user.

Free · 30 min

Get Twilio and AppsFlyer joined properly

Free30 minutesNo obligation