Dynamic text replacement on a landing page

Last updated: August 5, 2020 Written by: Avatar Justyna
Table of contents
Table of contents

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 Landingi platform, also when using Google Ads and dynamic keywords.

Example of dynamic text usage

Users type different keywords in the browser while searching for your product. You want to display different header for every group, relevant to their search, but on the same landing page with the same URL address. You don’t want to make many almost identical websites which will only differ in detail – it would be cumbersome to manage. In this case, it will be useful to put dynamic text on the landing page.

Click on the links below to see how the header and button label change depends on the parameter passed in the URL.

How to display dynamic text on a landing page?

Step I (Dashboard) – capturing parameters from the landing page’s URL by JavaScript code

1. Log in to the Landingi platform, go to the Landing pages tab and enter the Dashboard of chosen landing page. Go to the JavaScript codes tab and click on add script.

2. Paste the code below on the Body bottom position on the main page of the landing page and save the changes.

< script type = "text/javascript"
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 edition of the chosen landing page and add properly marked text in the desired location, according to the following schema:


In our example it will be:

%{{destination}} ||Italy%

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 every time when no parameter is in the link.


After completing the steps above, check if the dynamic text displays correctly on your landing page.


Was this manual helpful?