Skip to main content
Osano → PostHogIntegration guide

Connecting Osano to PostHog

Osano handles consent alongside vendor risk and data subject requests, which means a deletion request arriving through it has consequences for data you already sent to ad platforms. 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 Osano consent and subject request record 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

Osano consent with PostHog's opt-out and cookieless modes

Start PostHog's browser library opted out or memory-only, then switch when Osano reports analytics consent. Decide session replay separately, confirming input masking and possibly requiring a stricter category. On self-hosted PostHog you run Osano deletions yourself, confirming the background event deletion finished; identify signed-in users with your customer ID so they can be found.

PostHog's browser library has its own opt-in and opt-out controls and can run without persistent cookies, so this pair is mostly a question of wiring Osano's analytics consent to those controls at page load and whenever consent changes. Start PostHog in an opted-out or memory-only state, then switch when Osano reports consent, so nothing is captured with a persistent identifier before the visitor has answered.

Session replay deserves a separate decision. It records far more than events, including text typed into forms unless masked. If you use it, check that masking covers every input, and consider requiring a stricter Osano category for replay than for event capture.

On a self-hosted instance, subject requests through Osano are yours to execute end to end. PostHog can delete a person and their events, but event deletion runs as a background job, so check it completed before closing the request. The lookup only works if you called identify with your customer ID for signed-in users; anonymous distinct_ids from before sign-in that were never aliased cannot be found from the email Osano gives you.

Osano → PostHog · what breaks

Why this join usually fails — Osano → PostHog

  1. 01

    The distinct_id never reaches Osano

    Identifier capture is gated on consent, and a later deletion request means the identifier must be removed from your own records as well.

  2. 02

    Deletion requests that stop at your database

    The data was sent onward. A subject request handled only internally leaves hashed identifiers sitting in several ad platforms, which is the part an audit asks about and the part almost nobody has built.

  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.

Osano → PostHog · the fix

What working looks like — Osano → PostHog

  • The distinct_id on every consent record

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Osano → PostHog · architecture

How Osano and PostHog actually connect

  1. 1

    Osano holds the truth

    A subject deletion request is not just a database operation. Conversions already sent to platforms carrying hashed identifiers may need deletion requests raised there too, and most implementations never wire that path.

  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 Osano consent and subject request record.

  4. 4

    The event source decides reliability

    Send consented conversions, and raise platform-side deletion requests when a subject request is received.

  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.

Osano → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the consent record

  • Sent from your order system, gated on consent

  • 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

    Identifier capture is gated on consent, and a later deletion request means the identifier must be removed from your own records as well.

  • Sent from the browser

    The data was sent onward. A subject request handled only internally leaves hashed identifiers sitting in several ad platforms, which is the part an audit asks about and the part almost nobody has built.

  • 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

Osano → PostHog · diagnose

Diagnostic order — Osano → PostHog

  1. 01

    Count consent records carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Trace where a single customer's data actually went

    List every destination that received it. That list is what a deletion request has to reach, and producing it is usually the first time anyone has.

  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.

Osano → PostHog · prove

How it gets proven — Osano → PostHog

Source of truth

Your order system, with consent state and any deletion request recorded against the customer.

  • The distinct_id confirmed present on a live consent record.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Consented conversions reconciled, plus a demonstrated deletion path to every destination that received customer data.

Osano → PostHog · free audit

What we check in the free audit

  • Count consent records carrying the distinct_id
  • Follow one real conversion end to end
  • Trace where a single customer's data actually went
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Your order system, with consent state and any deletion request recorded against the customer.

Get my free conversion tracking audit

Free30 minutesNo obligation

Osano → PostHog · when not to buy

When you don't need this — Osano → PostHog

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the distinct_id.
  • If you send no customer identifiers to any platform, the deletion propagation problem does not arise — and that is worth confirming rather than assuming.
  • 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.

Osano → PostHog · what we deliver

What gets built — Osano → PostHog

  • Identifier capture into Osano

    Capture after consent, store the identifier where a deletion request can reach it, and wire the downstream deletion path before you need it.

  • Event source: your order system, gated on consent

    Send consented conversions, and raise platform-side deletion requests when a subject request is received.

  • 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

    Deletion requests should propagate to every destination that received the customer's data.

Written guarantee

95%+ tracking accuracy

Measured against Your order system, with consent state and any deletion request recorded against the customer.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Osano → PostHog questions, answered

Initialize PostHog opted out or cookieless, then call its opt-in when Osano reports analytics consent and opt-out if consent is withdrawn.

Free · 30 min

Get Osano and PostHog joined properly

Free30 minutesNo obligation