Skip to main content
Mailgun → Amazon AdsIntegration guide

Connecting Mailgun to Amazon Ads

Mailgun is developer-facing email infrastructure, which means the sending logic lives in your application and the marketing team frequently does not know what is being sent or when. Amazon Ads spans two entirely different situations, and most guidance discusses them as though they were one. The join between them succeeds or fails on one thing: whether a click identifier only for off-Amazon destinations reaches the Mailgun message before the conversion happens, because Amazon Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Mailgun email links to Amazon: Attribution tags, not conversions

There is no conversion to send from Mailgun to Amazon Ads. If your emails link to your Amazon listings, create an Amazon Attribution tag for the email channel, one per send type, and confirm Mailgun's click-tracking redirect keeps the full tag. Expect aggregated, delayed numbers without per-order detail; your own site's sales belong to your order system.

There is no conversion to send from Mailgun to Amazon Ads. Mailgun delivers email; Amazon Ads measures ads. The overlap is narrow: if your application emails customers links to your product listings on Amazon, Amazon Attribution can measure the sales those links drive, since email is one of the off-Amazon channels it reports on.

To do that, create an Attribution tag for the email channel and use it as the link in the message template. Mailgun's click tracking rewrites links through its tracking domain and redirects, so send one real message and confirm the Amazon URL that opens still carries the full tag. If different code paths send different emails, a review request and a restock alert for example, give each its own tag, or the report can't tell you which send sold anything.

Expect aggregated, delayed numbers with no per-order detail, because the purchase happens inside Amazon's checkout. That's enough to decide whether a send type is worth keeping and not much more. Sales on your own site from the same emails are a separate question that belongs at your order system, not in Amazon's reports.

Mailgun → Amazon Ads · what breaks

Why this join usually fails — Mailgun → Amazon Ads

  1. 01

    A click identifier only for off-Amazon destinations never reaches Mailgun

    No session, no click, and the trigger conditions are buried in application code rather than in a campaign tool.

  2. 02

    Nobody able to say why a message was sent

    When send logic lives in application code, the marketing team cannot audit it and the engineering team is not thinking about attribution. Messages accumulate, nobody owns the list, and any analysis of email's contribution is unreliable.

  3. 03

    Per-order attribution promised on Amazon-completed sales

    It does not exist and cannot be built. Amazon owns the checkout and does not release the join. Any proposal offering per-order attribution on sales completing inside Amazon is describing something unavailable.

  4. 04

    Nothing reconciles afterwards

    For off-Amazon conversions, reconcile normally against your own records. For on-Amazon sales, Amazon Attribution is aggregated and delayed by construction — it cannot be reconciled per order and is not meant to be.

Mailgun → Amazon Ads · the fix

What working looks like — Mailgun → Amazon Ads

  • A click identifier only for off-Amazon destinations on every message

  • Conversions arriving in Amazon Ads

    Off-Amazon conversions appear against the campaign. On-Amazon sales appear in Amazon's aggregated attribution reporting, delayed.

  • Reconciled against the source

Mailgun → Amazon Ads · architecture

How Mailgun and Amazon Ads actually connect

  1. 1

    Mailgun holds the truth

    Because sends are triggered in code, the only reliable description of why a message went out lives in your application, not in Mailgun's logs.

  2. 2

    Amazon Ads needs a click to match

    For off-Amazon destinations, an event with a value and the click identifier. For on-Amazon conversions, nothing — the measurement is not yours to do and Amazon Attribution provides aggregated reporting instead.

  3. 3

    The identifier is the bridge

    A click identifier only for off-Amazon destinations, captured at the visit and carried into the Mailgun message.

  4. 4

    The event source decides reliability

    Send orders. Use Mailgun events for deliverability monitoring only.

  5. 5

    Deduplication at the destination

    Only relevant for off-Amazon conversions where both a tag and a server event exist. For on-Amazon purchases the question does not arise, because you are not measuring the conversion at all.

