All Collections
Collect
Website Overlay Channel
Adding Recipient Identities and Properties to a Website Overlay Survey
Adding Recipient Identities and Properties to a Website Overlay Survey

How to add recipient identities and properties to your Website Overlay surveys

L
Written by Lisa Rentrop
Updated over a week ago

As default, answers to your survey will be anonymous - but it's easy to add Identities & Properties to your feedback to allow you to track, respond to or segment responses.

Content:

Definitions

  • Identities are the unique identifying information for the customer (aka recipient). For example: email, order_id or customer_id

  • Properties are any additional information attached to each recipient. For example: delivery provider, order_id or payment type

  • The Recipient is the person answering the survey

Adding Identities and Properties to the Recipient

A recipient should take the following format and be added with the custom snippet you used to install the website overlay:

Please ensure this script is fired before the survey script:

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

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

Adding Anonymous Properties to the Recipient

While adding identifying information is not required to add properties, it is strongly recommended as this will allow you to identify and respond to recipients.

In order to collect anonymous responses, simply exclude identity, identity_type, first_name and last_name as below:

<script>
var Zenloop = window.Zenloop || {};
Zenloop.recipient = {
properties: {
color: ['red','blue']
height: [100,200,300]
}
};
</script>

For more technical documentation, see our developer documentation


Solutions to common questions:

Q – Do I have to add an identity and/or properties?

A – No, these are not required, but will help you to respond to visitors later by storing their information. It is even possible to attach anonymous properties (just leave out any identifying information!)

Q – Is there a limit to the number of values a property has?

A – The limit is 50


Did this answer your question?