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

Blog / Knowledge base

Updated: 15. June 2020

Mailocator init/callback

How to call javascript function while Mailocator is running?


If Mailocator is successfully initialized, it will try to run the function with the reserved name mlctrCallback (), if one exists.

var mlctrCallback = function(){
    alert( 'Mailocator version: ' + mailocator.version );
};


The function can be stored anywhere in the main document or inserted directly into the Mailocator interface: Features & Settings > JavaScript:




RELATED

Switching between integrations within the same project

If you need to route some campaigns to the CRM, others to an email tool, and store the results from surveys in an independent database, this solution is also easy to set up.

Automated values, adding values to hidden inputs

Merging of arbitrary fields and automatic filling of selected fields with a series of system values

Launch a campaign when you hover or touch a specific location on the page

Mark a location that triggers a campaign when the user hovers over it or touches it on a touch device

Mailocator Events

With events, you can intelligently manage the sequence of campaigns across the entire workflow scenario and display much more relevant and precisely targeted content in real time.

Notification

Set up the display of notifications on your site using Mailocator