How to send users to a page on your website by constructing a dynamic URL
You can use Qonfi to collect information about your users (through given answers) and use this information to construct an URL to an existing page on your website. We do this using variables.
Example
Say, we're selling cars and we want to send our users to the existing car listing page on our website. We set up the following (extremely simplified) flow.
Setting the variables
1. For the answer "Short trips" in the "fuel" question we set the variable "fuel" to "petrol".
2. For the answer "Long trips" in the "fuel" question we set the variable "fuel" to "diesel".
3. For the only answer in the "budget" question, we set the variable "budget" to use the user input.
4. For the answer "New" in the "type" question we set the variable "type" to "new".
5. For the answer "Used" in the "type" question we set the variable "type" to "occasions".
Constructing the URL
Finally let's construct the URL, using the variables we just set in the previous steps.
- For the last question (type), click on the "finish flag" icon on the "New" answer.
- Select the "send the user to a webpage" option from the dropdown.
- Enter the following url in the text:
https://example.com/{vars.type}?fuel={vars.fuel}&budget={vars.budget} - Click the "Apply to all answers" button in the bottom of the window and click "Done".
How it works
As you can see, we've used the "type", "fuel" and "budget" variables in this URL to construct it:
https://example.com/{vars.type}?fuel={vars.fuel}&budget={vars.budget}
The 3 bold variables (e.g. ‘vars.’) are ‘placeholders’ that are automatically filled according to the users answer.
For example when a user gives the following answers:
1. Short trips (fuel = petrol)
2. Budget of €9000
3. Used car (type = occassions)
The user will automatically be send to the correct url based on the answers given:
https://example.com/occassions?fuel=petrol&budget=9000
Documentation