17. November 2020

Content replacement tags

There are several ways to copy arbitrary fields to campaign content, including influencing CSS class names, in Mailocator.


Why rewrite data into content?

ensure continuity between the content of the page and the message in the campaign and avoid universal texts
you can personalize messages and salutation
repeating an email or name works better
you can work with the display of gift (promo) codes
you can easily transfer any value from the dataLayer (GTM) to the hidden inputs and enrich your database

View email address

You can use the tag [EMAIL] or %%email%% to repeat the email address for the thank you page.

You can insert a message in the thank you page:
Please, check your mailbox %%email%% and confirm subscription.

Interpretation of values from form elements

You can transfer the content of all inputs (most often of the hidden, email, text, number, checkbox, radio) convention %% name_of_input %% anywhere in the text.

For example, if you know the user is moving in the Cameras section and you have this preference stored in the hidden input, you can use it to customize the text:

<input type="hidden" name="opt_category" value="cameras"/>
<h1>Ready for fresh news about %%opt_category%% ?</h1>

Influencing CSS classes is possible in the same way, for example:

.popup-background-img-apple: {background-image(url:green-apple.png)}
.popup-background-img-orange: {background-image(url:orange.png)}
<div class="mlctr-popup popup-background-img-%%fruit%%">

Transfer of gift codes

If you need to display the gift code and / or its description in the acknowledgment (if it was not generated earlier), use the convention:
to display the code {{PROMO_CODE}}
to display a description of the code or winnings {{PROMO_CODE_TEXT}}

Transfer of dataLayer content

You can easily transfer data from the dataLayer and enrich your contacts with additional data.
use the convention to insert code from the dataLayer {{dataLayer[1].category}}

For example, send a category along with a collected contact to a newsletter distribution tool:
<input type="hidden" name="opt_category" value="{{dataLayer[1].category}}"/>



Mailnatives, s.r.o. with IČO 07891768 is registered at the Regional Court in Hradec Králové under the file number C 43368