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.
What are events?
You can create events, assign values to them, change those values, or delete events.
Based on the existence or values of events or combinations of events, you can:
launch or block any campaigns
turn off campaigns
create new events
delete events that are no longer valid
With Events, for example, you can run a campaign when the value of an item in your cart is higher than the limit you set (see below).
Event management
dataLayer
.Creating an event
true
:mailocator.event.push('event_name')
Creating an event with a defined value:
mailocator.event.push('total_price:5')
Event Update
mailocator.event.push('total_price:99')
Increase the event value by 1 if the current value is a number:
mailocator.event.push('items-count:+')
Decreases the event value by 1 if the current value is a number:
mailocator.event.push('items-count:-')
Removing an event
mailocator.event.pull('event_name')
Return of Event Value
mailocator.event.get('event_name')
For example:
console.log( mailocator.event.get('total_price') )
returns
> 99
Listing all events and their values on the browser console
mailocator.event.all()
Delete all events
mailocator.event.clear()
Case study:
Launch a campaign based on cart content and value
Click the Settings button next to the desired campaign
Set up Campaign Launch using events
Set the required parameters for running the campaign
In this case, we set the event
total-price
and items-count
to the desired values with a condition that must be met for the campaign to runThe campaign set up in this way will be launched immediately when the necessary events are set up:
mailocator.event.push('total_price:100')
sets the total price in the cartmailocator.event.push('items_count:1')
sets the first itemmailocator.event.push('items_count:+')
increases the number of items by oneSince the condition for total_price is met (must be greater than 99) and at the same time items_count is equal to 2, the campaign is started.
Creating a new event based on conditions met from previous events
In Mailocator, you can create new events to help you intelligently manage the sequence of campaigns throughout your workflow scenario. This gives the user more relevant and precisely targeted content.
What are the most common event-based targeting models?
product recommendations in the purchasing processdisplay of marketing motivators in the shopping process depending on the value and/or content of the basket
view products with respect to user history
offer previously unread content in the context of current content
enrichment of the acquired contact
Example of setting a condition according to a fulfilled event:
The following simple configuration ensures that when the condition is met and the value exceeds a certain value (99), we mark the user as valuable and a new event is created -
{valuable_user
.This event can then be used to trigger campaigns (benefits, free shipping...) for the customers so marked.
Testing events in the Lab
You can easily simulate event states and examine workflow scenarios in detail.
in the Scenario, start the Lab
click on the Events icon on the bottom left to get the current list of events currently in use
you can now set events to the desired configuration to run the campaign