Custom Variables
Custom Variables is a logic feature you can use with a Web Link collector to track data about people who take your survey. It passes data you put in your survey link into your survey results.
Create custom variables when designing your survey, then add them to your Web Link collector before you send it out. Once you have responses, you can see your custom variables when you export.
To add custom variables:
Now that you have custom variables in your survey, it’s time to create your survey link and add custom values to each variable.
To create your Web Link and add values:
TIP! If you set the Survey End Page to redirect respondents to the website of your choice, custom variables will also pass through to the redirect URL.
In the Analyze Results tab, you can filter by custom variables. You can see custom variables at the end of each row in All Responses Data XLS or SPSS export types.
Let's say you want to send out a short employee survey to three members of your Research department. Instead of asking each respondent to fill out their name, department, and title in the survey itself, you want to track this information about them through the survey link using Custom Variables. Here's how you would do this, from beginning to end:
Create 3 variables based on the respondent information you want to pass through the survey link.
Variable Name: n Variable Name: dept Variable Name: t |
Create a Web Link Collector. When you view the link, the template for adding your custom values will already be appended to the end of it:
https://www.surveymonkey.com/r/your_survey?n=[n_value]&dept=[dept_value]&t=[t_value] |
Outside of SurveyMonkey, create a unique link for each respondent by replacing the bracketed values with each person's Name, Department, and Title. Send each unique link to each respective respondent.
https://www.surveymonkey.com/r/your_survey?n=Lizzie&dept=Research&t=Intern https://www.surveymonkey.com/r/your_survey?n=Jenna&dept=Research&t=Analyst https://www.surveymonkey.com/r/your_survey?n=Hailee&dept=Research&t=SurveyDesigner |
Download an All Responses Data XLS, or SPSS export to see the custom variables paired with each response. In the spreadsheet, the results for this one-question survey will look like this:
Which do you like best? | Name | Department | Title |
Option Banana | Lizzie | Research | Intern |
Option Banana | Jenna | Research | Analyst |
Option Apple | Hailee | Research | SurveyDesigner |
Web Link collectors can attach up to 100 custom variables to the URL. So you don't exceed universal URL length limitations, we suggest URLs remain under 2,000 characters to maintain functionality with popular web browsers.
You can't use the following in Variable Names, Variable Labels, or as values inserted into the survey link template:
You can't use the following in Variable Names:
There is no way to automatically insert values into the survey link template within SurveyMonkey. You will need to do this manually, or run your own script to insert the values into the survey link template, outside of SurveyMonkey.
If you are uncomfortable with this approach, consider using the Email Invitation Collector to track custom data about respondents.
Custom variables don't work with Recurrences. Turn off the Recurrence collector option to make sure your custom variables work properly.
Custom variables cannot be deleted once responses have been collected.