Connecting Mailgun to 6sense
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. 6sense works at the account level rather than the person level, which inverts the usual assumption: the thing you are trying to identify is a company, and the individual is almost incidental. The join between them succeeds or fails on one thing: whether the resolved account, not a person reaches the Mailgun message before the conversion happens, because 6sense can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Mailgun sends to work domains: what 6sense can use
Most Mailgun mail, like password resets, shouldn't reach 6sense. Pick the few sales-moment emails, such as trial ending or quote issued, put the account domain and trigger reason in custom variables, and push resulting site visits from your application with the company domain. Skip free-mail recipients, and never forward Mailgun clicked events, which corporate link scanners inflate.
Mailgun knows one thing 6sense cares about: the domain of every address your application emails. A trial-expiry notice, a quote, or a usage alert going to someone at a company domain is a touch on that account, and the recipient domain is the account key 6sense needs. Mailgun itself carries no buying-stage meaning, though. A password reset says nothing about intent, so most of what Mailgun sends should never reach 6sense.
The usable part is narrow. Pick the two or three application emails that mark a sales moment, such as trial ending, quote issued, or seat limit reached, and when a recipient clicks through to your site, push that visit from your application with the company domain attached. Put the account domain and the trigger reason into the message's custom variables at send time so the webhook arrives already labelled. Skip free-mail recipients entirely; a gmail.com click resolves to no company.
The specific trap with Mailgun and B2B recipients is corporate link scanning. Security gateways at many companies open and click every link in inbound mail within seconds of delivery, and Mailgun reports those as real opens and clicks. Forward them to 6sense and every account you email looks like it is researching you. Count only clicks that produce an actual session on your site, never Mailgun's own clicked events.
Mailgun → 6sense · what breaks
Why this join usually fails — Mailgun → 6sense
- 01
The resolved account, not a person 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
Counting people when the buyer is a committee
Four people from one company downloading four things is not four conversions. It is one account in an active evaluation, and reporting it as four inflates every lead metric while hiding the only fact that matters — that one specific company is in market.
- 04
Nothing reconciles afterwards
6sense shows the account timeline with contributing events. Check the account, not the contact, and confirm the event resolved to the right company rather than to an ISP.
Mailgun → 6sense · the fix
What working looks like — Mailgun → 6sense
The resolved account, not a person on every message
Conversions arriving in 6sense
The event joins the account's intent profile and contributes to its predicted buying stage.
Reconciled against the source
Mailgun → 6sense · architecture
How Mailgun and 6sense 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
6sense needs a click to match
6sense needs the account identity — domain, or a resolved company — plus the event and its context. A conversion with only a personal email and no company context cannot be placed on an account.
- 3
The identifier is the bridge
The resolved account, not a person, 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 is at the account level. Several people from one company converting is one account showing strong intent, not several conversions, and treating it as several is the fastest way to misread a single deal as a pipeline.
Mailgun → 6sense · normal or broken
Working vs. broken, side by side — Mailgun → 6sense
Normal, not a fault
The resolved account, not a person present on the message
Sent from your order system
Deduplicated correctly
Deduplication is at the account level. Several people from one company converting is one account showing strong intent, not several conversions, and treating it as several is the fastest way to misread a single deal as a pipeline.
Reconciles with the source
Actually broken
The resolved account, not a person 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
Four people from one company downloading four things is not four conversions. It is one account in an active evaluation, and reporting it as four inflates every lead metric while hiding the only fact that matters — that one specific company is in market.
Nobody has reconciled it
Mailgun → 6sense · diagnose
Diagnostic order — Mailgun → 6sense
- 01
Count messages carrying the resolved account, not a person
- 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 lead count against distinct accounts for a month
The ratio tells you how badly person-level counting is distorting your view of the pipeline.
- 05
Read the match rate, not the success message
6sense shows the account timeline with contributing events. Check the account, not the contact, and confirm the event resolved to the right company rather than to an ISP.
Mailgun → 6sense · prove
How it gets proven — Mailgun → 6sense
Source of truth
Your application's own record of what triggered the send, joined to the order.
- The resolved account, not a person confirmed present on a live message.
- Events confirmed on the correct account timeline, with lead-to-account ratios stated so person-level inflation is visible.
- Orders reconciled against imported conversions, with the send inventory documented.
Mailgun → 6sense · free audit
What we check in the free audit
- Count messages carrying the resolved account, not a person
- Follow one real conversion end to end
- Inventory every code path that triggers a send
- Compare lead count against distinct accounts for a month
- 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 → 6sense · when not to buy
When you don't need this — Mailgun → 6sense
- Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the resolved account, not a person.
- Deliverability monitoring is the right use of Mailgun's data. Attribution belongs at the order.
- If you sell to individuals rather than to organizations, account-level resolution has nothing to resolve and this is the wrong shape of tool.
Mailgun → 6sense · what we deliver
What gets built — Mailgun → 6sense
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 6sense
Server-side event push with the account identifier and event context, from your CRM or product.
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 → 6sense questions, answered
Opens, no. Clicks only when they lead to a real session on your site, because security scanners at corporate domains click links automatically and Mailgun cannot tell them from people.
Use the recipient's work domain as the account key and attach it, with the reason the email was sent, as custom variables on the message so the event carries it back.
Almost always because the resolved account, not a person 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.
6sense resolves traffic to companies through IP and identity graph data, then models buying stage from behaviour across the account. There is no click identifier and no individual to match. A conversion sent here is evidence about an organization, and sending it person-by-person misses the point of the product entirely.
Your order system. Send orders. Use Mailgun events for deliverability monitoring only.
6sense shows the account timeline with contributing events. Check the account, not the contact, and confirm the event resolved to the right company rather than to an ISP.
More on Mailgun → 6sense
- Stripe → 6senseConnecting Stripe to 6sense
- PayPal → 6senseConnecting PayPal to 6sense
- Shopify → 6senseConnecting Shopify to 6sense
RELATED GUIDES
Where Mailgun → 6sense fits in the rest of your tracking
- SendGrid → 6senseConnecting SendGrid to 6sense
- Postmark → 6senseConnecting Postmark to 6sense
- Resend → 6senseConnecting Resend to 6sense
- Mailgun → MarketoConnecting Mailgun to Marketo
- Mailgun → HubSpotConnecting Mailgun to HubSpot
- EcommerceConversion tracking for ecommerce brands, measured against your orders
Free · 30 min
Get Mailgun and 6sense joined properly
Free30 minutesNo obligation
