Create a Website

How Do I Add a Dynamic Text?

Site owners often wonder how they can make site pages more relevant to their users. Obviously, if users see exactly what they are looking for on a page, they will take a closer look at the information on the page and they are more likely to perform target actions.

Dynamic content is a way of changing the text based on the behavior, preferences, and interests of the user.

In uKit, you can implement a dynamic text with the Text widget. This option is available for the Basic, eCommerce, and Pro plans.

To set a dynamic text, click on the Dynamic text icon in the Text widget settings and add a new variable.

In the window that will open, set the variable filling in all the fields:

  • URL Parameter: the name of the parameter. Only Latin characters and digits are allowed.
  • Variable name: the variable is used in the builder. It’s automatically generated from the URL parameter.
  • Default text: this text is displayed when the URL parameter isn’t set.

Now, you can use the created variable in the text. Copy the name of the variable, or click on the Paste into text icon to place the dynamic text where you want.

How Does the Dynamic Text Work?

Publish your website and go to edit it. Instead of the {{city}} variable, the text specified in the Default text field will be displayed.

If you add a parameter of the created variable to the link, the text from the parameter value will be displayed instead of the variable. The URL parameter is formed as follows: question mark + variable name + variable value with the equal sign.

Look at the example below. If you enter the following into the address bar:


“A Cozy Hotel In Miami” will be displayed on the website instead of “A Cozy Hotel In {{city}}”.

Was this article helpful?
The article hasn't been rated yet.