Jump to a section:

1. What are respondent attributes?

2. How to collect attributes?

3. How to target respondents using respondent attributes?

What are respondent attributes?

Attributes are any pieces of information you know about a respondent that's stored on your website or in-product. These can be used to trigger surveys and included in data export - we will send it along with answers from a specific person. 

You can use attributes to target surveys based on demographics, department, or type of company they work in. You can pass respondent attributes from your website or application and use it to target your surveys, filter your responses for better respondent sampling and analysis.

You can also use these attributes to include or exclude your logged-in users from specific surveys.

How to collect attributes?

To use attributes you need to paste an additional code right before the regular Survicate tracking code. If you haven't installed the Survicate tracking code yet, check this article to see how.

Here’s an example tracking code with reserved attributes attached.

<script type="text/javascript">
  (function(opts) {
      opts.traits = {
          "email": "Respondent's email",
          "first_name": "Respondent's name",
          "last_name": "Respondent's last name"
  })(window._sva = window._sva || {});

Here’s an example tracking code with reserved and custom attributes attached.

<script type="text/javascript">
  (function(opts) {
      opts.traits = {
          "email": "Respondent's email",
          "first_name": "Respondent's name",
          "last_name": "Respondent's last name",
          "my_custom_attribute": "Custom attribute value"
  })(window._sva = window._sva || {});

❗️Your developer has to modify the code with proper values in order to work correctly.

Reserved attributes we’ve standardized:

  • first_name

  • last_name

  • email

  • organization

  • department

  • job_title

  • phone

  • website

  • country

  • address_one

  • address_two

  • city

  • state

  • zip

  • fax

  • annual_revenue

  • employees

How to target respondents using respondent attributes?

1. To set up attribute-based targeting, go to the Edit > Target > Audience section of your survey.

2. Click New Audience button, give your audience a name and click Create Audience

3. Pick Attributes under the Add Filter button:

4. You are able to, pick whether you'd like to include or exclude the visitors with a specific attribute:

You can add up to 50 attributes to a filter.

💡For example, let's imagine you are interested in targeting visitors from small companies (with up to 50 employees). If company_size is an attribute that has been already created and used before, you'll find it in the drop-down list of the attributes.

In our case company_size should equal to 1-50;

However, you may also be interested in visitors who simply have a certain attribute assigned to them, no matter what its value is (e.g. purchase_id – for any visitors, who purchased from you, i.e. converted into paying customers) → in this case, select has any value:

5. Once you are ready with the audience you'd like to filter, click Create Audience:

💬 If you need our assistance, please reach out to us at support@survicate.com or strike up a chat conversation 👉

❗️ Note: targeting based on custom attributes is currently available with a Professional plan. For more information, please check out the pricing page or contact us at support@survicate.com.

🔎Discover further

➡️ How to target logged-in users

➡️ Set up your survey frequency

Did this answer your question?