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

Blog / Knowledge base

Updated: 9. October 2020

Transfer of data from Mailocator to ESP

Sometimes it is useful to provide additional information from Mailocator, usually state, gender, favorite categories, discount code or name and surname. How to do it?

Field names

In order for data other than email to be transmitted correctly, you need to know the field names in your email marketing tool (Maileon etc.)

You can usually find the fields in the contact list, where there are default system fields (surname, first name...) and then also fields that you can create yourself (custom fields).

Log in to your tool.
Open the contact list and view the list of fields.
If you want to add custom fields, add them and name them.




Go to Mailocator and open your pop-up in Designer

In the object selection, select the form elements and drag the object to the desired location.
Now all you have to do is assign an exact name to the object from the ESP's contact list, either in Designer or directly by editing HTML.


   

System fields - assignment

Insert in Designer

Open the form tab.
Select the required field.
In the field settings, select the default field labeled SYS.





Insert directly into the HTML source

System fields always have a mandatory prefix sys_
If the system field is named FIRST_NAME, enter it as the name sys_FIRST_NAME

<input type="text" name="sys_FIRST_NAME" value="" />



User-created fields - assignment

Insert in Designer

Open the form tab.
Select the required field.
In the field settings, select a custom field with annotation OPT.




Insert directly into the HTML source

User-created fields always have a mandatory prefix opt_
If the custom field is named promocode, enter it as the name opt_promocode

<input type="hidden" name="opt_promocode" value="123" />

RELATED

Scenario in Mailocator

The Mailocator scenario is a key tool for setting up your campaigns to work properly. See everything and how easy it is to set up.

Discount codes

Mailocator allows you to pass discount and promotional codes to email campaigns

Discount codes obtained from the API in real time

In addition to code stacks, Mailocator allows you to read discount codes in real time from an external API, display them in a thank you page and pass them to an email tool.

Transfer of data from Mailocator to ESP

Sometimes it is useful to provide additional information from Mailocator, usually state, gender, favorite categories, discount code or name and surname. How to do it?

Preparation of the winning calendar (Advent calendar)

Mailocator contains pre-prepared templates for action calendars, which reveal to users the winnings for a specific day in exchange for an email address. You can easily prepare an Advent calendar with a discount or an event for each day.

Scratch card

A scratch card is a campaign in which the marketing content (discount, notification, coupon...) is covered by an image that can be wiped with the mouse cursor or a finger on the screen of the smart device. After deleting and revealing the content, you can automatically trigger an action, such as getting an email address.