Connecting Mailgun to Outbrain
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. Outbrain is the other major native discovery network, with the same audience-intent problem and its own conversion configuration. The join between them succeeds or fails on one thing: whether the Outbrain click identifier reaches the Mailgun message before the conversion happens, because Outbrain can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Outbrain sign-ups confirmed by humans, not Mailgun-clicking scanners
Optimize Outbrain on confirmed subscribers, but link scanners can click Mailgun double opt-in links. Make the confirm link open a page needing one deliberate action before confirming, then send the server event with the click identifier stored at form submission, hashed email and an event ID shared with the pixel. Keep form submissions as a separate Outbrain conversion.
Outbrain campaigns for publishers and lead-gen sites often drive newsletter or content sign-ups, and the confirmation email goes out through Mailgun. Discovery traffic produces plenty of low-intent sign-ups, so the confirmed subscriber is the deeper, more useful conversion to optimize on. The catch is that the confirmation link can be clicked by something other than the subscriber.
Corporate and some consumer mail systems scan links on arrival, and a scanner hitting a double opt-in link confirms the address within seconds with no human involved. Mailgun reports a click, your app records a confirmation, and Outbrain receives a conversion from a bot. Make the confirm link open a page that needs one deliberate action before confirming, and only then send the server event to Outbrain.
Store the Outbrain click identifier with the pending sign-up when the form is submitted, because confirmation often happens hours later on a different device with no click ID in the URL. Send the confirmed event server-side with that stored identifier, the hashed email and an event ID shared with any pixel fire. A form submission and a confirmed subscriber should be separate conversions in Outbrain, so you can see how much of the traffic never confirms.
Mailgun → Outbrain · what breaks
Why this join usually fails — Mailgun → Outbrain
- 01
The Outbrain click identifier never reaches Mailgun
No session, no click, and the trigger conditions are buried in application code rather than in a campaign tool.
- 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.
- 03
Shallow conversions on discovery traffic
A newsletter signup from discovery traffic converts to revenue at a very different rate than the same signup from search. Optimizing on the shallow event flatters the channel and misleads the budget.
- 04
Nothing reconciles afterwards
Outbrain reports at campaign and section level. Reconcile against your own records, and compare the downstream conversion rate of discovery traffic against your other channels before judging the numbers.
Mailgun → Outbrain · the fix
What working looks like — Mailgun → Outbrain
The Outbrain click identifier on every message
Conversions arriving in Outbrain
Conversions appear against campaigns and publisher sections, which is the level at which the channel is actually managed.
Reconciled against the source
Mailgun → Outbrain · architecture
How Mailgun and Outbrain actually connect
- 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
Outbrain needs a click to match
Outbrain matches server events on the click identifier and hashed customer information, against conversion definitions configured in its interface.
- 3
The identifier is the bridge
The Outbrain click identifier, captured at the visit and carried into the Mailgun message.
- 4
The event source decides reliability
Send orders. Use Mailgun events for deliverability monitoring only.
- 5
Deduplication at the destination
Outbrain deduplicates on a shared event identifier between the pixel and the server event.
Mailgun → Outbrain · normal or broken
Working vs. broken, side by side — Mailgun → Outbrain
Normal, not a fault
The Outbrain click identifier present on the message
Sent from your order system
Deduplicated correctly
Outbrain deduplicates on a shared event identifier between the pixel and the server event.
Reconciles with the source
Actually broken
The Outbrain click identifier 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
A newsletter signup from discovery traffic converts to revenue at a very different rate than the same signup from search. Optimizing on the shallow event flatters the channel and misleads the budget.
Nobody has reconciled it
Mailgun → Outbrain · diagnose
Diagnostic order — Mailgun → Outbrain
- 01
Count messages carrying the Outbrain click identifier
- 02
Follow one real conversion end to end
- 03
Inventory every code path that triggers a send
Usually the first time anyone has, and it frequently finds sends nobody remembers building.
- 04
Compare downstream conversion rates for discovery traffic against your other channels
If they differ substantially — and they usually do — the conversion you optimize toward has to sit deeper in the funnel here.
- 05
Read the match rate, not the success message
Outbrain reports at campaign and section level. Reconcile against your own records, and compare the downstream conversion rate of discovery traffic against your other channels before judging the numbers.
Mailgun → Outbrain · prove
How it gets proven — Mailgun → Outbrain
Source of truth
Your application's own record of what triggered the send, joined to the order.
- The Outbrain click identifier confirmed present on a live message.
- Downstream conversion rate for Outbrain traffic measured separately from other channels.
- Orders reconciled against imported conversions, with the send inventory documented.
Mailgun → Outbrain · free audit
What we check in the free audit
- Count messages carrying the Outbrain click identifier
- Follow one real conversion end to end
- Inventory every code path that triggers a send
- Compare downstream conversion rates for discovery traffic against your other channels
- Read the match rate, not the success message
Checked against
Your application's own record of what triggered the send, joined to the order.
Free30 minutesNo obligation
Mailgun → Outbrain · when not to buy
When you don't need this — Mailgun → Outbrain
- Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the Outbrain click identifier.
- Deliverability monitoring is the right use of Mailgun's data. Attribution belongs at the order.
- If you have no top-of-funnel content worth discovering, native placement has nothing to work with regardless of measurement.
Mailgun → Outbrain · what we deliver
What gets built — Mailgun → Outbrain
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 Outbrain
Server events to Outbrain's conversions endpoint with the click identifier and hashed customer data.
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.
From $400 · See packages
FAQ
Mailgun → Outbrain questions, answered
Likely email security scanners clicking the double opt-in link in your Mailgun confirmation email. Require a deliberate action on the confirm page before counting it.
Save the Outbrain click identifier with the pending sign-up and send the confirmed event server-side from your app when the subscriber confirms.
Almost always because the Outbrain click identifier never reached the Mailgun message. No session, no click, and the trigger conditions are buried in application code rather than in a campaign tool. Measure coverage before debugging the dispatch.
Outbrain appends a click identifier to the landing page URL alongside its pixel. As with any discovery network, the measurement challenge is less about capture and more about whether the conversion you are counting is deep enough in the funnel to be meaningful, because top-of-funnel actions are cheap to generate here and weakly predictive.
Your order system. Send orders. Use Mailgun events for deliverability monitoring only.
Outbrain reports at campaign and section level. Reconcile against your own records, and compare the downstream conversion rate of discovery traffic against your other channels before judging the numbers.
More on Mailgun → Outbrain
- Stripe → OutbrainConnecting Stripe to Outbrain
- PayPal → OutbrainConnecting PayPal to Outbrain
- Shopify → OutbrainConnecting Shopify to Outbrain
RELATED GUIDES
Where Mailgun → Outbrain fits in the rest of your tracking
- Postmark → OutbrainConnecting Postmark to Outbrain
- Resend → OutbrainConnecting Resend to Outbrain
- SendGrid → OutbrainConnecting SendGrid to Outbrain
- Mailgun → The Trade DeskConnecting Mailgun to The Trade Desk
- Mailgun → DV360Connecting Mailgun to Display & Video 360
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
Free · 30 min
Get Mailgun and Outbrain joined properly
Free30 minutesNo obligation
