Adding recipients (incl. properties)

zenloop lets you add an identity and properties to identify and track each answer. We refer to this data as a recipient.

An identity is a unique information that allows you to track each recipient. identity and identity_type is a required field, but you can also add a first_name and last_name.

identity_type is a field that specifies the type of recipient identity, it can be either email or custom.

properties are 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.

Recipient identity and properties should take the following format and be added to the custom snippet:

<script>
  var Zenloop = window.Zenloop || {};
  Zenloop.recipient = {
    identity: '[email protected]',
    identity_type: 'email',
    first_name: 'John',
    last_name: 'Doe',
    properties: {
		color: ['red', 'blue'],
      	height: [100, 200, 300]
    }
  };
</script>
<script>
  var Zenloop = window.Zenloop || {};
  Zenloop.recipient = {
    identity: '1234',
    identity_type: 'custom',
    first_name: 'John',
    last_name: 'Doe',
    properties: {
      color: 'red',
      height: 100
    }
  };
</script>

πŸ“˜

Values should be dynamically injected depending on backend you are using.

πŸ“˜

See here for more details on properties best practices.