Custom Variables

Custom Variables is a logic feature that allows you to track data about respondents by passing one or more values through a survey link and into your survey results.

This feature is available on the PLATINUM plan.

Creating Custom Variables in the Design Survey Section

The steps for setting up Custom Variables differ between Classic Design and New Design.

Classic Design

To add custom variables:

  1. Click the Design Survey tab.
  2. Click Survey Options.
  3. Click Add Custom Variables.
  4. Set up the first variable by completing the following fields:
    • Custom Variable Name - This will appear in the survey URL, so keep it short and don't use spaces.
    • Custom Variable Label - Enter a description of the variable. This will only appear in your analysis.
  5. Click Apply.
  6. If you wish to add additional custom variables, click +Add More and repeat steps 4 and 5.
  7. After adding all of the variables, click Save.
New Design

To add custom variables:

  1. Click the Design Survey tab.
  2. In the left sidebar, click LOGIC.
  3. Click Custom Variables.
  4. 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.
  5. Click Save.
  6. If you wish to add additional custom variables, click + Add New Custom Variable and repeat steps 4 and 5.

Which version am I using? »

Modifying the Survey Link in the Collect Responses Section

After you create the custom variables in the Design Survey section, you'll need to create your survey link.

  1. Under the Collect Responses tab, create a Web Link Collector.
  2. Copy the survey link. You'll notice that the template for adding your custom values will already be appended to the end of the link. It will follow this format:
https://www.surveymonkey.com/s/your_survey?var1=[var1_value]&var2=[var2_value]&var3=[var3_value]
  1. Outside of SurveyMonkey (for example, in Excel), replace the bracketed values with the values you want to pass through the URL.
  2. Send the link(s) to respondents.
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.
Analyzing Custom Variables in the Analyze Results Section

All Responses Data exports in XLS, XLS+, or SPSS format will include the custom variables tied to each respondent at the end of each row.

Limitations

 
URL Length

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.

Forbidden Characters and Variable Names

Due to clashes with the SurveyMonkey site, you can't use the following Variable Names when you create Custom Variables:

sm
mode
c
cid
rid
r
s
pID
s_mod
PREVIEW_MODE
Fmt
prizeshown
Token
Disqualify
overquota

You can't use the following URL-reserved characters in Variable Names, Variable Labels, or in the values you insert into the survey link template:

#
?
&

 

No Way to Automatically Insert Values

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.

 

Example

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:

Design Survey

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

 

Collect Responses

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/s/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/s/your_survey?n=Greg&dept=Research&t=Intern

https://www.surveymonkey.com/s/your_survey?n=Mark&dept=Research&t=Analyst

https://www.surveymonkey.com/s/your_survey?n=Rob&dept=Research&t=SurveyDesigner

Analyze Results

Download an All Responses Data XLS, 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 BananaGregResearchIntern
Option BananaMarkResearchAnalyst
Option AppleRobResearchSurveyDesigner
Custom Variables is a logic feature that allows you to track data about respondents by passing one or more values through a survey link and into your survey results.