Connecting Postmark to PostHog
Postmark sends transactional email — receipts, confirmations, password resets — which means it is a record that a message about a conversion was sent, not a record of the conversion. PostHog can be self-hosted, which changes the calculus entirely: the data stays on infrastructure you control, and so does the responsibility for everything that goes wrong with it. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Postmark message before the conversion happens, because PostHog can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Postmark webhooks into PostHog, keyed on your user ID
Put the user's distinct_id in Postmark message metadata, then capture delivery, bounce and click webhooks into PostHog as email-prefixed events to see whether onboarding and password-reset emails lead to the next product step. Derive event UUIDs from MessageID plus event type to absorb retries, distrust opens, and keep these events out of marketing funnels.
This is one of the few destinations where Postmark data has a real job. Product teams want to know whether onboarding and password-reset emails lead to the next step in the product, and PostHog is where those funnels already live. Put the user's distinct_id in the Postmark message metadata at send time, and the delivery, bounce and click webhooks can be captured into PostHog against the same person who later completes setup or resets the password.
Name these events so nobody mistakes them for conversions, for example with an email prefix, and keep them out of marketing funnels. Opens are partly generated by mail-client prefetching, so a funnel step on open looks healthier than it is; delivery and click are more trustworthy, though security scanners also click links in corporate inboxes. Derive a deterministic event UUID from Postmark's message ID and the event type, because Postmark can retry a webhook your endpoint did not acknowledge and the retry should not become a second event.
The question this pair answers well is operational: how many users who asked for a password reset never received it, and how many of them churned. The purchase or signup itself still comes from your backend.
Postmark → PostHog · what breaks
Why this join usually fails — Postmark → PostHog
- 01
The distinct_id never reaches Postmark
There is no browser session and no click. A transactional send is a server event about an order that already happened.
- 02
Email opens treated as engagement worth optimizing
Transactional open rates are high because people want their receipt. Optimizing anything toward them measures how much people like being told their order shipped.
- 03
Self-hosting the analytics and the outage together
The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.
- 04
Nothing reconciles afterwards
PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.
Postmark → PostHog · the fix
What working looks like — Postmark → PostHog
The distinct_id on every message
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Postmark → PostHog · architecture
How Postmark and PostHog actually connect
- 1
Postmark holds the truth
The receipt and the order are different objects. Attributing revenue from an email send means your reported revenue depends on your email deliverability, which is not a relationship anyone wants.
- 2
PostHog needs a click to match
PostHog needs a distinct_id, an event name and its properties. Self-hosted instances additionally need the ingestion endpoint reachable and the project API key correct, which is a class of failure hosted tools do not have.
- 3
The identifier is the bridge
The distinct_id, captured at the visit and carried into the Postmark message.
- 4
The event source decides reliability
Send orders. Delivery and open data belong in an operational report, not a conversion.
- 5
Deduplication at the destination
PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.
Postmark → PostHog · normal or broken
Working vs. broken, side by side — Postmark → PostHog
Normal, not a fault
The distinct_id present on the message
Sent from your order system
Deduplicated correctly
PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.
Reconciles with the source
Actually broken
The distinct_id missing on most records
There is no browser session and no click. A transactional send is a server event about an order that already happened.
Sent from the browser
Transactional open rates are high because people want their receipt. Optimizing anything toward them measures how much people like being told their order shipped.
Counted twice, or not at all
The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.
Nobody has reconciled it
Postmark → PostHog · diagnose
Diagnostic order — Postmark → PostHog
- 01
Count messages carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Confirm no transactional email event reaches an ad platform
The right number is zero, and a surprising number of accounts have receipts wired as conversions.
- 04
Check ingestion health and disk before debugging any missing event
On self-hosted instances the answer is infrastructure far more often than it is instrumentation.
- 05
Read the match rate, not the success message
PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.
Postmark → PostHog · prove
How it gets proven — Postmark → PostHog
Source of truth
Your order system. Postmark confirms the receipt went out; it does not know what was bought.
- The distinct_id confirmed present on a live message.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Orders reconciled against imported conversions, with transactional email events absent.
Postmark → PostHog · free audit
What we check in the free audit
- Count messages carrying the distinct_id
- Follow one real conversion end to end
- Confirm no transactional email event reaches an ad platform
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Your order system. Postmark confirms the receipt went out; it does not know what was bought.
Free30 minutesNo obligation
Postmark → PostHog · when not to buy
When you don't need this — Postmark → PostHog
- Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the distinct_id.
- Transactional email needs monitoring, not attribution. Watch bounce and delivery rates, and keep it out of the conversion pipeline.
- If you have no reason to keep the data on your own infrastructure and no team to run it, the hosted product removes the only real downside of this one.
Postmark → PostHog · what we deliver
What gets built — Postmark → PostHog
Identifier capture into Postmark
Attribute at the order, and use Postmark's delivery data only to confirm the customer was actually told.
Event source: your order system
Send orders. Delivery and open data belong in an operational report, not a conversion.
Dispatch to PostHog
The PostHog capture API, posted server-side from your backend to your own instance or to PostHog Cloud.
Reversals where they exist
Refunds reverse at the order, not at the email.
Written guarantee
95%+ tracking accuracy
Measured against Your order system. Postmark confirms the receipt went out; it does not know what was bought.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Postmark → PostHog questions, answered
Include the PostHog distinct_id in the message metadata when sending, then capture each Postmark webhook into PostHog with that distinct_id. Without it the events attach to no one.
Not very, since mail clients and privacy features load images automatically. Use delivery and click events for funnel steps.
Almost always because the distinct_id never reached the Postmark message. There is no browser session and no click. A transactional send is a server event about an order that already happened. Measure coverage before debugging the dispatch.
PostHog identifies by distinct_id with an alias call to merge anonymous and identified users. On a self-hosted instance you also control the ingestion endpoint, which means the identifier survives ad blockers that would kill a third-party pixel — one of the few genuine technical advantages available to a first-party setup.
Your order system. Send orders. Delivery and open data belong in an operational report, not a conversion.
PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.
More on Postmark → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
RELATED GUIDES
Where Postmark → PostHog fits in the rest of your tracking
- SendGrid → PostHogConnecting SendGrid to PostHog
- Mailgun → PostHogConnecting Mailgun to PostHog
- Resend → PostHogConnecting Resend to PostHog
- Postmark → MatomoConnecting Postmark to Matomo
- Postmark → GA4Connecting Postmark to GA4
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
Free · 30 min
Get Postmark and PostHog joined properly
Free30 minutesNo obligation
