Skip to main content
Unbounce → PostHogIntegration guide

Connecting Unbounce to PostHog

Unbounce's Smart Traffic routes visitors between page variants automatically, which means the page a visitor saw was chosen by an algorithm your campaign reporting knows nothing about. 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 Unbounce conversion 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

Unbounce pages in PostHog with one person across domains

PostHog on Unbounce works when the page shares your root domain and the PostHog cookie, so the distinct_id reaches your product. Load PostHog through the script manager with the product's project key, identify on submission, and register page and variant as person properties. Disable form-input autocapture, and use one variant-assignment system per page.

PostHog on Unbounce pages is useful when the landing page leads into a product that already uses PostHog: you can follow a person from the variant they saw to whether they activated in the product. That only works if the distinct_id survives from the Unbounce page to the product, which needs the page on a subdomain of your root domain with PostHog's cookie set at the root.

Load PostHog through Unbounce's script manager with the same project key as the product. On form submission, call identify with the email or your lead ID, and register the Unbounce page and variant as person properties so they persist to later product events. Turn off autocapture of form inputs on these pages, since Unbounce forms collect personal data you do not want in event properties.

If you are tempted to run PostHog experiments or feature flags on the same page, remember Smart Traffic is already assigning variants. Use one assignment system per page, and keep the other as observation only. Otherwise PostHog's experiment results and Smart Traffic's allocation describe two different splits of the same visitors, and neither result is clean.

Unbounce → PostHog · what breaks

Why this join usually fails — Unbounce → PostHog

  1. 01

    The distinct_id never reaches Unbounce

    Pages are frequently hosted on an Unbounce subdomain or a subdomain of yours, and the form submission is the only handoff point.

  2. 02

    Two optimisation systems on one audience

    Smart Traffic is changing the page while your bidding strategy is changing the traffic. Both will claim any improvement, and without the variant recorded nobody can separate them.

  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.

Unbounce → PostHog · the fix

What working looks like — Unbounce → PostHog

  • The distinct_id on every conversion

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Unbounce → PostHog · architecture

How Unbounce and PostHog actually connect

  1. 1

    Unbounce holds the truth

    When the landing page tool is optimising variants while you are testing campaigns, two experiments run on the same traffic. Without the variant on the record neither result is clean.

  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 Unbounce conversion.

  4. 4

    The event source decides reliability

    Send the qualified downstream outcome with the page variant attached, not the form fill.

  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.

Unbounce → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the conversion

  • Sent from your CRM or order record

  • 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

    Pages are frequently hosted on an Unbounce subdomain or a subdomain of yours, and the form submission is the only handoff point.

  • Sent from the browser

    Smart Traffic is changing the page while your bidding strategy is changing the traffic. Both will claim any improvement, and without the variant recorded nobody can separate them.

  • 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

Unbounce → PostHog · diagnose

Diagnostic order — Unbounce → PostHog

  1. 01

    Count conversions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether variant routing is active during a campaign test

    First question when an unexplained shift appears on a landing-page-heavy account.

  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.

Unbounce → PostHog · prove

How it gets proven — Unbounce → PostHog

Source of truth

Your CRM or order system, with the Unbounce variant recorded on the lead.

  • The distinct_id confirmed present on a live conversion.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Qualified outcomes reconciled by page variant against imported conversions across the full test window.

Unbounce → PostHog · free audit

What we check in the free audit

  • Count conversions carrying the distinct_id
  • Follow one real conversion end to end
  • Check whether variant routing is active during a campaign test
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Your CRM or order system, with the Unbounce variant recorded on the lead.

Get my free conversion tracking audit

Free30 minutesNo obligation

Unbounce → PostHog · when not to buy

When you don't need this — Unbounce → PostHog

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the distinct_id.
  • If you run a single static page with no variant routing, this interference does not exist.
  • 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.

Unbounce → PostHog · what we deliver

What gets built — Unbounce → PostHog

  • Identifier capture into Unbounce

    Capture the identifier into a hidden field on the form so it reaches your CRM, since the page itself may not be on your main domain.

  • Event source: your CRM or order record

    Send the qualified downstream outcome with the page variant attached, not the form fill.

  • 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

    Disqualified leads reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your CRM or order system, with the Unbounce variant recorded on the lead.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Unbounce → PostHog questions, answered

Yes, if the pages are on a subdomain of your root domain with PostHog's cookie at the root, and you identify the person on form submission.

Free · 30 min

Get Unbounce and PostHog joined properly

Free30 minutesNo obligation