Skip to main content
Omnisend → PostHogIntegration guide

Connecting Omnisend to PostHog

Omnisend is ecommerce email and SMS, which means it mirrors your store's orders and is authoritative for none of them. 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 Omnisend contact 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

Omnisend signups in PostHog: merging the browse before the email

When the Omnisend form submits, identify the person in PostHog with your customer ID or a hashed email, never raw email, so earlier anonymous browsing merges; if no submit event is exposed, identify at account creation or checkout. Send purchases server-side from the store's order webhook with the same distinct_id and an order-based event UUID, and test popups against purchases.

PostHog is useful to an Omnisend store for questions Omnisend cannot answer: what subscribers did on the site before signing up, which popup variant brought buyers rather than discount hunters, where email traffic drops out of checkout. The key moment is the signup. When the Omnisend form is submitted, identify the person with your customer ID or a hashed email so the anonymous browsing before it merges into one profile.

Catching that submit in the browser depends on Omnisend's form exposing an event your script can listen for; check Omnisend's documentation, or fall back to identifying at account creation or checkout. Never set the raw email address as the distinct_id. Email clicks from Omnisend arrive with UTM parameters PostHog records on the first pageview, which gives you a funnel from email click to purchase for identified subscribers.

Purchases should come server-side from the store's order webhook with the same distinct_id and an event UUID from the order ID. If you control which popup a visitor sees, use PostHog feature flags to test popup timing against downstream purchases, not signup rate; a popup that doubles signups and halves the buyer share is a loss.

Omnisend → PostHog · what breaks

Why this join usually fails — Omnisend → PostHog

  1. 01

    The distinct_id never reaches Omnisend

    Campaign and automation clicks will overwrite an unguarded identifier field, which hands credit for paid-acquired customers to your own email programme.

  2. 02

    A mirror treated as a source

    Omnisend's revenue attribution is calculated on its own rules and its own windows. Comparing it to your store's figure without understanding both will never balance.

  3. 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.

  4. 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.

Omnisend → PostHog · the fix

What working looks like — Omnisend → PostHog

  • The distinct_id on every contact

  • Conversions arriving in PostHog

    The event lands on the person profile and becomes available in insights, funnels and session replay.

  • Reconciled against the source

Omnisend → PostHog · architecture

How Omnisend and PostHog actually connect

  1. 1

    Omnisend holds the truth

    As with any ecommerce email platform, the store took the money and Omnisend received a copy on a delay. Reconciling against the copy produces gaps that look like bugs and are timing.

  2. 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. 3

    The identifier is the bridge

    The distinct_id, captured at the visit and carried into the Omnisend contact.

  4. 4

    The event source decides reliability

    Source revenue from the store. Use Omnisend for audience, segmentation and suppression rather than as the money event.

  5. 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.

Omnisend → PostHog · normal or broken

Working vs. broken, side by side — Omnisend → PostHog

Normal, not a fault

  • The distinct_id present on the contact

  • Sent from your store's order webhook

  • 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

    Campaign and automation clicks will overwrite an unguarded identifier field, which hands credit for paid-acquired customers to your own email programme.

  • Sent from the browser

    Omnisend's revenue attribution is calculated on its own rules and its own windows. Comparing it to your store's figure without understanding both will never balance.

  • 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

Omnisend → PostHog · diagnose

Diagnostic order — Omnisend → PostHog

  1. 01

    Count contacts carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare Omnisend's attributed revenue against the store's total

    They answer different questions on different windows. Knowing that is more useful than trying to make them match.

  4. 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.

  5. 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.

Omnisend → PostHog · prove

How it gets proven — Omnisend → PostHog

Source of truth

Your store's orders — Omnisend syncs them and is a copy.

  • The distinct_id confirmed present on a live contact.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Money events confirmed sourced from the store rather than from Omnisend's mirror.

Omnisend → PostHog · free audit

What we check in the free audit

  • Count contacts carrying the distinct_id
  • Follow one real conversion end to end
  • Compare Omnisend's attributed revenue against the store's total
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Your store's orders — Omnisend syncs them and is a copy.

Get my free conversion tracking audit

Free30 minutesNo obligation

Omnisend → PostHog · when not to buy

When you don't need this — Omnisend → PostHog

  • Measure identifier coverage yourself first — pull your last hundred contacts and count how many carry the distinct_id.
  • If your store is already tracked properly, Omnisend may only need the identifier preserved and suppression audiences wired.
  • 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.

Omnisend → PostHog · what we deliver

What gets built — Omnisend → PostHog

  • Identifier capture into Omnisend

    Write the identifier to a custom contact property once at signup, guarded against later campaign activity.

  • Event source: your store's order webhook

    Source revenue from the store. Use Omnisend for audience, segmentation and suppression rather than as the money event.

  • 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 come from the store.

Written guarantee

95%+ tracking accuracy

Measured against Your store's orders — Omnisend syncs them and is a copy.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Omnisend → PostHog questions, answered

Identify the person when the Omnisend form is submitted, if your setup can detect that event, or at account creation, using a customer ID rather than the raw email.

Free · 30 min

Get Omnisend and PostHog joined properly

Free30 minutesNo obligation