Skip to main content
Twilio → AmplitudeIntegration guide

Connecting Twilio to Amplitude

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. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Twilio message or call record before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Twilio in Amplitude: product events, not delivery callbacks

Send Amplitude events from your application when users do something meaningful, such as reminder_confirmed or verification_completed, not Twilio status callbacks. Resolve the E.164 phone number to your own user ID first and drop unmatched events, use the MessageSid or CallSid plus event type as insert_id, and keep health or financial details out.

Amplitude belongs in a Twilio stack when messages and calls are part of the product: appointment reminders, two-factor codes, order updates, a support line. The question it answers is behavioral, such as whether users who confirm a reminder by text retain better or churn less, and that only works if the events describe what the user did, not what Twilio's carrier network did.

Status callbacks are the trap. Each message reports queued, sent, delivered and sometimes failed, so wiring callbacks into Amplitude multiplies event volume several times over and tells you nothing about the user. Send events from your application instead, when something meaningful happens: reminder_confirmed when the patient or customer replies YES, verification_completed when the code is accepted, support_call_resolved when your app marks the ticket closed.

Every event needs your own user ID, not the phone number. Resolve the From or To number to a user in your database first, using E.164 formatting on both sides, and drop the event if no user matches rather than creating a user keyed by number. Use the Twilio MessageSid or CallSid plus the event type as the insert_id so a retried send does not double. If the interaction carries health or financial details, keep them out of event properties.

Twilio → Amplitude · what breaks

Why this join usually fails — Twilio → Amplitude

  1. 01

    The user ID and device ID pair 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

    Revenue events that carry no revenue

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  4. 04

    Nothing reconciles afterwards

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Twilio → Amplitude · the fix

What working looks like — Twilio → Amplitude

  • The user ID and device ID pair on every interaction

  • Conversions arriving in Amplitude

    The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.

  • Reconciled against the source

Twilio → Amplitude · architecture

How Twilio and Amplitude 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

    Amplitude needs a click to match

    Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.

  3. 3

    The identifier is the bridge

    The user ID and device ID pair, 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

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

Twilio → Amplitude · normal or broken

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

Normal, not a fault

  • The user ID and device ID pair present on the interaction

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

  • Deduplicated correctly

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

  • Reconciles with the source

Actually broken

  • The user ID and device ID pair 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

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  • Nobody has reconciled it

Twilio → Amplitude · diagnose

Diagnostic order — Twilio → Amplitude

  1. 01

    Count interactions carrying the user ID and device ID pair

  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 a purchase event for the price and quantity fields specifically

    Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.

  5. 05

    Read the match rate, not the success message

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Twilio → Amplitude · prove

How it gets proven — Twilio → Amplitude

Source of truth

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

  • The user ID and device ID pair confirmed present on a live interaction.
  • Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
  • Conversions confirmed to come from your application's business events rather than Twilio's delivery callbacks.

Twilio → Amplitude · free audit

What we check in the free audit

  • Count interactions carrying the user ID and device ID pair
  • Follow one real conversion end to end
  • Check whether your application logs the business meaning of each interaction
  • Check a purchase event for the price and quantity fields specifically
  • 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 → Amplitude · when not to buy

When you don't need this — Twilio → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred interactions and count how many carry the user ID and device ID pair.
  • If Twilio is purely notification infrastructure in your stack, it is not a conversion source and should not be treated as one.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Twilio → Amplitude · what we deliver

What gets built — Twilio → Amplitude

  • 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 Amplitude

    The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.

  • 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 → Amplitude questions, answered

No. They describe delivery, not user behavior, and multiply event volume. Send events from your application when the interaction means something.

Free · 30 min

Get Twilio and Amplitude joined properly

Free30 minutesNo obligation