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
- 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.
- 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.
- 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.
- 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
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
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
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
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
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
- 01
Count interactions carrying the AppsFlyer device identifier, appsflyer_id
- 02
Follow one real conversion end to end
- 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.
- 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.
- 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.
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.
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.
Only if the message contains an AppsFlyer attribution link that survives any link shortening. Plain deep links open the app but count as organic.
Almost always because the AppsFlyer device identifier, appsflyer_id never reached the Twilio message or call record. 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. Measure coverage before debugging the dispatch.
AppsFlyer assigns its own device ID and matches installs to clicks through referrer data on Android and Apple's frameworks on iOS. There is no durable cross-device identifier. On iOS without ATT consent, attribution falls back to SKAdNetwork, which returns aggregated conversion values on a delay with no user-level detail at all — so a share of your installs will be attributable only in aggregate, permanently.
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.
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.
More on Twilio → AppsFlyer
- Twilio → Google AdsConnecting Twilio to Google Ads
- Twilio → MetaConnecting Twilio to Meta Conversions API
- Twilio → GA4Connecting Twilio to GA4
RELATED GUIDES
Where Twilio → AppsFlyer fits in the rest of your tracking
- Aircall → AppsFlyerConnecting Aircall to AppsFlyer
- CallTrackingMetrics → AppsFlyerConnecting CallTrackingMetrics to AppsFlyer
- RingCentral → AppsFlyerConnecting RingCentral to AppsFlyer
- Personal injuryConversion tracking for personal injury firms, measured in signed cases
- CallRail → AppsFlyerConnecting CallRail to AppsFlyer
- Invoca → AppsFlyerConnecting Invoca to AppsFlyer
- WhatConverts → AppsFlyerConnecting WhatConverts to AppsFlyer
- Marchex → AppsFlyerConnecting Marchex to AppsFlyer
Free · 30 min
Get Twilio and AppsFlyer joined properly
Free30 minutesNo obligation
