Segment cross domain tracking
Track responders in Segment across domains
Last updated
Track responders in Segment across domains
Last updated
If you would like to track Segment users across multiple domains e.g:
Site 1: https://www.example.com
Site 2: https://www.flow.example.com (the domain hosting the Formsort flow)
You must explicitly set and pass the responder UUID from the top level domain to the one hosting the Formsort flow. This can be done for both with a direct link deployment or an embedded flow.
Navigate to the variable tab inside of a flow and add an external variable.
Name the variable "responder_id" and set the data classification toggle to responder_user_id.
This variable will be used to pass the responder id as a query parameter from https://www.example.com to https://www.flow.example.com
After deploying the flow with the variable set in Step 1, you can now pass a Segment user id into the flow as a query parameter.
For example this may look like:
https://flow.example.com/client/{{your_account_name}}/flow/{{your_flow_name}}/variant/{{your_flow_variant_name}}/?
responder_id={{segment_user_id}}
To read more about how external variables work, read this documentation.
If you want to enable cross domain tracking in an embedded flow, you can pass responder_id
via query_params
in our react-embed package. e.g.
If you don't use react, you can do the same using our web-embed-api. e.g.
In Formsort's Segment integration settings, toggle on "Use user_id from answers to identify" option