Event payload shape
Last updated
Last updated
When sending analytics events, you have control over the shape of the payload received by the destination.
By default, answers are not included in analytics event payloads. This way, analytics providers can be used for tracking conversion and performance, without sending user data to third parties.
If send answers is checked, answer values will be nested in an "answers" object of the event payload.
If send answers is enabled, send PII will also send Personally Identifying Information along to the analytics provider. Answers are marked as PII using the data classification in the schema editor.
If only send answers from current step is enabled, the payload will only contain answers to questions that appear on the current step.
When sending answers from the current step, by default you will not receive any answers that are present at the beginning of the flow, such as external answers.
To instead send the current, full state of the flow on load, enable Send all answers on FlowLoaded, which will include the entire answer state in the FlowLoaded event's answer payload.
All analytics events will contain the flow label, variant label, variant revision UUID, and responder UUID.
With answers at root checked, all the answer keys will be at the same level of nesting within the payload object.
If unchecked, the answers will be nested within an answers
object.
With flatten answer keys checked, nested answers, like arrays and objects, will be at the same level of nesting as all other answers:
With flatten answer keys unchecked, nested answers will remain in their original, nested shape.
When stringify answers is checked, the answers
key itself will be a JSON string of the answers, rather than the nested object.