Connecting Mailgun to Adobe Analytics
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. Adobe Analytics processes data on the way in through rules you configure, which means the same event can be recorded differently by two report suites and both will look authoritative. The join between them succeeds or fails on one thing: whether the Experience Cloud ID, plus whatever eVar you designate reaches the Mailgun message before the conversion happens, because Adobe Analytics can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Mailgun email clicks as an Adobe tracking code, not hits
Adobe sees Mailgun email only through clicks, so your application must write one tracking code per trigger into link URLs, classified in Adobe as email types, with a deliberate campaign eVar expiry. Confirm Mailgun's redirect keeps the query string. Don't send delivered, opened or clicked webhooks as hits; they lack an ECID and inflate visitors. Import deliverability as a summary.
Adobe sees a Mailgun email only when someone clicks a link and lands on your site, and it attributes that visit through whatever tracking code parameter your implementation reads into the campaign variable. Mailgun does not add that parameter for you. Your application builds the URLs before handing the message to Mailgun, so the tracking code has to be written in code, ideally from the same trigger reason you record for the send.
Use one tracking code per trigger, such as a shipping notice or a trial reminder, and classify those codes in Adobe so reports read as email types rather than opaque strings. Then decide the campaign eVar's expiry deliberately: transactional emails bring back customers who were going to return anyway, and a long-lived last-touch eVar will hand them credit for orders they did not cause. Confirm in a test send that Mailgun's click-tracking redirect passes your query string through intact.
Do not send Mailgun's delivered, opened or clicked webhooks into Adobe as server-side hits. They arrive with no Experience Cloud ID, so each one becomes a new visitor and inflates unique visitors, while opens are distorted by Apple Mail prefetching images. If you want deliverability in Adobe at all, import it as a summarized data source, separate from behavioural data.
Mailgun → Adobe Analytics · what breaks
Why this join usually fails — Mailgun → Adobe Analytics
- 01
The Experience Cloud ID, plus whatever eVar you designate 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
Processing rules rewriting data before anyone sees it
Rules run before storage and are frequently configured years earlier by someone who has left. A campaign variable can be overwritten, defaulted or dropped on the way in, and the reports will look consistent and be wrong.
- 04
Nothing reconciles afterwards
Use a raw data feed or Data Debugger to see what actually arrived, not the processed report. Those are different things and only one of them shows the truth.
Mailgun → Adobe Analytics · the fix
What working looks like — Mailgun → Adobe Analytics
The Experience Cloud ID, plus whatever eVar you designate on every message
Conversions arriving in Adobe Analytics
The hit is processed through VISTA and processing rules, lands in the report suite, and becomes available under whatever allocation the eVar specifies.
Reconciled against the source
Mailgun → Adobe Analytics · architecture
How Mailgun and Adobe Analytics 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
Adobe Analytics needs a click to match
An eVar with the right persistence and allocation, an event configured in the report suite, and processing rules that do not quietly rewrite what arrived.
- 3
The identifier is the bridge
The Experience Cloud ID, plus whatever eVar you designate, 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
Adobe deduplicates on purchase ID for orders. Omit it and a customer refreshing a confirmation page records the order again, which is the single most common inflation in Adobe implementations.
Mailgun → Adobe Analytics · normal or broken
Working vs. broken, side by side — Mailgun → Adobe Analytics
Normal, not a fault
The Experience Cloud ID, plus whatever eVar you designate present on the message
Sent from your order system
Deduplicated correctly
Adobe deduplicates on purchase ID for orders. Omit it and a customer refreshing a confirmation page records the order again, which is the single most common inflation in Adobe implementations.
Reconciles with the source
Actually broken
The Experience Cloud ID, plus whatever eVar you designate 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
Rules run before storage and are frequently configured years earlier by someone who has left. A campaign variable can be overwritten, defaulted or dropped on the way in, and the reports will look consistent and be wrong.
Nobody has reconciled it
Mailgun → Adobe Analytics · diagnose
Diagnostic order — Mailgun → Adobe Analytics
- 01
Count messages carrying the Experience Cloud ID, plus whatever eVar you designate
- 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
Read the processing rules and the eVar allocation settings
Before debugging the tag. On mature Adobe implementations the explanation is upstream of the browser far more often than in it.
- 05
Read the match rate, not the success message
Use a raw data feed or Data Debugger to see what actually arrived, not the processed report. Those are different things and only one of them shows the truth.
Mailgun → Adobe Analytics · prove
How it gets proven — Mailgun → Adobe Analytics
Source of truth
Your application's own record of what triggered the send, joined to the order.
- The Experience Cloud ID, plus whatever eVar you designate confirmed present on a live message.
- Orders reconciled against the raw feed with purchase ID deduplication verified, then against the processed report suite.
- Orders reconciled against imported conversions, with the send inventory documented.
Mailgun → Adobe Analytics · free audit
What we check in the free audit
- Count messages carrying the Experience Cloud ID, plus whatever eVar you designate
- Follow one real conversion end to end
- Inventory every code path that triggers a send
- Read the processing rules and the eVar allocation settings
- 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 → Adobe Analytics · when not to buy
When you don't need this — Mailgun → Adobe Analytics
- Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the Experience Cloud ID, plus whatever eVar you designate.
- Deliverability monitoring is the right use of Mailgun's data. Attribution belongs at the order.
- If you are already on GA4 and not obliged to use Adobe, running both means two versions of every number and a standing argument about which is right.
Mailgun → Adobe Analytics · what we deliver
What gets built — Mailgun → Adobe Analytics
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 Adobe Analytics
Server-side via the Data Insertion or Edge API, with the ECID and the configured variables.
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 → Adobe Analytics questions, answered
Add your Adobe tracking code parameter to every link when your application builds the message, one code per trigger type, and classify those codes in Adobe. Mailgun will not add it for you.
You can, but you should not send them as hits. They carry no ECID, so each becomes a new visitor; summarize deliverability separately if you need it.
Almost always because the Experience Cloud ID, plus whatever eVar you designate 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 the ECID, with visitor stitching configurable on top. The click identifier is not native — it lives in an eVar you assign, with an expiry and an allocation model you choose, and those two settings silently decide what your attribution reports say.
Your order system. Send orders. Use Mailgun events for deliverability monitoring only.
Use a raw data feed or Data Debugger to see what actually arrived, not the processed report. Those are different things and only one of them shows the truth.
More on Mailgun → Adobe Analytics
- Stripe → Adobe AnalyticsConnecting Stripe to Adobe Analytics
- PayPal → Adobe AnalyticsConnecting PayPal to Adobe Analytics
- Shopify → Adobe AnalyticsConnecting Shopify to Adobe Analytics
RELATED GUIDES
Where Mailgun → Adobe Analytics fits in the rest of your tracking
- Resend → Adobe AnalyticsConnecting Resend to Adobe Analytics
- Postmark → Adobe AnalyticsConnecting Postmark to Adobe Analytics
- SendGrid → Adobe AnalyticsConnecting SendGrid to Adobe Analytics
- Mailgun → MatomoConnecting Mailgun to Matomo
- Mailgun → GA4Connecting Mailgun to GA4
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
Free · 30 min
Get Mailgun and Adobe Analytics joined properly
Free30 minutesNo obligation
