Skip to main content
All CollectionsCollectSurveysEdit
How to use variables in my surveys?
How to use variables in my surveys?

Get an even better response rate by customising your surveys with your users' properties

Simon Robic avatar
Written by Simon Robic
Updated over 2 months ago

In Screeb, you have the ability to customise your questions with variables using properties you collected about your users.

You can use these properties to better target your users, but also to customise every questions in your surveys. Here's how to do it.

1️⃣ Add a new question to your survey (or edit an existing one)

Select the survey you want to edit, and click on Edit in the header menu.

Now, click on + to add a new question, or on an existing question to edit it. It will open a sidebar on the right of your screen.

In that sidebar, you have a field to edit the content of your question.

Note that a top of this field you can click on a ? Icon helping you to use variables and explaining the syntax to respect.

2️⃣ Insert a variable in your question

Anywhere in the text of your question, you can insert a variable by using this syntax:

{nameOfTheVariable:fallback}

The nameOfTheVariable is the name you used to track your user property. Please be sure to use the exact same spelling or it won't work.

The fallback is what will be displayed to your user if the variable is empty.

An example:

Let's say you want to use your users' first name in a question. Here's how you'll do it:

Let's imagine your user's name is Mary. This is how it will be displayed:

Hey Mary! On a scale of zero to ten, how likely are you to recommend our app to a friend or a colleague?

But if you don't know the name of your user, it will be displayed like this:

Hey you! On a scale of zero to ten, how likely are you to recommend our app to a friend or a colleague?

3️⃣ Save your question

Don't forget to save your question using the Save button in the bottom right corner.

And that's it!

Did this answer your question?