Hidden Variables
What are they useful for?
- For tracking the address the respondent used to visit your site
- For segmenting the audience and further analyze it
- For reducing the number of questions in a survey
How do the hidden variables work?
Hidden variables allow publishing the data that you already have. To view the received data for variables, go to Results - Responses.
Which data can be passed using hidden field variables?
Any type of data can become hidden variables, for example:
- First and last name;
- Phone number;
- Source where the user came from;
- Any other parameter that you decide to set up.
How to create hidden variables?
To create hidden variables, go to Share - Social Media
After that, into the Hidden Variables field enter the needed variables.
As a result, you will get the link in the following format: yourdomain.surveyninja.io/abc12345?name=xxxx&age=xxxx
name= и age= — hidden variables
xxxx — passed data
Example integration using hidden variables
You may want to integrate your survey with third-party making services using additional parameters.
To do this, add a hidden variable — email and the value %EMAIL%.
ap_email — variable name of the newsletter. Each mailing service has its own variable name.
%EMAIL% — variable of the respondent email.
As a result, you will get the link in the following format: yourdomain.surveyninja.io/abc12345?email=%EMAIL%
Now you can use this link in the email template.
Example links for popular mailing services
https://mailchimp.com — https://yourdomain.surveyninja.io/abc12345?email=*|EMAIL|*