Learn about the structure of a survey link with appended URL Parameters
Now that we have learned the benefits of passing URL Parameters into your Segmanta survey, let's learn about the structure of a survey link with parameters.
Example
We will add the following parameters into the query string of a survey link:
- First name
- Last name
- Age
Let's say the following two respondents took the survey:
1. Mark Zuckerberg, Age 17
2. Jane Doe, Age 27
Now, let's break it down:
- This is your survey link without any URL Parameters.
2. first_name and last_name are names of parameters
- You can define any parameters and any number of parameters you'd like.
- Please note: each parameter has to be encoded using an equivalent of the encodeURIComponent.
- first_name=value1
- last_name=value2
3. mark and zuckerberg are values
- Each value has to be encoded using an equivalent of the encodeURIComponent. Unlike parameters, generally, values will change with each survey respondent.
- first_name=mark
- last_name=zuckerberg
Survey Link
Format template
segmanta.com/s/surveyId/?first_name=value1&last_name=value2&age=value
Your survey link:
segmanta.com/s/123abc/?first_name=mark&last_name=zuckerberg2&age=21
Now that you understand the structure of a link with URL Parameters, let's learn how to build a survey link with parameters .