New Feature: Target Visitors Specifically with Dynamic Text Replacement

dynamic text replacement new features - New Feature: Target Visitors Specifically with Dynamic Text Replacement

You can now target your visitors using their name, demographics, and more with Dynamic Text Replacement.

At OptiMonk, we stay at the forefront of digital marketing, delivering new ways to customize your messages with each new release. This time, we’ve changed the game completely. Dynamic Text Replacement offers an entirely new level of customization for your onsite retargeting campaigns. You can now create fully personalized messages that target your individual visitors.

Dynamic Text Replacement inserts text based on any variable you choose. This allows you to craft your messages for the very specific needs of each visitor… automatically!

Imagine if you could thank every person that visited your ecommerce site by name… or provide a special offer based on the products they’ve viewed… all without lifting a finger. Well, that’s exactly what Dynamic Text Replacement can do. Let’s see how it works.

What is Dynamic Text Replacement?

Our new Dynamic Text Replacement feature lets you alter the text in your popup based on any variable you wish. This way, you can display highly targeted messages to individual visitors using only one popup.

You don’t have to create different popups for all the different groups in your audience. Dynamic Text Replacement gives you the power to display fully-personalized information in your popup that engages your visitors and encourages them to buy or subscribe based on their specific needs.

Let’s look at some of the ways you can use Dynamic Text Replacement to deliver personal messages:

  • Target visitors based on their location, gender, age, etc. by using dynamically altered text
  • For ecommerce sites, you can dynamically change your incentive (i.e. the percentage of a discount) depending on the product or category page where the visitor is browsing
  • Create a personalized Thank You page after your visitors convert or signup in the first popup

Using Dynamic Text Replacement

Let’s take a look at a simple example that demonstrates clearly how to use Dynamic Text Replacement. Let’s see how you can display the name of your visitor on your popups. For this purpose, you need to insert the following variable where your visitor’s name should appear:


dynamic text replacement custom variable name attribute 600px - New Feature: Target Visitors Specifically with Dynamic Text Replacement

When your popup appears, the name attribute will be replaced by the name variable.

dynamic text replacement custom variable andrew 600px - New Feature: Target Visitors Specifically with Dynamic Text Replacement

To use Dynamic Text Replacement, you’ll need to configure your custom variables. Custom variables can be used to segment your visitors based on any criteria you want. You can find the settings for custom variables in the Campaign Settings menu:

dynamic text replacement custom variable 600px - New Feature: Target Visitors Specifically with Dynamic Text Replacement

To display the correct information in your popup, you’ll need to define the custom variable for OptiMonk. You do this by adding some JavaScript code into the source code of your website. Let’s take a look at the following example that shows the JavaScript code to define a variable:

<script type="text/javascript">
  var OptiMonkOnReady = function () {
   var adapter = OptiMonk.Visitor.createAdapter();
   adapter.attr('registered', 'yes');
   adapter.attr('name', ’Visitor’);

When the JavaScript code above runs in a visitor’s browser, the value will be saved in the browser assigned to that visitor. The value will be unchanged until it’s redefined by another action.

Please note that the using custom variables require some knowledge of coding. Your developer can help you create the necessary variables so your campaigns show the right messages to each user.

(Note: Have you heard of OptiMonk? It’s a powerful onsite messaging solution that helps you convert up to 15% of abandoning visitors to sales and leads. Give it a try – click here to create a free OptiMonk account now.)

jb freemium - New Feature: Target Visitors Specifically with Dynamic Text Replacement


  1. Sam says:

    OK, cool! But where is the data coming in from? Off the URL? Do I need to insert the variables which match my email list for example and put them on the URL?

    1. M FU says:

      Is this through the /?tag function potentially as the URL. Each list would have a URL by using the ?tag or ?list= , type this manually into optimonk back office

Leave a Reply

Your email address will not be published. Required fields are marked *