Using querystring parameters to prefill survey questions
The more you know about your respondents in advance, the less they will need to fill in. Even when you're sending out a survey without using contacts, you can add information to identify respondents. You can do this by using hidden questions that are automatically prefilled by the survey URL. Your respondents won't see the questions, but they will be prefilled based on values sent as querystring parameters in the URL.
For example, you could distribute your survey via different channels (website, newsletter, Facebook). Using a hidden question, you can determine which channel generated the most respondents. Or you can add a tracking code, like a user ID, to identify the respondent later. You can prefill any question as long it is one of the three question types below. The information from the querystring parameters will be added in real time to your reports and you can filter on it.
Adding parameters to survey URLs
- Add a new question to your survey. This question must be a radio button question, checkbox question, or text box question.
-
In Settings, hide the question.
Note: Show the question as long as you have not launched your survey. While testing, you will immediately see that the question is filled out correctly. Don't forget to hide the question before launching your survey. -
Click Save.
-
Select Distribute from the survey options menu.
-
Depending on the distribution options you have chosen, a different URL will be generated. Click the link to the URL for your survey.
-
Click Copy to clipboard. Paste it in a text editor, such as Word or Notepad.
-
Add the following parameter to the URL:
&qx=y. The x stands for the question number and y for the prefilled answer. The URL of your survey should look like this: [survey-url]&qx=y.
-
To add more parameters, repeat these. With two parameters, the URL of your survey should look like this: [survey-url]&q1=1&q2=text.
Types of parameters
The querystring parameters will look different depending on whether you are using text box questions, radio buttons questions, or checkbox questions. See the following examples:
- Textbox questions use a word as a parameter. For example, if you want to know from which channel your respondents clicked on the survey URL, you can place different links on each channel. Using a textbox question, you can add the name of the channel (e.g., website) to the URL. For this question (Q1), the parameter will look like this: &q1=Website.Important: If your response consists of more than one word or special characters, it. Spaces are replaced by "%20" for example: "q1=company%20site"
-
For radio buttons questions, the querystring parameter is a number that corresponds with an answer choice. The answer choices are numbered beginning at the top with 1. To select the first option "Newsletter", use the parameter &q2=1. For "LinkedIn", the parameter should look like this: &q2=4. Place a different survey URL on each channel to track them correctly.
-
Checkbox questions use different numbers that correspond with different answer choices. For the first choice, use 1, use 2 for the second, etc. Multiple answer choices have to be separated by commas. If you want to prefill the first and third answer choices in this question (Q3), use parameter &q3=1,3. Make sure you create and distribute different URLs for every combination.
Skipping the first page
Add &as=1 to the URL to skip the first page.