Connecting Mailgun to Impact.com
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. Impact is the first destination on this site that pays somebody for the conversion you send it, which changes the stakes completely: an event that is wrong here does not distort a report, it produces a payment. The join between them succeeds or fails on one thing: whether the Impact click identifier, irclickid reaches the Mailgun message before the conversion happens, because Impact can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Mailgun referral invites and Impact commissions done right
Mailgun touches Impact through customer referral invites: build each invite link from the referrer's Impact tracking link and test that Mailgun's click-tracking redirect keeps every parameter. Post the friend's order to Impact from your order system with a stable order ID, reversing refunds there, never on invite delivery or clicks, and make retries reuse that order ID.
Impact needs the irclickid from a partner's link and an order record, and none of that comes from Mailgun. Where the two meet is a customer referral programme: your application lets a customer invite friends, the invite goes out through Mailgun, and the link inside it is the referral tracking link that tells Impact who earns the reward. That is the email path to get right.
Generate the referral link in your application from the referrer's Impact tracking link and test that Mailgun's click-tracking redirect forwards the full URL with every parameter intact. If the redirect drops or re-encodes the query string, the friend lands without the identifier and the referrer goes unrewarded. Confirm in your Impact account how your referral programme expects the link built before relying on it.
On the conversion side, post the friend's order to Impact from your order system with the same stable order ID you use everywhere, and reverse it from there on refund. Do not post on the Mailgun invite being delivered or clicked; neither is a sale. Many applications retry a failed API call with a regenerated ID, so check that your retry logic reuses the order ID, or Impact will pay the partner twice for one sale.
Mailgun → Impact · what breaks
Why this join usually fails — Mailgun → Impact
- 01
The Impact click identifier, irclickid 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
A second party claiming a conversion your ads already paid for
This is the structural problem with every affiliate and partnership platform. A customer clicks a paid ad, browses, later clicks a partner link for a discount code, and buys. Google reports a conversion, Impact commissions a partner, and you paid twice for one order. Neither system is wrong on its own terms — but nothing reconciles them unless you do.
- 04
Nothing reconciles afterwards
Impact shows the conversion in its reporting with the attributed partner and the commission. Check that the order ID matches your own record and that the value is net of what you actually keep, not the gross basket.
Mailgun → Impact · the fix
What working looks like — Mailgun → Impact
The Impact click identifier, irclickid on every message
Conversions arriving in Impact
The conversion is attributed to a partner, held for your review or approval period, and then commissioned.
Reconciled against the source
Mailgun → Impact · architecture
How Mailgun and Impact 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
Impact.com needs a click to match
Impact needs the click identifier, an order identifier and the order value to attribute and commission the conversion. Without the click identifier it cannot tell which partner to pay.
- 3
The identifier is the bridge
The Impact click identifier, irclickid, 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
Impact deduplicates on your order identifier, so the same order sent twice will not commission twice — provided you send a stable order ID. Send a new ID for a retry and you have paid a partner twice for one sale.
Mailgun → Impact · normal or broken
Working vs. broken, side by side — Mailgun → Impact
Normal, not a fault
The Impact click identifier, irclickid present on the message
Sent from your order system
Deduplicated correctly
Impact deduplicates on your order identifier, so the same order sent twice will not commission twice — provided you send a stable order ID. Send a new ID for a retry and you have paid a partner twice for one sale.
Reconciles with the source
Actually broken
The Impact click identifier, irclickid 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
This is the structural problem with every affiliate and partnership platform. A customer clicks a paid ad, browses, later clicks a partner link for a discount code, and buys. Google reports a conversion, Impact commissions a partner, and you paid twice for one order. Neither system is wrong on its own terms — but nothing reconciles them unless you do.
Nobody has reconciled it
Mailgun → Impact · diagnose
Diagnostic order — Mailgun → Impact
- 01
Count messages carrying the Impact click identifier, irclickid
- 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
Count orders that appear in both your ad platforms and Impact
The overlap is what you are paying for twice. It is a single query against order IDs and it is almost never run.
- 05
Read the match rate, not the success message
Impact shows the conversion in its reporting with the attributed partner and the commission. Check that the order ID matches your own record and that the value is net of what you actually keep, not the gross basket.
Mailgun → Impact · prove
How it gets proven — Mailgun → Impact
Source of truth
Your application's own record of what triggered the send, joined to the order.
- The Impact click identifier, irclickid confirmed present on a live message.
- Conversions in Impact reconciled per order ID against your own order records, with the ad-platform overlap measured and stated.
- Orders reconciled against imported conversions, with the send inventory documented.
Mailgun → Impact · free audit
What we check in the free audit
- Count messages carrying the Impact click identifier, irclickid
- Follow one real conversion end to end
- Inventory every code path that triggers a send
- Count orders that appear in both your ad platforms and Impact
- 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 → Impact · when not to buy
When you don't need this — Mailgun → Impact
- Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the Impact click identifier, irclickid.
- Deliverability monitoring is the right use of Mailgun's data. Attribution belongs at the order.
- If you have no partner programme, there is nothing to send here. If you have one and are not reconciling the overlap with paid media, that reconciliation is worth more than any tracking build.
Mailgun → Impact · what we deliver
What gets built — Mailgun → Impact
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 Impact
The Impact Conversions API, posted server-side from your order system with the click identifier, order ID and value.
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 → Impact questions, answered
Yes, as long as the link in the email is the referral tracking link and Mailgun's click-tracking redirect passes its parameters through unchanged. Test it with a real send.
No. Commission on the referred customer's order, posted from your order system with a stable order ID, and reverse it if the order is refunded.
Almost always because the Impact click identifier, irclickid 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.
Impact appends irclickid to the landing URL when a partner sends traffic. It identifies which partner earns the commission, so losing it does not degrade a report — it means a partner who genuinely drove the sale goes unpaid, and eventually raises a dispute you cannot answer.
Your order system. Send orders. Use Mailgun events for deliverability monitoring only.
Impact shows the conversion in its reporting with the attributed partner and the commission. Check that the order ID matches your own record and that the value is net of what you actually keep, not the gross basket.
More on Mailgun → Impact
- Stripe → ImpactConnecting Stripe to Impact.com
- PayPal → ImpactConnecting PayPal to Impact.com
- Shopify → ImpactConnecting Shopify to Impact.com
RELATED GUIDES
Where Mailgun → Impact fits in the rest of your tracking
- SendGrid → ImpactConnecting SendGrid to Impact.com
- Postmark → ImpactConnecting Postmark to Impact.com
- Resend → ImpactConnecting Resend to Impact.com
- Mailgun → PartnerStackConnecting Mailgun to PartnerStack
- Mailgun → AwinConnecting Mailgun to Awin
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
Free · 30 min
Get Mailgun and Impact joined properly
Free30 minutesNo obligation
