Skip to main content
Usercentrics → PostHogIntegration guide

Connecting Usercentrics to PostHog

Usercentrics is built around per-service consent rather than broad categories, which is better for compliance and means a single service being switched off can silently break one platform while the others keep working. 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 Usercentrics consent decision 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

Usercentrics and PostHog: memory mode for visitors who decline

Pair the PostHog service decision with PostHog's persistence: memory-only or no capture for decliners, persistent storage for accepted visitors, with opt-out and opt-in calls for hard declines. Server events to the capture API need the decision too: drop purchases for declined users or send them anonymous, per policy. Self-hosting doesn't change the obligation.

PostHog can keep its identifier in memory only, writing nothing to cookies or local storage, so the ID disappears when the tab closes. Pair that with the Usercentrics decision for the PostHog service: declined visitors captured in memory-only mode, or not captured at all if your legal reading requires it, and accepted visitors switched to persistent storage so their distinct_id survives across sessions. PostHog's opt-out and opt-in calls stop and resume capture entirely, which is the cleaner match for a hard decline.

The cost shows up in funnels. A declined visitor in memory mode gets a new distinct_id on every visit, so a funnel spanning two sessions breaks for them, and a server-side purchase captured against their user ID never links to the anonymous browsing before it. Filter funnels to persistently consented sessions, or report funnel conversion with the consent share stated, rather than concluding that multi-session journeys convert badly.

Server events posted to the capture API from your backend need the decision too: a purchase for a signed-in user who declined PostHog should be dropped or sent as an anonymous event without a person profile, depending on your policy. Self-hosting changes none of this; data staying on your own infrastructure is still data about a person who said no.

Usercentrics → PostHog · what breaks

Why this join usually fails — Usercentrics → PostHog

  1. 01

    The distinct_id never reaches Usercentrics

    Each service has its own consent state, so an identifier may be capturable for one destination and not another in the same session.

  2. 02

    Different consent rates producing incomparable platform numbers

    If Google is consented at 70% and Meta at 55%, their reported conversions are not measuring the same population. Comparing platform performance without stating that is comparing two different samples.

  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.

Usercentrics → PostHog · the fix

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

Usercentrics → PostHog · architecture

How Usercentrics and PostHog actually connect

  1. 1

    Usercentrics holds the truth

    Per-service granularity means consent is not one number. A visitor can accept Google and decline Meta, which makes each platform's conversion ceiling different and each platform's reporting incomparable to the others.

  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 Usercentrics consent decision.

  4. 4

    The event source decides reliability

    Send each destination only the conversions consented for that destination, and report the per-service consent rate.

  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.

Usercentrics → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the consent record

  • Sent from your order system, gated per service

  • 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

    Each service has its own consent state, so an identifier may be capturable for one destination and not another in the same session.

  • Sent from the browser

    If Google is consented at 70% and Meta at 55%, their reported conversions are not measuring the same population. Comparing platform performance without stating that is comparing two different samples.

  • 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

Usercentrics → PostHog · diagnose

Diagnostic order — Usercentrics → PostHog

  1. 01

    Count consent records carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Report consent rate per service, not one overall figure

    It is the number that makes cross-platform comparison honest, and almost nobody has it.

  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.

Usercentrics → PostHog · prove

How it gets proven — Usercentrics → PostHog

Source of truth

Your order system, with per-service consent recorded at the time of the event.

  • 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.
  • Per-service consented conversions reconciled against each platform's figures, with the per-service rates stated.

Usercentrics → PostHog · free audit

What we check in the free audit

  • Count consent records carrying the distinct_id
  • Follow one real conversion end to end
  • Report consent rate per service, not one overall figure
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Your order system, with per-service consent recorded at the time of the event.

Get my free conversion tracking audit

Free30 minutesNo obligation

Usercentrics → PostHog · when not to buy

When you don't need this — Usercentrics → PostHog

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the distinct_id.
  • If you run one ad platform, per-service granularity adds precision you have nowhere to use.
  • 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.

Usercentrics → PostHog · what we deliver

What gets built — Usercentrics → PostHog

  • Identifier capture into Usercentrics

    Record which services were consented on the event itself, so each destination's send is gated on its own permission.

  • Event source: your order system, gated per service

    Send each destination only the conversions consented for that destination, and report the per-service consent rate.

  • 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

    Per-service withdrawal stops sends to that service only.

Written guarantee

95%+ tracking accuracy

Measured against Your order system, with per-service consent recorded at the time of the event.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Usercentrics → PostHog questions, answered

Read the PostHog service decision from Usercentrics and call PostHog's opt-in or opt-out accordingly, or switch persistence to memory for declined visitors. Apply stored decisions before the first capture on each page load.

Free · 30 min

Get Usercentrics and PostHog joined properly

Free30 minutesNo obligation