Capturing a conversion
identify() before (or alongside) the conversion so the lead carries the visitor’s traits. The session captures the raw URL (including any query string with utm_* params) under session.location.search — UTM normalization, if any, happens on the server side.
track vs conversion
track | conversion | |
|---|---|---|
| Purpose | Any behavioral signal | High-value outcome / lead |
| Stored as | events | conversions + leads |
| Enrichment | — | Lead score, lifecycle, integrations |
Attribution
Conversions are tied to the samevisitor_id as the visitor’s earlier events, across sessions. That’s what lets experiments and journeys measure who converted after being exposed or entering a funnel — even days later.
Conversions are idempotent within a short time window, so a double-fired submit won’t create two leads.
Next steps
Leads API
Read and manage the leads your conversions create.
Experiments
Use any conversion as an experiment goal — retroactively.