Connecting Mailgun to Pinterest
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. Pinterest is a save-now-buy-later platform, which makes its attribution window the loosest of any network here and its conversion data the most delayed. The join between them succeeds or fails on one thing: whether the epik click identifier reaches the Mailgun message before the conversion happens, because Pinterest can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Mailgun to Pinterest: when app alerts close the sale Pinterest claims
Send Pinterest the order from your order system with the stored epik, hashed email and order ID as event_id shared with the tag; Mailgun adds nothing directly. Record back-in-stock, price-drop and cart emails on orders to see how much Pinterest-credited revenue followed one. Confirm Mailgun's click-tracking redirect keeps UTM parameters on a test send.
Pinterest gets nothing directly from Mailgun. The conversion is the order, sent from your order system with the epik, hashed email and the order ID as event_id shared with the Pinterest tag. Mailgun matters because Pinterest's save-then-buy delay means many Pinterest-credited orders also had an application email in between, such as a back-in-stock alert, a price-drop notice or an abandoned-cart reminder.
Back-in-stock and price-drop alerts deserve the most attention. They are usually built in code and sent through Mailgun, they target the same products people saved on Pinterest, and they can easily be the real trigger for an order Pinterest claims weeks later. Record the alert on the order, then report how much Pinterest-credited revenue followed one before you raise the Pinterest budget.
Check one technical detail. Mailgun's click tracking rewrites links through its own tracking domain before redirecting to your site. Confirm on a test send that the redirect keeps your query parameters, so your UTM tagging survives and your site can tell an email return from a Pinterest click. Email clicks carry no epik, so the server event should rely on the epik and email stored from the original Pinterest visit.
Mailgun → Pinterest · what breaks
Why this join usually fails — Mailgun → Pinterest
- 01
The epik 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
The save-now-buy-later gap
Pinterest's whole behaviour model is saving something for later. A share of the revenue it genuinely drives arrives months after the click and outside any attribution window, and no build changes that. Say it before anyone sets a target.
- 04
Nothing reconciles afterwards
Pinterest Ads Manager reports events received and their match status. A successful API call is not a matched conversion — reconcile Pinterest's reported conversions against your own records for the same window and expect a structural gap from the save-then-buy delay.
Mailgun → Pinterest · the fix
What working looks like — Mailgun → Pinterest
The epik click identifier on every message
Conversions arriving in Pinterest
Conversions appear in Pinterest Ads Manager against the campaign, with the value you sent, and become usable for optimization.
Reconciled against the source
Mailgun → Pinterest · architecture
How Mailgun and Pinterest 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
Pinterest needs a click to match
Pinterest matches server events using the click identifier where present and hashed customer information otherwise. Confirm current endpoint and field names against Pinterest's own documentation — its Conversions API has been through more than one revision.
- 3
The identifier is the bridge
The epik 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
Pinterest deduplicates on event_id, so the tag and the server event must carry the same value for the same conversion. Pinterest volumes are often low enough that a doubling reads as a good week rather than a bug, which is why this needs testing deliberately rather than assuming.
Mailgun → Pinterest · normal or broken
Working vs. broken, side by side — Mailgun → Pinterest
Normal, not a fault
The epik click identifier present on the message
Sent from your order system
Deduplicated correctly
Pinterest deduplicates on event_id, so the tag and the server event must carry the same value for the same conversion. Pinterest volumes are often low enough that a doubling reads as a good week rather than a bug, which is why this needs testing deliberately rather than assuming.
Reconciles with the source
Actually broken
The epik 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
Pinterest's whole behaviour model is saving something for later. A share of the revenue it genuinely drives arrives months after the click and outside any attribution window, and no build changes that. Say it before anyone sets a target.
Nobody has reconciled it
Mailgun → Pinterest · diagnose
Diagnostic order — Mailgun → Pinterest
- 01
Count messages carrying the epik 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
Check the event delivery and match reporting in Pinterest Ads Manager
Not the API response code. A 200 means Pinterest accepted the payload, not that it matched it to a click.
- 05
Read the match rate, not the success message
Pinterest Ads Manager reports events received and their match status. A successful API call is not a matched conversion — reconcile Pinterest's reported conversions against your own records for the same window and expect a structural gap from the save-then-buy delay.
Mailgun → Pinterest · prove
How it gets proven — Mailgun → Pinterest
Source of truth
Your application's own record of what triggered the send, joined to the order.
- The epik click identifier confirmed present on a live message.
- Deduplication confirmed on a real conversion, and the attribution window your reporting uses stated explicitly.
- Orders reconciled against imported conversions, with the send inventory documented.
Mailgun → Pinterest · free audit
What we check in the free audit
- Count messages carrying the epik click identifier
- Follow one real conversion end to end
- Inventory every code path that triggers a send
- Check the event delivery and match reporting in Pinterest Ads Manager
- 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 → Pinterest · when not to buy
When you don't need this — Mailgun → Pinterest
- Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the epik click identifier.
- Deliverability monitoring is the right use of Mailgun's data. Attribution belongs at the order.
- If Pinterest is a small test line on your media plan, the Conversions API is more work than the signal is worth this quarter.
Mailgun → Pinterest · what we deliver
What gets built — Mailgun → Pinterest
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 Pinterest
Server events to the Pinterest Conversions API with the click identifier, hashed customer data and a matched event_id.
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 → Pinterest questions, answered
It shouldn't if the redirect preserves query strings, but confirm on a test send. Email clicks carry no epik either way.
Because the shopper's earlier Pinterest click is still inside the window. Record the alert on the order so you can report that overlap.
Almost always because the epik 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.
The epik parameter, appended to your landing page URL and stored by the tag in the _epik cookie. Pinterest also matches on hashed email and phone. The complication is behavioural rather than technical: a Pin saved in October and acted on in December is completely normal, so a meaningful share of genuine Pinterest-driven revenue falls outside any click window and is structurally unattributable.
Your order system. Send orders. Use Mailgun events for deliverability monitoring only.
Pinterest Ads Manager reports events received and their match status. A successful API call is not a matched conversion — reconcile Pinterest's reported conversions against your own records for the same window and expect a structural gap from the save-then-buy delay.
More on Mailgun → Pinterest
- Pinterest · Lead → booked callHow to track lead to booked call for Pinterest Ads
- Pinterest · Booked call → closed wonHow to track booked call to closed won for Pinterest Ads
- Pinterest · Free trial → paidHow to track free trial to paid for Pinterest Ads
RELATED GUIDES
Where Mailgun → Pinterest fits in the rest of your tracking
- Pinterest · SaaSPinterest Ads conversion tracking for SaaS companies
- Pinterest · EcommercePinterest Ads conversion tracking for ecommerce brands
- Pinterest × SubscriptionsHow to reconcile Pinterest Ads against your billing system
- Pinterest · Signup → activationHow to track signup to product activation for Pinterest Ads
- Resend → PinterestConnecting Resend to Pinterest
- Mailgun → X AdsConnecting Mailgun to X Ads
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- Postmark → PinterestConnecting Postmark to Pinterest
Free · 30 min
Get Mailgun and Pinterest joined properly
Free30 minutesNo obligation
