How to use dynamic content in Exit Intent popups?

1. Passing dynamic info

You can pass dynamic variables to our platform within our script. To do that, you need to define all the needed variables and assign values to them in our tracking script. For example, if your website ID is 999, then by default the tracking script would look like this:

<script>
  window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
  mt('create', 999);
</script>
<script async src='//cdn.mxapis.com/mt.js'></script>

 

And if you would like to pass dynamic variables, then you can do that with help of "dynamic_field". An example below:

<script>
  window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
  mt('create', 999);
  mt('dynamic_field', 'name', 'John');
  mt('dynamic_field', 'surname', 'Doe');
  mt('dynamic_field', 'city', 'Nantes');
</script>
<script async src='//cdn.mxapis.com/mt.js'></script>

 
You can create unlimited amount of these dynamic fields, and they will be passed to Exit Intent banners.

2. Showing dynamic info in banner

When you create a banner, in any text element you can add dynamic variables. You need to use {{ before and }} after the variable, so system would recognize it. An example below:
 
 

Then for website visitor the banner would look like:

 
 

3. Posting dynamic info to your own URL

In "Elements" section you can define all fields, that you want to pass to your own system by clicking on "Add hidden field".

For each field you can set the name of field, and also in value you can either set your own value or use dynamic fields.

We also have a system variable called {{pageURL}} - this will contain the URL of page that visitor was viewing, when Exit Intent banner appeared.

 
And then you also need to go to "Advanced" section and fill out field "Post form info to URL" - here you can set your own system URL where to post info. For example: https://website.com/post.php