Query parameters are the portion of a URL that comes after the question mark. For example iteratehq.com?first_name=michael&last_name=scott includes two query parameters:

parameter name: first_name
parameter value: michael

parameter name: last_name
parameter value: scott

When you pass query parameters using the format described below, those parameters will be saved as user or response properties (similar to the Identify method for website surveys) and available to view on our dashboard and in all available export formats (CSV, Zapier, webhooks). User properties are associated with all responses from a user going forward, including across multiple surveys. Response properties are only associated with the responses to the survey they are filling out, not associate with any future surveys they respond to. 

User properties are a convenient way to pass in identifying user information like email address or user_id when including a link to your survey in an email. Response properties are a similarly convenient way to associate survey specific data like order_id with the responses. 

Format

Any parameter that begins with 'user_' will be saved as a user property. For example iteratehq.com/survey/123?user_first_name=michael will save the user attribute 'first_name' with the value 'michael'.

Any parameter that begins with 'response_' will be saved as a response property. For example iteratehq.com/survey/123?response_order_id=12345 will save the response property 'order_id' with the value '12345'.

By default all query parameter values are assumed to be strings, if you would like the values to be treated as numbers or booleans you can include that information in the query parameter.

For example: 

  • iteratehq.com/survey/123?user_number_age=33 will save a user attribute 'age' with value 33 (as a number)
  • iteratehq.com/survey/123?user_boolean_is_member=true will save a user attribute 'is_member' with value true (as a boolean)
Did this answer your question?