Setting Additional User Properties

The ability to push custom properties into reporting is part of our Growth and up plans

In addition to identifying which of your registered users are answering your surveys by using the 'identify' parameter, you can pass additional properties about your visitors using the 'set' parameter.

An example of passing a single property looks like this:

<script type="text/javascript" charset="utf-8">
_kiq.push(['set', {'user_type': 'enterprise'}]);
</script>

An example passing multiple properties looks like this:

<script type="text/javascript" charset="utf-8">
_kiq.push(['set', {  
    'plan': 'Premium',  
    'promo': true,  
    'year': 2011,  
    'Signed Up': 'April 18, 2011' 
}]);
</script>

Any properties passed in a survey will show up in the Individual Responses tab, and the CSV export of your survey responses.

Notes

  • ​Add this code directly beneath the main Qualaroo javascript.​
  • Properties are passed in the clear. Sensitive information should not be sent via this mechanism.
  • Properties appear on the individual response pages and in the CSV export.
  • Properties are passed along with the response at the time the visitor submits the survey.
  • Names don’t need to be one word, camel-cased, etc. Whatever is passed is used, except in the case of dashes (i.e. plan-name). If dashes are present, the property won't be passed. We recommend using underscores (i.e. plan_name). 
  • Values can be strings, integers, or booleans. 

Syntax

set takes an array of key-value pairs:

_kiq.push(['set', {   
    'PROPERTY_1':'VALUE_1',   
    'PROPERTY_2':'VALUE_2'  … }]);

Have more questions? Submit a request
Powered by Zendesk