Connecting Cognito Forms to Segment
Cognito Forms supports conditional logic and payments, which means one form can be a survey, a registration and a checkout depending on which branch the visitor takes. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the Cognito Forms entry before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Cognito Forms into Segment: one track call per branch, one identity
Prefill Segment's anonymousId into a hidden Cognito Forms field, then send identify and track server-side under it. Send the free branch as a lead-style event and the paid branch as Order Completed, after payment, with revenue, currency and the entry ID as order_id and messageId source. Carry consent state so destinations can exclude entries.
Segment only helps if the Cognito entry arrives under the same identity the website already used. Prefill Segment's anonymousId (analytics.user().anonymousId() in analytics.js) into a hidden field when the form loads. When the entry posts back, your server sends identify with the email as a trait and track with that anonymousId, so the submission stitches to the visitor's earlier pages in every connected tool.
Name the events once, following Segment's spec where it applies: the free branch as a lead-style event, the paid branch as Order Completed with revenue, currency and the Cognito entry ID as order_id. Send Order Completed only after payment completes, not at submit, because every downstream destination will treat it as a purchase. Build the messageId from the entry ID so Cognito re-posting an updated entry does not fan out twice.
Consent has to travel too. If the visitor declined advertising cookies on your site, put that state in the event context so destination filters keep the entry out of ad platforms. A form that asks for consent itself, as a checkbox, creates a second source of truth; decide which one wins. Check whether a ready-made Cognito source exists before writing one; a Segment source function receiving Cognito's webhook is the usual alternative.
Cognito Forms → Segment · what breaks
Why this join usually fails — Cognito Forms → Segment
- 01
The userId and anonymousId never reaches Cognito Forms
Forms are embedded and payments may hand off to a processor, breaking the session twice.
- 02
One form, several outcomes, one conversion action
Conditional logic means the same form produces a free enquiry from one visitor and a paid registration from another. A single conversion action averages them into a value that describes neither.
- 03
One bad event multiplied across every destination
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
- 04
Nothing reconciles afterwards
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
Cognito Forms → Segment · the fix
What working looks like — Cognito Forms → Segment
The userId and anonymousId on every submission
Conversions arriving in Segment
Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.
Reconciled against the source
Cognito Forms → Segment · architecture
How Cognito Forms and Segment actually connect
- 1
Cognito Forms holds the truth
A form that sometimes takes payment and sometimes does not produces two completely different conversions from one submission event.
- 2
Segment needs a click to match
Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.
- 3
The identifier is the bridge
The userId and anonymousId, captured at the visit and carried into the Cognito Forms entry.
- 4
The event source decides reliability
Send paid submissions at their amount and unpaid ones as a separate lower-value action.
- 5
Deduplication at the destination
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
Cognito Forms → Segment · normal or broken
Working vs. broken, side by side — Cognito Forms → Segment
Normal, not a fault
The userId and anonymousId present on the submission
Sent from your CRM or payment record
Deduplicated correctly
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
Reconciles with the source
Actually broken
The userId and anonymousId missing on most records
Forms are embedded and payments may hand off to a processor, breaking the session twice.
Sent from the browser
Conditional logic means the same form produces a free enquiry from one visitor and a paid registration from another. A single conversion action averages them into a value that describes neither.
Counted twice, or not at all
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
Nobody has reconciled it
Cognito Forms → Segment · diagnose
Diagnostic order — Cognito Forms → Segment
- 01
Count submissions carrying the userId and anonymousId
- 02
Follow one real conversion end to end
- 03
List the branches your form can produce and their values
Usually the first time anyone has, and it is normally the whole fix.
- 04
Check identity resolution before checking anything downstream
If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.
- 05
Read the match rate, not the success message
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
Cognito Forms → Segment · prove
How it gets proven — Cognito Forms → Segment
Source of truth
Your CRM or payment record, with the form branch recorded.
- The userId and anonymousId confirmed present on a live submission.
- An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
- Submissions reconciled by branch against imported conversions.
Cognito Forms → Segment · free audit
What we check in the free audit
- Count submissions carrying the userId and anonymousId
- Follow one real conversion end to end
- List the branches your form can produce and their values
- Check identity resolution before checking anything downstream
- Read the match rate, not the success message
Checked against
Your CRM or payment record, with the form branch recorded.
Free30 minutesNo obligation
Cognito Forms → Segment · when not to buy
When you don't need this — Cognito Forms → Segment
- Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the userId and anonymousId.
- A single-path form with no payment needs one action and nothing else.
- If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.
Cognito Forms → Segment · what we deliver
What gets built — Cognito Forms → Segment
Identifier capture into Cognito Forms
Pass the identifier into a hidden field and carry it through to the payment where one occurs.
Event source: your CRM or payment record
Send paid submissions at their amount and unpaid ones as a separate lower-value action.
Dispatch to Segment
Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.
Reversals where they exist
Refunds reverse.
Written guarantee
95%+ tracking accuracy
Measured against Your CRM or payment record, with the form branch recorded.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Cognito Forms → Segment questions, answered
Receive Cognito's submit webhook in a Segment source function or your own server, and send identify plus track with the anonymousId captured in a hidden field.
Order Completed with the entry ID as order_id, sent once payment completes. Unpaid branches get their own event.
Almost always because the userId and anonymousId never reached the Cognito Forms entry. Forms are embedded and payments may hand off to a processor, breaking the session twice. Measure coverage before debugging the dispatch.
Segment identifies people by anonymousId before they are known and userId afterwards, and the alias between them is what stitches a session to a customer. Click identifiers travel as event properties or traits rather than as a matching key — Segment does not match anything itself, it forwards. That distinction changes the whole design: get the identity resolution right and every downstream destination inherits it.
Your CRM or payment record. Send paid submissions at their amount and unpaid ones as a separate lower-value action.
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
More on Cognito Forms → Segment
- Gravity Forms → SegmentConnecting Gravity Forms to Segment
- Cognito Forms → Google AdsConnecting Cognito Forms to Google Ads
- Cognito Forms → MetaConnecting Cognito Forms to Meta Conversions API
RELATED GUIDES
Where Cognito Forms → Segment fits in the rest of your tracking
- WPForms → SegmentConnecting WPForms to Segment
- Tally → SegmentConnecting Tally to Segment
- Ninja Forms → SegmentConnecting Ninja Forms to Segment
- Cognito Forms → BigQueryConnecting Cognito Forms to BigQuery
- Law firmsConversion tracking for law firms, without sending case details anywhere
- Formstack → SegmentConnecting Formstack to Segment
- Paperform → SegmentConnecting Paperform to Segment
- Gravity Forms → SegmentConnecting Gravity Forms to Segment
Free · 30 min
Get Cognito Forms and Segment joined properly
Free30 minutesNo obligation
