Try pre-set campaigns and get your first conversions within 15 minutes.
Mailocator / Scenario 2025-01-24 10:32:39

Campaign management events in a scenario

Events are used to create variables and their values that can start and close campaigns. The conditions for triggering are set in the scenario for each campaign separately.

Any campaign can be triggered using events, triggers can be combined (e.g. with exit-intent) or alternatively triggered only when conditions are met if Mailocator Display Event is selected as a trigger.

Creating and managing events

An event can be set up on any campaign in the scenario under the Events button.

How to use events?

You can successfully or unsuccessfully finish one campaign to display another campaign.

Just allow one campaign to create an event, and on the other campaign set whether or not it can be triggered if the created event exists (or has a specific value).

Practical examples

  • If I want to trigger a campaign during the next visit based on an action performed, such as a purchase, reaching a conversion goal, etc.
  • when I want to trigger a campaign based on a cart value or other site parameter
  • to notify me of an incomplete purchase on the next visit
  • to display personalised content to logged-in users

Creating events using custom scripts

You can also create events using external javascript to run campaigns using custom scripts.

Example of creating an event using an action

<button onclick="mailocator.do('pushEvent:event_name,event_value')"></button>

Example of creating an event using JavaScript, for example in GTM:

if (mailocator)
   mailocator.event.push('event_name: event_value'); 

Functions for working with Events

  • push
  • pull
  • clear

Event properties

  • events work with variable names and conditions based on their values, which can be dynamically created and changed by an external script, from GTM or from actions
  • an event can trigger any campaign that is active and has not yet been closed by the user
  • the event can terminate (hide) a campaign if the condition is met
  • an event can create a new event or delete the current event when the condition is met
  • event conditions always complement other conditions in the campaign settings