How can we help you?
Dynamic text replacement on a landing page
The dynamic text allows you to personalize and customize content on the webpage by adding proper parameters to the URL address. You can successfully add dynamic text to your landing pages at the Landingi platform, also when using Google Ads and dynamic keywords.
Example of dynamic text usage
See below how it works:
Dynamic text on a landing page
1. Log in to the Landingi platform, go to the Landing pages tab and enter the Dashboard of the landing page.
3. Name (1) the script and paste (2) the code indicated below. Choose the Body bottom (3) position on the Main page (4) of the landing page. Click Add to save the changes.
<script defer src="https://scripts.assets-landingi.com/customer-success/dynamic_replacement/dynamic.min.js"></script>
Step II (editor) – mark dynamic text on a landing page
1. Enter the editor of your landing page and add properly marked text in the desired location, according to the following schema:
In our example, it will be:
All dynamic text must be inserted between ‘%’ characters.
In double curly brackets, enter the name of the parameter to be passed as dynamic text.
After two vertical bars ‘||’, insert alternative text that will be displayed whenever no parameter is in the link. You can also leave this empty; in that case, no text will show up if the “general” (without parameters) link is used.
REMEMBER: You can add dynamic texts in different widgets, as many times as you need.
2. Create the link itself. Imagine, this is your general link to your landing page: www.landing_page_address.com.
To add a parameter for a dynamic text replacement, add ‘?’, parameter name, and new text. Your changed link will look like this:
3. After completing the steps above, check if the dynamic text displays correctly on your landing page.
When the parameter in the landing page URL address consists of two words (or more), you have to add %20 between them so that they can be displayed as separate words in the page content.
For example, your parameter consists of Rome and Italy. Include Rome%20Italy in the URL, and the dynamic parameter in the text will be separated with space: Rome Italy.
Multiple parameters in one link
You can use multiple parameters in one landing page URL address. Add '&' to separate consecutive parameters.
For example, your parameters are destination=Italy and name=Tom. Build your link as follows:
Different parameters can be placed in different widgets on one landing page.