Přejít k obsahu  Přejít k hlavnímu menu

Blog / Knowledge base

Updated: 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:

<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

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}}"/>




RELATED

Wheel of Fortune

A popular gamification element is the wheel of fortune, in which the user is offered a reward for providing data or subscribing to newsletters.

Mark campaign conversions with actions

Where a campaign is not automatically marked as converted (such as a newsletter sign-up), you can add a conversion using an action to better evaluate the success of the campaign.

Scenario testing laboratory

An easy way to verify the functionality of the scenario in Mailocator is to run a laboratory where you can see the entire course of processing over time, including the evaluation of conditions and user actions.

Disabling and enabling Mailocator using a parameter in the URL

If you need to limit campaigns in time and the UTM parameter is not available, you can use the internal parameter of Mailocator

Content replacement tags

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

Action setval - change of values in Mailocator forms

The setval action can be used to dynamically change the default value in pop-ups