Connecting Formstack to PostHog
Formstack is used heavily in regulated industries, which means the forms frequently collect data that must never travel with a conversion event. 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 Formstack submission 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
Formstack to PostHog: the iframe your replay can't see
PostHog on your page cannot see inside an iframe-embedded Formstack form, so write the distinct_id into a hidden field at load and capture a submission event server-side from the Formstack webhook with that ID and a neutral form name only. With Formstack's JavaScript embed, replay can record inputs, so mask them. Self-host or check plan agreements for regulated work.
An iframe-embedded Formstack form runs on a Formstack domain, so PostHog on your page sees the page, not the inside of the form. Session replay will not record what people type there, which is a privacy benefit, and autocapture will not see the submit button, which is a measurement gap. Product teams in healthcare and fintech often rely on that boundary without knowing it exists.
Close the gap without crossing it. Write the PostHog distinct_id into a hidden field when the form loads, and capture a submission event server-side from the Formstack webhook with that ID, a neutral form name and nothing else from the payload. That gives you funnels from landing page to submission while answers never reach PostHog.
If you embed with Formstack's JavaScript embed instead of an iframe, the form renders inside your page and replay can record the inputs, so mask them. If the data must stay on your own infrastructure, self-host; if you use PostHog Cloud for regulated work, check which agreements your plan offers before sending anything.
Formstack → PostHog · what breaks
Why this join usually fails — Formstack → PostHog
- 01
The distinct_id never reaches Formstack
Forms are frequently embedded or hosted on a Formstack domain, so the identifier must be passed in as a hidden field.
- 02
Form field content travelling with the conversion
It is easy to attach form data to an event and it is frequently a disclosure. In the regulated sectors that use Formstack most, a field value in a conversion payload can be protected information.
- 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.
Formstack → PostHog · the fix
What working looks like — Formstack → 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
Formstack → PostHog · architecture
How Formstack and PostHog actually connect
- 1
Formstack holds the truth
The submission is a lead; the CRM decides whether it was a good one. What must not travel is the field content, which in healthcare, finance and government forms is frequently sensitive.
- 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 Formstack submission.
- 4
The event source decides reliability
Send qualified submissions as counts with a value if you have one. Never send field content.
- 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.
Formstack → PostHog · normal or broken
Working vs. broken, side by side — Formstack → PostHog
Normal, not a fault
The distinct_id present on the submission
Sent from your CRM, joined to the submission
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 are frequently embedded or hosted on a Formstack domain, so the identifier must be passed in as a hidden field.
Sent from the browser
It is easy to attach form data to an event and it is frequently a disclosure. In the regulated sectors that use Formstack most, a field value in a conversion payload can be protected information.
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
Formstack → PostHog · diagnose
Diagnostic order — Formstack → PostHog
- 01
Count submissions carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Read the conversion payload and confirm it carries no field content
A count and a value may leave. The answers may not.
- 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.
Formstack → PostHog · prove
How it gets proven — Formstack → PostHog
Source of truth
Your CRM, with qualified submissions joined on the submission identifier.
- 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 submissions reconciled as counts, with the payload demonstrated to carry no field data.
Formstack → PostHog · free audit
What we check in the free audit
- Count submissions carrying the distinct_id
- Follow one real conversion end to end
- Read the conversion payload and confirm it carries no field content
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Your CRM, with qualified submissions joined on the submission identifier.
Free30 minutesNo obligation
Formstack → PostHog · when not to buy
When you don't need this — Formstack → PostHog
- Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the distinct_id.
- If your forms collect nothing sensitive, this is an ordinary lead integration — but check rather than assume.
- 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.
Formstack → PostHog · what we deliver
What gets built — Formstack → PostHog
Identifier capture into Formstack
Populate a hidden field with the identifier at render, and send only the fact of a qualified submission — never the field values.
Event source: your CRM, joined to the submission
Send qualified submissions as counts with a value if you have one. Never send field content.
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, with qualified submissions joined on the submission identifier.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Formstack → PostHog questions, answered
The form is probably iframed on a Formstack domain, out of reach of autocapture. Send the event server-side from the webhook using the distinct_id passed into a hidden field.
Not inside an iframe served from another domain. With an inline JavaScript embed it can, so mask inputs on those pages.
Almost always because the distinct_id never reached the Formstack submission. Forms are frequently embedded or hosted on a Formstack domain, so the identifier must be passed in as a hidden field. 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, joined to the submission. Send qualified submissions as counts with a value if you have one. Never send field content.
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 Formstack → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
Using Formstack for bookings? How Formstack bookings get tracked end to end
RELATED GUIDES
Where Formstack → PostHog fits in the rest of your tracking
- Tally → PostHogConnecting Tally to PostHog
- Typeform → PostHogConnecting Typeform to PostHog
- Jotform → PostHogConnecting Jotform to PostHog
- Formstack → MixpanelConnecting Formstack to Mixpanel
- Formstack → MatomoConnecting Formstack to Matomo
- Home servicesConversion tracking for home service businesses, measured in completed jobs
- Fluent Forms → PostHogConnecting Fluent Forms to PostHog
- Gravity Forms → PostHogConnecting Gravity Forms to PostHog
Free · 30 min
Get Formstack and PostHog joined properly
Free30 minutesNo obligation
