Using Custom Variables
Custom Variables is a PLATINUM and Enterprise feature that allows you to pass several variables through a survey link. You can take a survey link that would otherwise collect anonymous responses, and instead pass several values directly into your survey via that URL. When you analyze your results, these values will appear on the last page of the survey.
For example, the survey link https://www.surveymonkey.com/s/customlinkending would normally collect anonymous responses, but adding custom variables to the end of the URL (like so: https://www.surveymonkey.com/s/P58B9BX?Name=Douglas&Department=Research&Title=Intern) would track 3 values into your survey, without having to ask respondents to answer those questions in the survey itself.
There is no limit on the number of variables you can add, but keep universal URL length limitations in mind. The general rule is to keep URLs under 2000 characters to maintain functionality with popular web browsers.
Who should use Custom Variables?
If it's not feasible to use an email invitation collector or simply ask respondents their custom information; you can insert this information for tracking purposes directly into the URL. This feature is primarily used for companies using panelists that do their analysis external to SurveyMonkey. For the average SurveyMonkey user, there are limitations to consider:
- Filtering on custom variables is a bit more difficult than using close-ended questions because they're collected as open-ended questions. Again, this is optimal for users that do heavy-duty analysis in their own tools like SPSS or Excel.
- If using your own custom scripts or SPSS for analysis isn't something you're comfortable with, we recommend using close-ended questions or demographic questions to obtain the same information in the body of the survey. See more about tracking respondents.
Setting Up Custom Variables
The steps for setting up Custom Variables differ between Classic Design and New Design.
To add custom variables:
- From your Design Survey page, click Survey Options.
- Scroll down to Add Custom Variables, and click Add Custom Variables.
You'll be prompted to enter a Custom Variable Name and a Custom Variable Label:
- The Custom Variable Name will appear in the URL string itself, so keep these short and space-free.
- The Custom Variable Label will appear in your analysis, so this is a descriptive place for you to keep track what the field means.
- Enter your values, and click Apply for each variable.
- Copy the URL string from Your Survey Link.
- Click Save.
To add custom variables:
- Click the Design Survey tab.
- In the left sidebar, click LOGIC.
- Click Custom Variables.
Set up the first variable by completing the following fields:
- Variable Name (required) - This will appear in the URL string itself. The Variable Name cannot contain any spaces. Max 50 characters.
- Label (optional) - This will appear in your analysis, so create a label that will help you track what information the field contains. Max 250 characters.
- Click Save.
- If you wish to add additional custom variables, click + Add New Custom Variable.
Modifying the Survey Link
Each survey link will need to match the following format, where:
- var1, var2, and var3, are the Variable Names you created in the Design Survey section
- [value], [value1], and [value2] are the values you must replace with each respondent's custom information
If your survey URL is https://www.surveymonkey.com/s/customlinkending, and you added three custom variables named Name, Department, and Title, then each of your links will need to follow this format:
If you were to customize the URL for Doug — an Intern in the Research department, you would replace the bracketed values with his custom information as follows:
When Doug takes the survey through this URL, the custom variables will be tied to his response.
Analyzing Results Using Custom Variables
View custom variables by exporting an All responses data spreadsheet.
Exporting Custom Variable Data
Only the All Responses Collected export will include custom variable data.
Some Variable Names are Excluded
This feature permits just about any custom variable name; but there are a few that we already use in our system. The ones we already utilize aren't allowed to be appended using this feature: