Variables

Learn how to store and use parameters in funnel

General

Variables are dynamic values based on input and environment.

Variables are useful for operating such data as:

  • User data (user ID, email)
  • User replies (picked birth date, name)
  • Analytics data (utm_campaign, utm_source)

You can use this data both inside and outside your funnel.

In most cases you can call a variable by putting its name between double braces, just like this: {{variable_name}}

📘

Try out variables demo funnel

Take a look at variables usage in the example funnel try.fnlfx.com/variables/?param=value

URL query parameters variables

Funnel URL query

When a user enters your funnel all URL query parameters are stored and you can call them by using corresponding variables: {{query.variable_name}}. It works for any incoming URL query parameters, even custom ones.
For example, if user came with utm_campaign , it will be stored in {{query.utm_campaign}}.

Try changing value in the example funnel's URL query above and check the result

External URL query

You can pass a variable in external link. Use variable as URL query parameter's value: ?parameter={{variable}}

It means that you can pass incoming URL query parameters through your funnel unaltered. For example, you can add utm_source={{query.utm_source}} parameter to your button's URL query parameters to pass original user's source (Facebook, TikTok etc.) for further use.

Any variable can be used in this way. You can pass data that was obtained in the funnel so your users could avoid inputting the same data several times.

Button link settings

Button link settings

User attribution variables

FunnelFox provides 2 reserved variables for user attribution: {{user.id}} and {{user.session_id}}

{{user.id}} contains unique user ID allowing to identify the same user in different funnels.

{{user.session_id}} stores unique session ID to identify each session separately.

Those parameters are always available and filled automatically each time a user enters your funnel.


User input variables

Date Picker, Input and Options elements have their own variables. You can use them by putting element's ID into double braces: {{elementID}} or {{inputs.elementID}}

Date picker variables

Date variable uses the chosen format: DD-MM-YYYY for European or MM-DD-YYYY for American

Date picker variable

Date picker variable

Text input variables

Input variabe

Input variable

Options variables

🚧

Options variable stores Label data

{{inputs.option}} variable on the screenshot below will show either Flame, Heart or Gift caption without emoji.

In case of options box with multiple answers variable will contain all chosen options separated by coma and space.
For example, for chosen options "Heart" and "Gift" variable will store the following text: Heart, Gift

Options variable

Options variable


What’s Next