Skip to main content
SendGrid → AppsFlyerIntegration guide

Connecting SendGrid to AppsFlyer

SendGrid carries both transactional and marketing mail through one account, which is convenient operationally and the source of the measurement problem: only one of those two streams has anything to do with acquisition. 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 SendGrid send 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

SendGrid email links into AppsFlyer: owned media, not paid installs

Treat SendGrid email as an owned media source: link campaigns to an AppsFlyer OneLink so in-app purchases after email clicks are attributed to email. SendGrid's click-tracking redirect can stop the app opening, so follow AppsFlyer's guidance on a branded link domain or disable click tracking on deep links. Report each purchase from one sender only.

The useful version of this pair is email as an owned media source inside AppsFlyer: a SendGrid campaign links to a OneLink, the recipient opens the app or installs it, and the in-app purchase that follows is attributed to email rather than showing up as organic. Without that, every app purchase driven by your newsletters looks organic, and the paid networks AppsFlyer forwards to get judged against an inflated baseline.

SendGrid's click tracking is the thing that breaks it. Click tracking rewrites every link through a SendGrid or branded tracking domain, and a link that first opens a redirect in the browser does not open the app directly as a universal or app link would. Check AppsFlyer's current guidance on email service providers and whether it supports a click-recording setup with SendGrid's branded link domain; the alternative is disabling SendGrid click tracking on the deep links and relying on AppsFlyer for the click.

Revenue is the second hazard. If the app SDK reports a purchase and your server also posts the same order to AppsFlyer, revenue counts twice in AppsFlyer and in every partner it forwards to. Pick one sender per purchase. A web order placed after a SendGrid click has no device ID and does not belong in AppsFlyer at all.

SendGrid → AppsFlyer · what breaks

Why this join usually fails — SendGrid → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches SendGrid

    Marketing clicks land with tracking parameters; transactional clicks generally do not, and both arrive on the same domain.

  2. 02

    Receipt clicks credited to email marketing

    A customer clicking through their own order confirmation to check delivery is not an email marketing conversion. Untagged transactional traffic pooled with marketing makes the channel look far better than it is.

  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.

SendGrid → AppsFlyer · the fix

What working looks like — SendGrid → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every message

  • 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

SendGrid → AppsFlyer · architecture

How SendGrid and AppsFlyer actually connect

  1. 1

    SendGrid holds the truth

    A receipt and a promotional campaign are both an email in the same account. Only the campaign can plausibly have caused a purchase, and only if the purchase carries the campaign's identifier.

  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 SendGrid send.

  4. 4

    The event source decides reliability

    Send orders with the marketing campaign attributed where a tagged click preceded them.

  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.

SendGrid → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the message

  • Sent from your order system

  • 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

    Marketing clicks land with tracking parameters; transactional clicks generally do not, and both arrive on the same domain.

  • Sent from the browser

    A customer clicking through their own order confirmation to check delivery is not an email marketing conversion. Untagged transactional traffic pooled with marketing makes the channel look far better than it is.

  • 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

SendGrid → AppsFlyer · diagnose

Diagnostic order — SendGrid → AppsFlyer

  1. 01

    Count messages carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether transactional links carry campaign parameters

    If they do, every receipt click is being credited to email and the channel's reported performance is inflated.

  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.

SendGrid → AppsFlyer · prove

How it gets proven — SendGrid → AppsFlyer

Source of truth

Your order system, with marketing sends distinguished from transactional ones.

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live message.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • Orders from tagged marketing clicks reconciled against imported conversions, with transactional traffic excluded.

SendGrid → AppsFlyer · free audit

What we check in the free audit

  • Count messages carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Check whether transactional links carry campaign parameters
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

Your order system, with marketing sends distinguished from transactional ones.

Get my free conversion tracking audit

Free30 minutesNo obligation

SendGrid → AppsFlyer · when not to buy

When you don't need this — SendGrid → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If you send only transactional mail, there is no marketing channel here to measure.
  • 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.

SendGrid → AppsFlyer · what we deliver

What gets built — SendGrid → AppsFlyer

  • Identifier capture into SendGrid

    Tag marketing links explicitly and attribute purchases from those; treat transactional traffic as returning customers, not as a channel.

  • Event source: your order system

    Send orders with the marketing campaign attributed where a tagged click preceded them.

  • 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 Your order system, with marketing sends distinguished from transactional ones.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

SendGrid → AppsFlyer questions, answered

SendGrid click tracking wraps links in a redirect, which stops them opening the app directly. Use a supported branded-link setup or disable click tracking on deep links.

Free · 30 min

Get SendGrid and AppsFlyer joined properly

Free30 minutesNo obligation