Custom Variables

Paid feature
Log in to see if this feature is included in your plan.

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:

  1. Click the Design Survey tab.
  2. In the left sidebar, click the Logic icon.
  3. Click Custom Variables.
  4. Click + New custom variable.
  5. Set up the first variable:
    • Variable Name (required) - This goes in the Web Link.
    • Label (optional) - This shows in your survey results, to help you track what each variable is for.
  6. Click Save.

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:

  1. Click the Collect Responses tab.
  2. Create a Web Link collector.
  3. Copy the survey link. The template for adding your custom values will already be added to the end of the link and will follow this format:[var1_value]&var2=[var2_value]&var3=[var3_value]
  4. Outside of SurveyMonkey (in Excel, Google Sheets, Numbers, etc.), replace the bracketed values with the values you want to pass through the URL. Custom variables are case sensitive, so make sure they match what you entered in the Design Survey section.
  5. Send each link to the people you want to take the survey.

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
Label: Name

Variable Name: dept
Label: Department

Variable Name: t
Label: Title

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:[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.

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?NameDepartmentTitle
Option BananaLizzieResearchIntern
Option BananaJennaResearchAnalyst
Option AppleHaileeResearchSurveyDesigner
  • URL Length
  • Forbidden Characters and Variable Names
  • No Way to Automatically Insert Values
  • Collector Options
  • Deletion