Adding recipients (incl. properties)
Endpoint for survey responses
Endpoint for responses accepts POST
method
https://responses.zenloop.com/web/response/<survey_hash_id>/mobile_channel_response
zenloop lets you add an identity and properties to identify and track each answer. We refer to this data as recipient data.
An identity is unique information that allows you to track each recipient.
identity | (required field to track recipient) |
identity_type | it specifies the type of recipient identity, it can be either email or custom (required field to track recipient) |
first_name | (optional field to track recipient) |
last_name | (optional field to track recipient) |
properties | any other piece of information that you would like to attach to the recipient that will allow you to better respond to and segment your answers (optional field) |
To add recipient identity and properties simply add hidden inputs inside the form
element, or you can send the data in any other way to the endpoint:
<input type="hidden" name="identity" value="[email protected]">
<input type="hidden" name="identity_type" value="email">
<input type="hidden" name="properties[color]" value="pink">
<input type="hidden" name="properties[device]" value="iPhone">
Values should be dynamically injected depending on backend you are using.
See here for more details on properties best practices.
Updated about 6 years ago