Skip to main content
Wix → PostHogIntegration guide

Connecting Wix Stores to PostHog

Wix is a closed, hosted platform whose ecommerce layer gives you a clean order record and limited control over everything around it. 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 Wix order 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

Wix Stores to PostHog: tying the order to the distinct_id

Confirm PostHog registers pageviews on Wix's internal navigation before trusting funnels. Send the purchase from the Wix order webhook to the capture API with the distinct_id read at checkout and stored on the order through Velo, basing the event UUID on the Wix order number. Call identify with member IDs; self-hosted ingestion avoids blocking.

PostHog's JavaScript snippet can go into Wix custom code, but Wix's single-page navigation means page views and autocapture do not always behave as they would on an ordinary site. Check that pageviews register on internal navigation between Wix pages before trusting any funnel PostHog draws from product page to cart to checkout.

The purchase belongs on the server. Read PostHog's distinct_id in the browser during checkout, store it on the Wix order through Velo, and send the purchase from the Wix order webhook to the capture API with that distinct_id and the Wix order number as the event UUID basis. Without the stored distinct_id, the server event lands on a new person and the funnel shows every buyer dropping out at checkout.

If shoppers sign in as Wix members, call identify with the member ID so repeat purchases join one person. A self-hosted PostHog instance with ingestion on your own subdomain keeps browser events from being blocked, which is a real gain over a third-party pixel on a Wix site. Most Wix stores do not need product analytics depth, though; use PostHog when you are testing pages or offers and need to see where buyers drop off.

Wix → PostHog · what breaks

Why this join usually fails — Wix → PostHog

  1. 01

    The distinct_id never reaches Wix

    Wix controls the page lifecycle and the checkout, so scripts run in an environment you do not fully govern. Velo gives programmatic access, and without it the options are narrow.

  2. 02

    A page lifecycle you do not control

    Wix decides when and whether your code runs. Approaches that assume ordinary DOM timing behave unpredictably here, and the failures are intermittent.

  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.

Wix → PostHog · the fix

What working looks like — Wix → PostHog

  • The distinct_id on every order

  • Conversions arriving in PostHog

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

  • Reconciled against the source

    Wix Stores's own records are the reference, not either dashboard.

Wix → PostHog · architecture

How Wix and PostHog actually connect

  1. 1

    Wix Stores holds the truth

    Wix holds the order reliably. The question is always what can reach it from your side, since the platform mediates most of what runs on the page.

  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 Wix order.

  4. 4

    The event source decides reliability

    Send from the webhook rather than any page-based trigger, given how much of the page lifecycle Wix manages itself.

  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.

Wix → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the order

    Visible on the record itself in Wix Stores, not merely captured somewhere on the site.

  • Sent from the Wix order webhook

  • 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

    PostHog's count and Wix Stores's records agree within a few percent over a closed window.

Actually broken

  • The distinct_id missing on most records

    Wix controls the page lifecycle and the checkout, so scripts run in an environment you do not fully govern. Velo gives programmatic access, and without it the options are narrow.

  • Sent from the browser

    Wix decides when and whether your code runs. Approaches that assume ordinary DOM timing behave unpredictably here, and the failures are intermittent.

  • 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

    The dashboard shows a number and no one has compared it to Wix Stores.

Wix → PostHog · diagnose

Diagnostic order — Wix → PostHog

  1. 01

    Count orders carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Verify the identifier lands on a real Wix order

    Assumptions carried over from open platforms do not hold; test it directly.

  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.

Wix → PostHog · prove

How it gets proven — Wix → PostHog

Against Wix Stores's own records, not against either platform's dashboard.

Source of truth

Wix's order records for the same window.

  • The distinct_id confirmed present on a live order.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • A purchase confirmed to carry the identifier onto the Wix order record.

Wix → PostHog · free audit

What we check in the free audit

  • Count orders carrying the distinct_id
  • Follow one real conversion end to end
  • Verify the identifier lands on a real Wix order
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Wix's order records for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

Wix → PostHog · when not to buy

When you don't need this — Wix → PostHog

  • If PostHog already reports conversions that reconcile against Wix Stores's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
  • If your store is small and Wix's own analytics answers your questions, the platform ceiling makes further investment poor value.
  • 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.

Wix → PostHog · what we deliver

What gets built — Wix → PostHog

  • Identifier capture into Wix

    Capture the identifier and attach it to the order through Velo or the supported order fields, confirming on a real purchase that it persisted.

  • Event source: the Wix order webhook

    Send from the webhook rather than any page-based trigger, given how much of the page lifecycle Wix manages itself.

  • 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 are recorded against the order.

Written guarantee

95%+ tracking accuracy

Measured against Wix's order records for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Wix → PostHog questions, answered

Yes, through Wix custom code, but verify page views register on Wix's internal navigation and send purchases server-side.

Free · 30 min

Get Wix and PostHog joined properly

Free30 minutesNo obligation