Configuration

Last updated:

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

variable flow

1. For the answer "Short trips" in the "fuel" question we set the variable "fuel" to "petrol".

create variable petrol

2. For the answer "Long trips" in the "fuel" question we set the variable "fuel" to "diesel".

create variable diesel

3. For the only answer in the "budget" question, we set the variable "budget" to use the user input.

create variable budget

4. For the answer "New" in the "type" question we set the variable "type" to "new".

variable type new

5. For the answer "Used" in the "type" question we set the variable "type" to "occasions".

variable type occassion

Constructing the URL

Finally let's construct the URL, using the variables we just set in the previous steps.

  1. For the last question (type), click on the "finish flag" icon on the "New" answer.

  2. Select the "send the user to a webpage" option from the dropdown.

  3. Enter the following url in the text: https://example.com/{vars.type}?fuel={vars.fuel}&budget={vars.budget}

  4. Click the "Apply to all answers" button in the bottom of the window and click "Done".

dynamic url result

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

Was this article helpful?

Yes

No

Need help?

Can't find what you're looking for? Our team is happy to help.

Contact support

Live within an hour. No developers needed.

Turn doubts into confident purchases.

4.8 rating · 300+ shops already chose Qonfi
Fox
Not sure where to start?
Book a 20‑minute demo with Fox
Loading available times…