Dynamic text replacement on a landing page

Last updated: March 22, 2021 Written by: Avatar Justyna
share
Table of contents
share
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.

 

See below how it works:

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.

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:

%{{parameter}}||default_text%

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.

dynamic parameter landing page

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

Two-word parameter

When the parameter in landing page URL address consists of two words, you have to add %20 between them, so they can be displayed as two separate words in 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.

share

Was this manual helpful?