Connecting Mailgun to LiveRamp
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. LiveRamp resolves identity between parties who are not allowed to share raw customer data, which makes it infrastructure for measurement rather than a place conversions are counted. The join between them succeeds or fails on one thing: whether the RampID, derived from hashed personal information reaches the Mailgun message before the conversion happens, because LiveRamp can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Mailgun bounce data to clean what you onboard to LiveRamp
Don't onboard Mailgun's recipient list to LiveRamp; it includes people who never agreed to ad use, and Mailgun doesn't track CCPA opt-outs. Build uploads from customer or order tables with consent applied, lowercased, trimmed and hashed. Use Mailgun for hygiene: exclude hard-bounced and validation-rejected addresses and flag repeat complaints. Conversions come from orders.
LiveRamp resolves hashed emails into RampIDs, and Mailgun holds a lot of email addresses, so the tempting move is to onboard Mailgun's recipient list. Don't. Your application emails anyone who triggered a receipt, reset or alert, and many of them never agreed to have their data used for advertising. Under CCPA, sharing those identifiers for cross-context advertising requires honoring opt-outs your customer table tracks and Mailgun does not.
Mailgun's real contribution is hygiene. Every hard bounce Mailgun records marks an address that no longer exists, and stale addresses drag down match rates in a way that looks like a LiveRamp problem. Before each upload, exclude addresses with a permanent failure in Mailgun and flag ones with repeated complaints. If you use Mailgun's email validation, the same exclusion applies to addresses it rejects.
Build the upload from your customer or order table, with consent applied, normalized the same way every time: lowercased, trimmed, then hashed. Conversions for measurement come from orders with the same hashed email, not from Mailgun events. One specific Mailgun quirk is worth checking: if your application sends to plus-addressed or forwarding addresses, the address on the order may not match the address a partner holds, and that lost match is expected, not a fault.
Mailgun → LiveRamp · what breaks
Why this join usually fails — Mailgun → LiveRamp
- 01
The RampID, derived from hashed personal information 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
Match rate treated as a platform failure
A low match rate is almost always your data, not theirs: inconsistent formatting, stale addresses, or a customer base that simply is not resolvable. Teams spend weeks escalating to the vendor when the fix is normalising a column.
- 04
Nothing reconciles afterwards
LiveRamp reports match rates on every upload. Read it, and compare it against how many of your customers you would expect to be resolvable at all.
Mailgun → LiveRamp · the fix
What working looks like — Mailgun → LiveRamp
The RampID, derived from hashed personal information on every message
Conversions arriving in LiveRamp
Records resolve to RampIDs and become matchable against a partner's data inside a clean room or an activation platform.
Reconciled against the source
Mailgun → LiveRamp · architecture
How Mailgun and LiveRamp 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
LiveRamp needs a click to match
Hashed, correctly normalised customer identifiers. Normalisation is the whole job: lowercase, trimmed, consistently formatted before hashing, or the match rate collapses for reasons that look like a platform problem.
- 3
The identifier is the bridge
The RampID, derived from hashed personal information, 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
Deduplication happens at the identity layer. The same person with two email addresses can resolve to two RampIDs, which inflates audience counts and depresses match rates simultaneously.
Mailgun → LiveRamp · normal or broken
Working vs. broken, side by side — Mailgun → LiveRamp
Normal, not a fault
The RampID, derived from hashed personal information present on the message
Sent from your order system
Deduplicated correctly
Deduplication happens at the identity layer. The same person with two email addresses can resolve to two RampIDs, which inflates audience counts and depresses match rates simultaneously.
Reconciles with the source
Actually broken
The RampID, derived from hashed personal information 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 low match rate is almost always your data, not theirs: inconsistent formatting, stale addresses, or a customer base that simply is not resolvable. Teams spend weeks escalating to the vendor when the fix is normalising a column.
Nobody has reconciled it
Mailgun → LiveRamp · diagnose
Diagnostic order — Mailgun → LiveRamp
- 01
Count messages carrying the RampID, derived from hashed personal information
- 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
Audit identifier formatting before hashing
Case, whitespace and formatting differences are the usual cause. Fix them once and the match rate moves more than any configuration change will.
- 05
Read the match rate, not the success message
LiveRamp reports match rates on every upload. Read it, and compare it against how many of your customers you would expect to be resolvable at all.
Mailgun → LiveRamp · prove
How it gets proven — Mailgun → LiveRamp
Source of truth
Your application's own record of what triggered the send, joined to the order.
- The RampID, derived from hashed personal information confirmed present on a live message.
- Match rate measured against the share of customers holding usable identifiers, with normalisation verified before hashing.
- Orders reconciled against imported conversions, with the send inventory documented.
Mailgun → LiveRamp · free audit
What we check in the free audit
- Count messages carrying the RampID, derived from hashed personal information
- Follow one real conversion end to end
- Inventory every code path that triggers a send
- Audit identifier formatting before hashing
- 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 → LiveRamp · when not to buy
When you don't need this — Mailgun → LiveRamp
- Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the RampID, derived from hashed personal information.
- Deliverability monitoring is the right use of Mailgun's data. Attribution belongs at the order.
- If you hold few customer identifiers, identity resolution has almost nothing to resolve. Collect the data first; this cannot manufacture it.
Mailgun → LiveRamp · what we deliver
What gets built — Mailgun → LiveRamp
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 LiveRamp
Hashed identifiers and conversion records uploaded server-side, never raw personal 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 → LiveRamp questions, answered
You should not. Recipients of transactional email have not necessarily agreed to advertising use; build the upload from your customer table with consent and opt-outs applied.
Use its hard-bounce and complaint data to exclude dead or hostile addresses before hashing, so the upload contains only addresses that still exist.
Almost always because the RampID, derived from hashed personal information 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.
Identity is resolved from hashed email and postal identifiers into a pseudonymous RampID that both parties can match on without either seeing the other's raw data. There is no click identifier involved at any point, and your addressable share is limited to customers whose details you actually hold.
Your order system. Send orders. Use Mailgun events for deliverability monitoring only.
LiveRamp reports match rates on every upload. Read it, and compare it against how many of your customers you would expect to be resolvable at all.
More on Mailgun → LiveRamp
- Mailgun → Google AdsConnecting Mailgun to Google Ads
- Mailgun → MetaConnecting Mailgun to Meta Conversions API
- Mailgun → GA4Connecting Mailgun to GA4
RELATED GUIDES
Where Mailgun → LiveRamp fits in the rest of your tracking
- Resend → LiveRampConnecting Resend to LiveRamp
- Postmark → LiveRampConnecting Postmark to LiveRamp
- SendGrid → LiveRampConnecting SendGrid to LiveRamp
- Mailgun → The Trade DeskConnecting Mailgun to The Trade Desk
- Mailgun → RokuConnecting Mailgun to Roku Ads
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
Free · 30 min
Get Mailgun and LiveRamp joined properly
Free30 minutesNo obligation
