Skip to main content
VWO → PostHogIntegration guide

Connecting VWO to PostHog

VWO runs tests on marketing pages specifically, which puts it directly in the paid traffic path and makes the interaction between testing and attribution unavoidable. 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 VWO variation 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

VWO variation as a PostHog property, or use PostHog experiments

If VWO stays for landing pages, register the applied variation as a PostHog super property when VWO applies it, plus a person property set once. Backend purchase and subscription events carry the variation only if the server sends the same distinct_id the browser used. Check PostHog funnels by variation against your order system.

PostHog has its own feature flags and experiments, so the first question is whether VWO is still needed. VWO's reason to exist alongside PostHog is the visual editor for marketing pages that engineers do not want to touch; code-level tests inside the product usually belong in PostHog, where assignment and analysis share one distinct_id. Running both on the same flow produces two assignments per person and two answers.

If VWO stays for landing pages, register the applied variation as a super property in the PostHog snippet, so every later event from that browser carries it, including the signup and activation events that matter. Register it when VWO applies the variation, not on page load, or visitors bucketed after the first event get it late. A person property set once is useful too, since it survives into sessions on other devices after identification.

The server side is where it breaks. Purchases and subscription events captured from your backend carry only what you send, so they arrive without the variation unless the backend sends the same distinct_id the browser used after identification. Check the PostHog funnel by variation against your order system; if server events show far fewer conversions per variation than expected, the distinct_id is not matching between browser and backend.

VWO → PostHog · what breaks

Why this join usually fails — VWO → PostHog

  1. 01

    The distinct_id never reaches VWO

    Synchronous test rendering can delay page load; asynchronous rendering causes flicker. Both push the identifier-capture script later in the sequence than it should be.

  2. 02

    Three tools reporting three different conversion counts

    VWO, the ad platform and the CRM will each produce a different number for the same week, because each defines a visitor, a conversion and a window differently. Reconciling them requires one source of truth, and it is not the testing tool.

  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.

VWO → PostHog · the fix

What working looks like — VWO → PostHog

  • The distinct_id on every variation

  • Conversions arriving in PostHog

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

  • Reconciled against the source

VWO → PostHog · architecture

How VWO and PostHog actually connect

  1. 1

    VWO holds the truth

    VWO's own goal conversion is measured on its terms, in its window, against its visitor definition. It will not match your ad platform's figure and it is not supposed to.

  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 VWO variation.

  4. 4

    The event source decides reliability

    Send the downstream outcome — a qualified lead or a settled order — with the variation attached, rather than the on-page goal VWO records.

  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.

VWO → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the variation

  • Sent from your lead or order system

  • 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

    Synchronous test rendering can delay page load; asynchronous rendering causes flicker. Both push the identifier-capture script later in the sequence than it should be.

  • Sent from the browser

    VWO, the ad platform and the CRM will each produce a different number for the same week, because each defines a visitor, a conversion and a window differently. Reconciling them requires one source of truth, and it is not the testing tool.

  • 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

VWO → PostHog · diagnose

Diagnostic order — VWO → PostHog

  1. 01

    Count variations carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check the load order of the testing library against identifier capture

    If the test renders first, some share of identifiers is being lost on slower connections, and that share is not random across variations.

  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.

VWO → PostHog · prove

How it gets proven — VWO → PostHog

Source of truth

Your lead or order system, joined to the variation the visitor saw.

  • The distinct_id confirmed present on a live variation.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Downstream outcomes reconciled per variation against imported conversions.

VWO → PostHog · free audit

What we check in the free audit

  • Count variations carrying the distinct_id
  • Follow one real conversion end to end
  • Check the load order of the testing library against identifier capture
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Your lead or order system, joined to the variation the visitor saw.

Get my free conversion tracking audit

Free30 minutesNo obligation

VWO → PostHog · when not to buy

When you don't need this — VWO → PostHog

  • Measure identifier coverage yourself first — pull your last hundred variations and count how many carry the distinct_id.
  • Not testing paid landing pages means no interaction, and no reason to integrate the two systems.
  • 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.

VWO → PostHog · what we deliver

What gets built — VWO → PostHog

  • Identifier capture into VWO

    Capture the identifier in the document head, before any testing library runs. This is the fix and it is a five-minute change.

  • Event source: your lead or order system

    Send the downstream outcome — a qualified lead or a settled order — with the variation attached, rather than the on-page goal VWO records.

  • 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 and refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your lead or order system, joined to the variation the visitor saw.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

VWO → PostHog questions, answered

Use PostHog for tests inside your product, where assignment and analysis share one ID. Keep VWO for visual tests on marketing pages if that editor is why you bought it.

Free · 30 min

Get VWO and PostHog joined properly

Free30 minutesNo obligation