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?
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
[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
%% 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:
<style>
.popup-background-img-apple: {background-image(url:green-apple.png)}
.popup-background-img-orange: {background-image(url:orange.png)}
<style>
...
<div class="mlctr-popup popup-background-img-%%fruit%%">
...
Transfer of gift codes
to display the code
{{PROMO_CODE}}
to display a description of the code or winnings
{{PROMO_CODE_TEXT}}
Transfer of dataLayer content
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}}"/>