Connecting Leadpages to PostHog
Leadpages serves smaller businesses where the landing page frequently is the whole website, which means there is no wider site to capture on before the form. 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 Leadpages 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
PostHog on Leadpages: carry the distinct_id into your app
To track Leadpages conversions in PostHog, paste the snippet into the page's tracking code settings, then join the visitor to your app by passing the distinct_id in the signup link and using PostHog's bootstrap option, or identifying both sides with the same email. Call identify with your user ID at signup to unify the person.
PostHog shows up on Leadpages pages for one reason: a product team wants to see the full path from a campaign page to signup to activation. Paste PostHog's snippet into the page's tracking code settings and it records the visit and form submission. The trouble starts at the hop from the Leadpages page to your app. Each domain gets its own PostHog cookie, so the visitor becomes a second anonymous person the moment they land in the product.
Join the two by passing the distinct_id from the Leadpages page to the app in the signup link, then using PostHog's bootstrap option on the app side, or by identifying the person on both sides with the same email once it is known. Then call identify with your own user ID at signup, and the Leadpages visit, its UTM values and the form submission all appear on the same person as their first week in the product.
If the Leadpages page is on a custom subdomain of your main domain, configuring the PostHog cookie for the parent domain removes most of this work. Self-hosted PostHog has a further wrinkle: the ingestion endpoint must be reachable from the Leadpages page, which is served by Leadpages, not you, so check your CORS and host settings before assuming the snippet works.
Leadpages → PostHog · what breaks
Why this join usually fails — Leadpages → PostHog
- 01
The distinct_id never reaches Leadpages
Pages may sit on a Leadpages subdomain, and the form is the only place an identifier can be recorded.
- 02
No first-party page to capture on
Where the hosted page is the whole site, standard capture techniques are unavailable. A URL parameter into a hidden field is the entire mechanism, and if it is not configured the traffic is unattributable.
- 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.
- 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.
Leadpages → PostHog · the fix
What working looks like — Leadpages → 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
Leadpages → PostHog · architecture
How Leadpages and PostHog actually connect
- 1
Leadpages holds the truth
When the landing page is the entire web presence, capture has to happen on that page or not at all. There is no earlier session to fall back on.
- 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
The identifier is the bridge
The distinct_id, captured at the visit and carried into the Leadpages conversion.
- 4
The event source decides reliability
Send the qualified outcome rather than the form fill, with the source from the hidden field.
- 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.
Leadpages → PostHog · normal or broken
Working vs. broken, side by side — Leadpages → PostHog
Normal, not a fault
The distinct_id present on the conversion
Sent from your CRM or email platform
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 may sit on a Leadpages subdomain, and the form is the only place an identifier can be recorded.
Sent from the browser
Where the hosted page is the whole site, standard capture techniques are unavailable. A URL parameter into a hidden field is the entire mechanism, and if it is not configured the traffic is unattributable.
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
Leadpages → PostHog · diagnose
Diagnostic order — Leadpages → PostHog
- 01
Count conversions carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Check whether the hidden field is populated on live submissions
Not whether it exists — whether real submissions carry values.
- 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.
- 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.
Leadpages → PostHog · prove
How it gets proven — Leadpages → PostHog
Source of truth
Your CRM or email platform, joined to the form submission.
- 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 against imported conversions, with the hidden field verified populated.
Leadpages → 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 the hidden field is populated on live submissions
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Your CRM or email platform, joined to the form submission.
Free30 minutesNo obligation
Leadpages → PostHog · when not to buy
When you don't need this — Leadpages → PostHog
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the distinct_id.
- If your Leadpages sits behind your own domain and site, capture normally and pass through.
- 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.
Leadpages → PostHog · what we deliver
What gets built — Leadpages → PostHog
Identifier capture into Leadpages
Read the identifier from the URL into a hidden field at page load, because that is the only opportunity you get.
Event source: your CRM or email platform
Send the qualified outcome rather than the form fill, with the source from the hidden field.
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 email platform, joined to the form submission.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Leadpages → PostHog questions, answered
The Leadpages page and your app are on different domains, so PostHog sets a separate cookie on each. Pass the distinct_id across in the link or identify both by email.
Yes. The snippet can autocapture the submit, or you capture a named event from the form's success state. Check that the event fires on the inline success message as well as on redirects.
Almost always because the distinct_id never reached the Leadpages conversion. Pages may sit on a Leadpages subdomain, and the form is the only place an identifier can be recorded. Measure coverage before debugging the dispatch.
PostHog identifies by distinct_id with an alias call to merge anonymous and identified users. On a self-hosted instance you also control the ingestion endpoint, which means the identifier survives ad blockers that would kill a third-party pixel — one of the few genuine technical advantages available to a first-party setup.
Your CRM or email platform. Send the qualified outcome rather than the form fill, with the source from the hidden field.
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.
More on Leadpages → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
RELATED GUIDES
Where Leadpages → PostHog fits in the rest of your tracking
- Unbounce → PostHogConnecting Unbounce to PostHog
- Swipe Pages → PostHogConnecting Swipe Pages to PostHog
- ConvertFlow → PostHogConnecting ConvertFlow to PostHog
- Leadpages → MatomoConnecting Leadpages to Matomo
- Leadpages → MixpanelConnecting Leadpages to Mixpanel
- PPC agenciesClean conversion signal across every account you bid on
- Instapage → PostHogConnecting Instapage to PostHog
Free · 30 min
Get Leadpages and PostHog joined properly
Free30 minutesNo obligation
