Skip to main content
mParticle → PostHogIntegration guide

Connecting mParticle to PostHog

mParticle is built around mobile identity resolution, which is the hard case — an app install severs the browser cookie, and stitching the two sides is the entire value proposition. 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 mParticle user event 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 alongside mParticle: one event source, one distinct_id

Pick one source per event: PostHog's own SDK for in-product behavior, session replay and feature flags, and server-side capture from your backend for purchases and subscription changes. Set distinct_id to the same stable customer ID mParticle sends, never the MPID, and alias anonymous IDs at login. Set the event UUID from the transaction ID so retried forwards don't double revenue.

Teams with mParticle often add PostHog for funnels, feature flags and session replay, and end up instrumenting twice: the PostHog SDK in the app for flags and replay, plus mParticle forwarding the same events. Two sources with slightly different event names and properties produce funnels that disagree with each other. Choose one source per event, usually PostHog's SDK for in-product behavior and server-side capture from your backend for purchases and subscription changes.

Set distinct_id to your stable customer ID once a user is identified, matching what mParticle sends as customer ID, so both tools describe the same person. Do not use the MPID as distinct_id; mParticle can reassign it after a merge, and PostHog would treat the merged person as someone new. Alias anonymous PostHog IDs on login in step with how mParticle resolves its anonymous profile, or pre-login marketing touches drop out of every funnel.

Check whether mParticle has a PostHog output before building one. If you forward through it, forwarded events carry no replays or feature-flag exposures, which only PostHog's own SDK records. For purchases, set the event UUID from the transaction ID so a retried forward does not double revenue in PostHog insights.

mParticle → PostHog · what breaks

Why this join usually fails — mParticle → PostHog

  1. 01

    The distinct_id never reaches mParticle

    The web-to-app transition. A user clicks an ad in a browser, installs the app and converts inside it, and nothing carries across without deliberate deferred-deep-link handling.

  2. 02

    Identity merge rules quietly setting your conversion count

    Merge too aggressively and two people become one customer. Merge too conservatively and one customer becomes three conversions. Neither failure announces itself and both change the number your bidding runs on.

  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.

mParticle → PostHog · the fix

What working looks like — mParticle → PostHog

  • The distinct_id on every event

  • Conversions arriving in PostHog

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

  • Reconciled against the source

mParticle → PostHog · architecture

How mParticle and PostHog actually connect

  1. 1

    mParticle holds the truth

    Identity resolution decides which events belong to which person, and the merge rules you configure directly determine your conversion counts. Get them wrong and you either duplicate people or collapse strangers together.

  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 mParticle user event.

  4. 4

    The event source decides reliability

    Send settled transactions from the resolved profile, with platform noted, so web and app performance stay distinguishable.

  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.

mParticle → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the event

  • Sent from the mParticle server-side feed

  • 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

    The web-to-app transition. A user clicks an ad in a browser, installs the app and converts inside it, and nothing carries across without deliberate deferred-deep-link handling.

  • Sent from the browser

    Merge too aggressively and two people become one customer. Merge too conservatively and one customer becomes three conversions. Neither failure announces itself and both change the number your bidding runs on.

  • 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

mParticle → PostHog · diagnose

Diagnostic order — mParticle → PostHog

  1. 01

    Count events carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Audit the identity priority order

    Read the configured hierarchy and test it against known duplicate accounts before trusting any downstream count.

  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.

mParticle → PostHog · prove

How it gets proven — mParticle → PostHog

Source of truth

The resolved user profile, joined to your billing or order system.

  • The distinct_id confirmed present on a live event.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Distinct paying customers in billing reconciled against resolved profiles reporting a purchase.

mParticle → PostHog · free audit

What we check in the free audit

  • Count events carrying the distinct_id
  • Follow one real conversion end to end
  • Audit the identity priority order
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

The resolved user profile, joined to your billing or order system.

Get my free conversion tracking audit

Free30 minutesNo obligation

mParticle → PostHog · when not to buy

When you don't need this — mParticle → PostHog

  • Measure identifier coverage yourself first — pull your last hundred events and count how many carry the distinct_id.
  • Web-only businesses rarely need this. The mobile identity problem is what justifies the complexity, and without an app you are paying for a solution to a problem you do not have.
  • 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.

mParticle → PostHog · what we deliver

What gets built — mParticle → PostHog

  • Identifier capture into mParticle

    Capture the identifier on the web, pass it through the install attribution flow, and set it as a user attribute on the app-side profile so the eventual purchase can still name its origin.

  • Event source: the mParticle server-side feed

    Send settled transactions from the resolved profile, with platform noted, so web and app performance stay distinguishable.

  • 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 and subscription cancellations reverse against the same profile.

Written guarantee

95%+ tracking accuracy

Measured against The resolved user profile, joined to your billing or order system.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

mParticle → PostHog questions, answered

Use PostHog's SDK for product behavior, flags and replay, and server-side capture for purchases. Forwarding the same events from mParticle as well creates duplicate and conflicting data.

Free · 30 min

Get mParticle and PostHog joined properly

Free30 minutesNo obligation