You can pass custom respondent attributes from your website or application. Attributes are any pieces of information you know about a respondent that can be included in data export- we will send it along with answers from specific person. It means, that you can analyse data from answers basing on demographics, department or type of company they work in.

Why would I use it?

This way you can group your answers and optimise your business decision!

Suppose you run a survey to test user experience of your software- you want it to be clear to marketers, not only developers- with custom attributes you can test the usability among marketers, making the design more friendly to the target group!

How to collect custom attributes?

To use attributes you need to paste an additional code right before regular Survicate tracking code

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 || {});
</script>

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 || {});
</script>

We’ve reserved some attributes that we handle in a special way. For example, we always expect email to be a string of the user’s email address. 

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

Remember! Your developer has to modify the code with proper values in order to work correctly.

Did this answer your question?