Skip to main content
WPForms → PostHogIntegration guide

Connecting WPForms to PostHog

WPForms is the most widely installed form plugin on WordPress, which means the same plugin sits behind contact forms, order forms and payment forms on the same site with completely different values. 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 WPForms entry 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

WPForms submissions in PostHog under the same distinct_id

For WPForms and PostHog the job is identity, not another event. Write posthog.get_distinct_id() into a hidden field, capture a server-side form submission event with that distinct_id, form ID and entry ID, then identify the person by email. Use a UUID derived from the entry ID, build conversion insights on the server event, and keep replay input masking on.

PostHog already captures the page views and clicks leading up to a WPForms submission, so the work in this pair is identity, not another event. Write posthog.get_distinct_id() into a hidden field when the form loads, and when the entry is processed server-side, capture an event of your own naming, such as a form submission, with that distinct_id and the form ID and entry ID as properties. Then identify the person with the submitted email so the anonymous browsing history merges into one profile.

Autocapture will also record the submit, which is where duplicates come from: the autocaptured submit in the browser and the server event describe the same act. Keep autocapture for exploring funnels, but build conversion insights on the server event only. Pass a UUID on the server event derived from the WPForms entry ID, so a retried webhook does not create a second one.

Where PostHog earns its place for this pair is diagnosing the forms themselves: funnels from form view to first field interaction to submission per form ID, and session replays of people who started a form and left. WPForms forms collect names, phone numbers and free-text messages, so confirm input masking is still on for replays of form pages. It is the default, and it is often switched off to debug something and never switched back.

WPForms → PostHog · what breaks

Why this join usually fails — WPForms → PostHog

  1. 01

    The distinct_id never reaches WPForms

    Forms submit over AJAX without a page navigation, so a conversion bound to a thank-you page URL never fires.

  2. 02

    Every form on the site counted as one conversion

    A newsletter signup and a request for a quote are not the same event. Pooling them means bidding optimises toward whichever is easiest to get, which is always the newsletter.

  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.

WPForms → PostHog · the fix

What working looks like — WPForms → PostHog

  • The distinct_id on every submission

  • Conversions arriving in PostHog

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

  • Reconciled against the source

WPForms → PostHog · architecture

How WPForms and PostHog actually connect

  1. 1

    WPForms holds the truth

    The form ID is the only thing separating a newsletter signup from a quote request from a paid order. Without it, every submission is one undifferentiated conversion.

  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 WPForms entry.

  4. 4

    The event source decides reliability

    Send qualified outcomes per form ID, with separate conversion actions for meaningfully different forms.

  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.

WPForms → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the submission

  • Sent from your CRM or payment 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

    Forms submit over AJAX without a page navigation, so a conversion bound to a thank-you page URL never fires.

  • Sent from the browser

    A newsletter signup and a request for a quote are not the same event. Pooling them means bidding optimises toward whichever is easiest to get, which is always the newsletter.

  • 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

WPForms → PostHog · diagnose

Diagnostic order — WPForms → PostHog

  1. 01

    Count submissions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    List every form on the site and its real value

    Usually the first time anyone has, and it is normally the whole fix.

  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.

WPForms → PostHog · prove

How it gets proven — WPForms → PostHog

Source of truth

Your CRM or payment record, with the form ID recorded on the submission.

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

WPForms → PostHog · free audit

What we check in the free audit

  • Count submissions carrying the distinct_id
  • Follow one real conversion end to end
  • List every form on the site and its real value
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Your CRM or payment record, with the form ID recorded on the submission.

Get my free conversion tracking audit

Free30 minutesNo obligation

WPForms → PostHog · when not to buy

When you don't need this — WPForms → PostHog

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the distinct_id.
  • A site with one form needs one conversion action and nothing else.
  • 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.

WPForms → PostHog · what we deliver

What gets built — WPForms → PostHog

  • Identifier capture into WPForms

    Bind to the plugin's own submission event rather than to a page load, and pass the identifier through a hidden field.

  • Event source: your CRM or payment record

    Send qualified outcomes per form ID, with separate conversion actions for meaningfully different forms.

  • 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 submissions reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your CRM or payment record, with the form ID recorded on the submission.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

WPForms → PostHog questions, answered

Store the visitor's PostHog distinct_id in a hidden field, send the server event with that ID, and identify the person with the submitted email so anonymous and known activity merge.

Free · 30 min

Get WPForms and PostHog joined properly

Free30 minutesNo obligation