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

Blog / Knowledge base

Updated: 5. June 2020

Mailocator installation - link to your site

How to connect Mailocator with e-shop or website?

Connecting to Mailocator is very easy, just insert a small piece of code - a snippet - into the template of your site.
The instructions are always displayed immediately after creating a new project.
You can also send the instructions to your webmaster, or follow the steps below.
You can insert a snippet directly by inserting it into pages (your webmaster) or by using Google Tag Manager if you use it.


You can view the snippet at any time on the Mailocator dashboard.



Attention, each project has its own unique snippet.








Copy the snippet code from the window.
You can also have the code sent to your email and passed on to your webmaster or marketing administrator.




Insert the code manually

<html>
   <head>
      <meta charset="utf-8" />

<script>
(function(e,a,d,b,c){a.mlctr={p:"https://app.mailocator.com",cpg:"300162zTjyRnTzBi"};
b=a.createElement(d);c=a.getElementsByTagName(d)[0];b.async=1;
b.src=a.mlctr.p+"/_/s/"+a.mlctr.cpg+"/ml.js";
c.parentNode.insertBefore(b,c)})(window,document,"script");
</script>

   </head>
   <body>
      ...
   </body>
</html>


Find the  <head> tag on your site and paste the code in the highest position possible.
If this is not possible, you can also paste the code into the  <body> tag




Insert using Google Tag Manager (GTM)


Open https://tagmanager.google.com, if you're not signed in, sign in with your Google Account.
Select New Tag.


Select from the tag insertion palette Custom HTML.


Click the add code icon.


Paste the Mailocator snippet you copied earlier.
Never insert more than one snippet!


Save the embedded snippet and add snippet execution rules in the last step.


The usual and recommended choice is All Pages to ensure that Mailocator behaves correctly, and save the settings.

Of course, you can influence the startup parameters, but they can distort the behavior of Mailocator and must be taken into account when creating scenarios..




How can I verify that my site is properly linked?


Once an activity appears on your site, you should see records of that activity in Mailocator monitoring.
In this case, the installation has completed and Mailocator is connected.


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.