Skip to main content
Mailchimp → PostHogIntegration guide

Connecting Mailchimp to PostHog

Mailchimp holds the audience and the engagement, and it is almost never the system that took the money. 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 Mailchimp 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

PostHog cohorts into Mailchimp, and email clicks into PostHog

The more useful direction is PostHog to Mailchimp: sync product cohorts to Mailchimp tags keyed on email. Into PostHog, let posthog-js record Mailchimp UTMs on landing pageviews, never identify visitors through mc_eid, and send confirmed subscribes from the webhook to the capture API with a distinct_id stored in a merge field and a member-ID-derived UUID.

The useful direction for this pair is mostly PostHog to Mailchimp: product behavior that should change what someone receives, such as a trial user who never used the feature that predicts conversion. Check whether PostHog's data pipeline destinations include Mailchimp on your plan; otherwise sync a cohort to a Mailchimp tag on a schedule through the Mailchimp API, keyed on email.

In the other direction, email clicks are worth seeing in PostHog funnels. With UTM tagging on in Mailchimp, posthog-js records the UTM values on the landing pageview, which is enough to compare activation by campaign. Do not use mc_eid to identify the visitor: looking up the email behind it and calling identify links someone's browsing to their inbox without them signing in, which your privacy notice probably does not cover.

For signups, send the confirmed subscribe from Mailchimp's webhook to PostHog's capture API using the distinct_id saved in a hidden merge field, with a deterministic event UUID derived from the member ID so webhook retries do not duplicate it. Without the stored distinct_id, the signup lands on a new person with no browsing history attached.

Mailchimp → PostHog · what breaks

Why this join usually fails — Mailchimp → PostHog

  1. 01

    The distinct_id never reaches Mailchimp

    Mailchimp campaign clicks will overwrite an unguarded identifier field, which means your own email programme takes credit for sales that paid media produced.

  2. 02

    A mirror mistaken for a source

    Orders arrive in Mailchimp through an integration with a delay, so reconciling against it produces gaps that look like tracking bugs and are actually timing.

  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.

Mailchimp → PostHog · the fix

What working looks like — Mailchimp → 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

Mailchimp → PostHog · architecture

How Mailchimp and PostHog actually connect

  1. 1

    Mailchimp holds the truth

    Mailchimp is authoritative for audience and engagement and a delayed copy for anything financial. Treating the mirror as the source is how small ecommerce businesses end up with revenue nobody can reconcile.

  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 Mailchimp contact.

  4. 4

    The event source decides reliability

    Source the money event from the store rather than Mailchimp's mirror — the mirror adds a sync delay and a class of discrepancy that is genuinely hard to debug later.

  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.

Mailchimp → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the contact

  • Sent from your store's order webhook, with the identifier Mailchimp preserved

  • 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

    Mailchimp campaign clicks will overwrite an unguarded identifier field, which means your own email programme takes credit for sales that paid media produced.

  • Sent from the browser

    Orders arrive in Mailchimp through an integration with a delay, so reconciling against it produces gaps that look like tracking bugs and are actually timing.

  • 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

Mailchimp → PostHog · diagnose

Diagnostic order — Mailchimp → PostHog

  1. 01

    Count contacts carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare Mailchimp's revenue figure against the store's

    A gap here is a sync issue and it tells you which system to trust for money.

  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.

Mailchimp → PostHog · prove

How it gets proven — Mailchimp → PostHog

Source of truth

Your store's orders — Mailchimp mirrors them through an integration and is not the original.

  • 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.
  • A contact confirmed to retain its original identifier after a later campaign click.

Mailchimp → PostHog · free audit

What we check in the free audit

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

Checked against

Your store's orders — Mailchimp mirrors them through an integration and is not the original.

Get my free conversion tracking audit

Free30 minutesNo obligation

Mailchimp → PostHog · when not to buy

When you don't need this — Mailchimp → 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, the Mailchimp side may only need the identifier preserved and exclusion 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.

Mailchimp → PostHog · what we deliver

What gets built — Mailchimp → PostHog

  • Identifier capture into Mailchimp

    Write the identifier to an audience field once at subscribe, guarded so later campaign activity cannot rewrite it.

  • Event source: your store's order webhook, with the identifier Mailchimp preserved

    Source the money event from the store rather than Mailchimp's mirror — the mirror adds a sync delay and a class of discrepancy that is genuinely hard to debug later.

  • 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. An unsubscribe is not a revenue reversal and conflating the two confuses different things.

Written guarantee

95%+ tracking accuracy

Measured against Your store's orders — Mailchimp mirrors them through an integration and is not the original.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Mailchimp → PostHog questions, answered

Check PostHog's data pipeline destinations for Mailchimp on your plan. If it is not there, a scheduled job can read the cohort and tag the matching Mailchimp contacts through the API.

Free · 30 min

Get Mailchimp and PostHog joined properly

Free30 minutesNo obligation