zenloop Developer Hub

Welcome to the zenloop developer hub. You'll find comprehensive documentation to help you start working with zenloop as quickly as possible, as well as support if you get stuck. Happy looping!

Get Started    

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',
      height: 100
    }
  };
</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.

Updated 2 years ago


Adding recipients (incl. properties)


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.