Skip to main content
Mailgun → IterableIntegration guide

Connecting Mailgun to Iterable

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. Iterable orchestrates journeys across email, push, SMS and in-app from one user profile, which means a single mis-shaped event can trigger four channels at once. The join between them succeeds or fails on one thing: whether the user ID or email on the profile reaches the Mailgun message before the conversion happens, because Iterable can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Mailgun sends beside Iterable journeys: one owner per message

Inventory Mailgun and Iterable sends first and give each message one owner: receipts and security mail in Mailgun, anything with follow-ups in Iterable. Send triggering events to Iterable from order or billing systems with userId and the fields journeys branch on. Feed Mailgun hard bounces and complaints to Iterable using a userId custom variable, and keep opens out.

Iterable runs journeys across email, push, SMS and in-app off one user profile, while your Mailgun mail fires from application code nobody in marketing can see. When the same event, an order or a failed payment, triggers both, the customer can get a coded Mailgun email plus an Iterable journey's email, push and text inside a few minutes. The send inventory has to cover both systems before anything else is wired.

Give each message one owner. Receipts and security mail usually stay in Mailgun; anything with a follow-up or a branch moves to Iterable. Then send the triggering event to Iterable from your order or billing system with the userId and the data fields the journey's branches reference, such as order value or plan, so the journey does not take a wrong path on an empty field.

Feed Mailgun's hard bounces and complaints into Iterable so its email channel stops sending to addresses your transactional stream has already proven dead. Attach the Iterable userId to each Mailgun message as a custom variable; matching on email risks creating a new user when the address on the order differs from the profile. Keep Mailgun opens out of Iterable, since Apple Mail prefetching makes them unreliable for journey decisions.

Mailgun → Iterable · what breaks

Why this join usually fails — Mailgun → Iterable

  1. 01

    The user ID or email on the profile 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

    One duplicate, four channels

    Cross-channel orchestration multiplies the cost of a bad event. Where a duplicate in an ad platform is a reporting error, here it reaches the customer on their phone, in their inbox and inside the app, about a single purchase.

  4. 04

    Nothing reconciles afterwards

    Iterable shows the user profile with its event history and journey membership. Read the profile, and check whether a duplicate profile was created by the same email arriving in a different case.

Mailgun → Iterable · the fix

What working looks like — Mailgun → Iterable

  • The user ID or email on the profile on every message

  • Conversions arriving in Iterable

    The event lands on the user profile, evaluates against every running journey, and may trigger sends across several channels immediately.

  • Reconciled against the source

Mailgun → Iterable · architecture

How Mailgun and Iterable 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

    Iterable needs a click to match

    The user identifier, the event name and the data fields the journey conditions reference. A journey branching on a field that arrives empty will take the wrong path silently.

  3. 3

    The identifier is the bridge

    The user ID or email on the profile, 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

    Iterable does not deduplicate events. A purchase sent twice can advance a journey twice, and because journeys span channels the duplicate can produce an email, a push and an SMS about one order.

Mailgun → Iterable · normal or broken

Working vs. broken, side by side — Mailgun → Iterable

Normal, not a fault

  • The user ID or email on the profile present on the message

  • Sent from your order system

  • Deduplicated correctly

    Iterable does not deduplicate events. A purchase sent twice can advance a journey twice, and because journeys span channels the duplicate can produce an email, a push and an SMS about one order.

  • Reconciles with the source

Actually broken

  • The user ID or email on the profile 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

    Cross-channel orchestration multiplies the cost of a bad event. Where a duplicate in an ad platform is a reporting error, here it reaches the customer on their phone, in their inbox and inside the app, about a single purchase.

  • Nobody has reconciled it

Mailgun → Iterable · diagnose

Diagnostic order — Mailgun → Iterable

  1. 01

    Count messages carrying the user ID or email on the profile

  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

    Send a test event and read every journey it entered

    Not just whether the event arrived — which journeys it triggered and what each one sent. That is the blast radius.

  5. 05

    Read the match rate, not the success message

    Iterable shows the user profile with its event history and journey membership. Read the profile, and check whether a duplicate profile was created by the same email arriving in a different case.

Mailgun → Iterable · prove

How it gets proven — Mailgun → Iterable

Source of truth

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

  • The user ID or email on the profile confirmed present on a live message.
  • Purchases confirmed on single user profiles with the triggered journeys verified, tested in a non-production project first.
  • Orders reconciled against imported conversions, with the send inventory documented.

Mailgun → Iterable · free audit

What we check in the free audit

  • Count messages carrying the user ID or email on the profile
  • Follow one real conversion end to end
  • Inventory every code path that triggers a send
  • Send a test event and read every journey it entered
  • 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 → Iterable · when not to buy

When you don't need this — Mailgun → Iterable

  • Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the user ID or email on the profile.
  • Deliverability monitoring is the right use of Mailgun's data. Attribution belongs at the order.
  • If you send on a schedule rather than on behaviour, a simpler email platform does the job without the cross-channel blast radius.

Mailgun → Iterable · what we deliver

What gets built — Mailgun → Iterable

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

    The Iterable events API, posted server-side with the user identifier and event fields.

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

Because one application event triggers a coded Mailgun send and an Iterable journey. Decide which system owns each message and remove the duplicate trigger.

Free · 30 min

Get Mailgun and Iterable joined properly

Free30 minutesNo obligation