Skip to main content
SendGrid → AmplitudeIntegration guide

Connecting SendGrid to Amplitude

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

SendGrid to Amplitude: email engagement on the right user

Add your user ID as a custom argument on every SendGrid send, then post Event Webhook clicks, unsubscribes and delivered events to Amplitude with that ID as user_id. Skip or flag opens as unreliable, drop processed and deferred events, separate transactional and marketing event types by category, and set insert_id from SendGrid's event ID.

Amplitude can answer whether an email changed behavior, for example whether users who clicked an onboarding email activated faster, but only if SendGrid's events land on the same user as product activity. SendGrid's Event Webhook identifies recipients by email address. Add your own user ID as a custom argument on every send, so delivered, click and unsubscribe events can be posted to Amplitude with that ID as user_id instead of creating a new user from an email address.

Choose which events go. Clicks and unsubscribes are useful; opens are not trustworthy, because mail privacy features and corporate scanners fetch images automatically and record opens nobody made. Send opens with a property marking them as unreliable, or don't send them. Processed and deferred events are delivery plumbing and only add volume to your event quota.

Transactional mail belongs here more than in ad platforms. A password-reset or verification email is a product step, and how fast it arrives affects activation. Tag transactional sends with a category so marketing and transactional events become separate event types in Amplitude, and set insert_id from SendGrid's event ID so webhook retries don't create phantom engagement spikes. Check Amplitude's integration catalog for a SendGrid connector before building a custom relay.

SendGrid → Amplitude · what breaks

Why this join usually fails — SendGrid → Amplitude

  1. 01

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

    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.

SendGrid → Amplitude · the fix

What working looks like — SendGrid → Amplitude

  • The user ID and device ID pair on every message

  • 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

SendGrid → Amplitude · architecture

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

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

    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.

SendGrid → Amplitude · normal or broken

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

Normal, not a fault

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

  • Sent from your order system

  • 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

    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

    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

SendGrid → Amplitude · diagnose

Diagnostic order — SendGrid → Amplitude

  1. 01

    Count messages carrying the user ID and device ID pair

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

SendGrid → Amplitude · prove

How it gets proven — SendGrid → Amplitude

Source of truth

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

  • The user ID and device ID pair confirmed present on a live message.
  • Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
  • Orders from tagged marketing clicks reconciled against imported conversions, with transactional traffic excluded.

SendGrid → Amplitude · free audit

What we check in the free audit

  • Count messages carrying the user ID and device ID pair
  • Follow one real conversion end to end
  • Check whether transactional links carry campaign parameters
  • Check a purchase event for the price and quantity fields specifically
  • 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 → Amplitude · when not to buy

When you don't need this — SendGrid → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the user ID and device ID pair.
  • If you send only transactional mail, there is no marketing channel here to measure.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

SendGrid → Amplitude · what we deliver

What gets built — SendGrid → Amplitude

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

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

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

Receive SendGrid's Event Webhook on your server and forward selected events to Amplitude's HTTP API, with your user ID passed through SendGrid custom arguments.

Free · 30 min

Get SendGrid and Amplitude joined properly

Free30 minutesNo obligation