Try pre-set campaigns and get your first conversions within 15 minutes.

Mailocator / Custom HTML and JavaScript 2026-11-13 07:06:58

Launching a campaign from your own script

Use this procedure if you want a Mailocator campaign to run immediately after the page has been loaded from your own script. Mailocator may not yet be ready at that point, so a standard request to run the campaign may come too soon.

window.mailocatorReady ??= Promise.withResolvers();
window.mailocatorReady.promise.then( data => mailocator.do('triggerID:123456')); 

The recommended procedure is to wait until Mailocator is ready and then launch the campaign immediately. Please forward the preview to the website administrator, along with the ID of the campaign you wish to launch.

When launching an action via a click (onclick), this is not usually necessary. Furthermore, you can link clicks to a campaign directly within the Mailocator interface.