Mailgun → Amazon Ads · normal or broken

Working vs. broken, side by side — Mailgun → Amazon Ads

Normal, not a fault

  • A click identifier only for off-Amazon destinations present on the message

  • Sent from your order system

  • Deduplicated correctly

    Only relevant for off-Amazon conversions where both a tag and a server event exist. For on-Amazon purchases the question does not arise, because you are not measuring the conversion at all.

  • Reconciles with the source

Actually broken

  • A click identifier only for off-Amazon destinations missing on most records

    No session, no click, and the trigger conditions are buried in application code rather than in a campaign tool.

  • Sent from the browser

    When send logic lives in application code, the marketing team cannot audit it and the engineering team is not thinking about attribution. Messages accumulate, nobody owns the list, and any analysis of email's contribution is unreliable.

  • Counted twice, or not at all

    It does not exist and cannot be built. Amazon owns the checkout and does not release the join. Any proposal offering per-order attribution on sales completing inside Amazon is describing something unavailable.

  • Nobody has reconciled it

Mailgun → Amazon Ads · diagnose

Diagnostic order — Mailgun → Amazon Ads

  1. 01

    Count messages carrying a click identifier only for off-Amazon destinations

  2. 02

    Follow one real conversion end to end

  3. 03

    Inventory every code path that triggers a send

    Usually the first time anyone has, and it frequently finds sends nobody remembers building.

  4. 04

    Establish which Amazon product and which destination you are running

    On-Amazon and off-Amazon are different measurement problems, and conflating them wastes the entire engagement.

  5. 05

    Read the match rate, not the success message

    For off-Amazon conversions, reconcile normally against your own records. For on-Amazon sales, Amazon Attribution is aggregated and delayed by construction — it cannot be reconciled per order and is not meant to be.

Mailgun → Amazon Ads · prove

How it gets proven — Mailgun → Amazon Ads

Source of truth

Your application's own record of what triggered the send, joined to the order.

  • A click identifier only for off-Amazon destinations confirmed present on a live message.
  • The ad product and destination confirmed in writing before any build, so the right measurement question is being answered.
  • Orders reconciled against imported conversions, with the send inventory documented.

Mailgun → Amazon Ads · free audit

What we check in the free audit

  • Count messages carrying a click identifier only for off-Amazon destinations
  • Follow one real conversion end to end
  • Inventory every code path that triggers a send
  • Establish which Amazon product and which destination you are running
  • Read the match rate, not the success message

Checked against

Your application's own record of what triggered the send, joined to the order.

Get my free conversion tracking audit

Free30 minutesNo obligation

Mailgun → Amazon Ads · when not to buy

When you don't need this — Mailgun → Amazon Ads

  • Measure identifier coverage yourself first — pull your last hundred messages and count how many carry a click identifier only for off-Amazon destinations.
  • Deliverability monitoring is the right use of Mailgun's data. Attribution belongs at the order.
  • If all your Amazon spend drives to Amazon listings, there is no conversion tracking build here — only a reporting exercise in Amazon's own tools.

Mailgun → Amazon Ads · what we deliver

What gets built — Mailgun → Amazon Ads

  • Identifier capture into Mailgun

    Record the trigger reason on the message in your own system and attribute at the order.

  • Event source: your order system

    Send orders. Use Mailgun events for deliverability monitoring only.

  • Dispatch to Amazon Ads

    Conversion upload for off-Amazon destinations. For on-Amazon sales, Amazon's own attribution reporting is the only view.

  • Reversals where they exist

    Refunds reverse at the order.

Written guarantee

95%+ tracking accuracy

Measured against Your application's own record of what triggered the send, joined to the order.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Mailgun → Amazon Ads questions, answered

Yes, in aggregate, by using Amazon Attribution tags as the links in the email. You get sales and detail-page views per tag, not which customer bought.

Free · 30 min

Get Mailgun and Amazon Ads joined properly

Free30 minutesNo obligation