Skip to main content
Mailgun → RokuIntegration guide

Connecting Mailgun to Roku 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. Connected TV is a household medium with no click surface, which makes every conversion it reports a matched inference rather than a followed link. The join between them succeeds or fails on one thing: whether household-level identity, not a click reaches the Mailgun message before the conversion happens, because Roku can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Mailgun and Roku Ads: keep the email list out of CTV

Send Roku conversions from your order system with hashed email and other matching details, nothing from Mailgun, whose recipients never agreed to TV matching. Upload audiences only from consent-tracked customer tables, using Mailgun's hard-bounce list as a filter. Record email clicks on orders to show how many Roku-matched conversions also had one, and use holdouts where possible.

Roku matches TV ad exposure to conversions in the same household using hashed customer information, and the only data Mailgun could add is recipient email addresses. That is not a good source. The people your application emails include anyone who reset a password or received a shipping notice, and none of them agreed to have that address used to match their TV viewing.

For measurement, send Roku conversions from your order system with the hashed email and other customer details the match uses, and nothing from Mailgun. For audiences, upload only customers whose consent and opt-out status your customer table actually tracks. Mailgun's hard-bounce list is still useful as a filter: an address that no longer receives mail is unlikely to match a current household.

The more practical problem is overlap. A household that saw a Roku ad and then bought after clicking a Mailgun cart reminder will be claimed by Roku, while your email report claims it too. Record the email click on the order with a link parameter, and when you report Roku, show how many matched conversions also had an email click. If you can run a geographic or household holdout, that answers more than either number.

Mailgun → Roku · what breaks

Why this join usually fails — Mailgun → Roku

  1. 01

    Household-level identity, not a click 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

    View-through on a screen nobody clicked

    Every CTV conversion is view-through by definition. Some of that influence is real and some is a household that would have bought anyway, and no amount of pixel work separates the two. Only a holdout does.

  4. 04

    Nothing reconciles afterwards

    Roku reports matched conversions and match rates. The match rate tells you how much of your audience it could resolve at all — and a geo holdout tells you whether the campaign moved anything.

Mailgun → Roku · the fix

What working looks like — Mailgun → Roku

  • Household-level identity, not a click on every message

  • Conversions arriving in Roku

    The conversion is matched to an exposed household within the attribution window and feeds the campaign reporting.

  • Reconciled against the source

Mailgun → Roku · architecture

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

    Roku Ads needs a click to match

    A pixel or server event on your side that Roku can match against, plus the hashed customer information the match depends on. Without that, the channel is measurable only by holdout.

  3. 3

    The identifier is the bridge

    Household-level identity, not a click, 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

    The deduplication problem is across platforms, not within this one. A household exposed to a TV ad and later reached by search and social produces a conversion all three will claim.

Mailgun → Roku · normal or broken

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

Normal, not a fault

  • Household-level identity, not a click present on the message

  • Sent from your order system

  • Deduplicated correctly

    The deduplication problem is across platforms, not within this one. A household exposed to a TV ad and later reached by search and social produces a conversion all three will claim.

  • Reconciles with the source

Actually broken

  • Household-level identity, not a click 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

    Every CTV conversion is view-through by definition. Some of that influence is real and some is a household that would have bought anyway, and no amount of pixel work separates the two. Only a holdout does.

  • Nobody has reconciled it

Mailgun → Roku · diagnose

Diagnostic order — Mailgun → Roku

  1. 01

    Count messages carrying household-level identity, not a click

  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

    Ask whether a geo or audience holdout exists

    If it does not, the reported figure is exposure correlated with purchase, which is not the same as a campaign that caused one.

  5. 05

    Read the match rate, not the success message

    Roku reports matched conversions and match rates. The match rate tells you how much of your audience it could resolve at all — and a geo holdout tells you whether the campaign moved anything.

Mailgun → Roku · prove

How it gets proven — Mailgun → Roku

Source of truth

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

  • Household-level identity, not a click confirmed present on a live message.
  • Incremental lift measured against a holdout, with platform-reported conversions shown alongside rather than instead.
  • Orders reconciled against imported conversions, with the send inventory documented.

Mailgun → Roku · free audit

What we check in the free audit

  • Count messages carrying household-level identity, not a click
  • Follow one real conversion end to end
  • Inventory every code path that triggers a send
  • Ask whether a geo or audience holdout exists
  • 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 → Roku · when not to buy

When you don't need this — Mailgun → Roku

  • Measure identifier coverage yourself first — pull your last hundred messages and count how many carry household-level identity, not a click.
  • Deliverability monitoring is the right use of Mailgun's data. Attribution belongs at the order.
  • If you cannot run a holdout, keep CTV budget small and report it as unproven. That is a more useful position than a matched number nobody can check.

Mailgun → Roku · what we deliver

What gets built — Mailgun → Roku

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

    Server-side conversion upload with hashed identity, from your order system.

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

You should not. Transactional email recipients have not consented to advertising use. Use your customer table with consent applied.

Free · 30 min

Get Mailgun and Roku joined properly

Free30 minutesNo obligation