Actions in Mailocator
Controlling Mailocator with Actions opens up a number of options for modeling your campaigns
What are Actions?
In addition, it is possible to chain actions, for example, to ensure that after successful submission of the form, the window closes itself in the selected number of seconds.
Actions can be written directly to the source code or by the user in the Designer.
How it starts?
onclickon buttons and images.
To process the form, the actions are associated with the
When writing to the source code, you must add a call to the
mailocator.action.do ()action to the event and specify one or more actions in parentheses.
For example, to close a window, you can add an
closeaction to an HTML element by typing:
Add Action in DesignerSelect an element
In the palette, select the symbol for Actions (Event)
Choose an action and confirm by clicking on the "Add action" button
For example, the "submit form content and close pop-up after three seconds" action looks like this:
Overview of supported Actions
You can get a valid list, including the correct parameters, in Scenarios in the drop-down menu of a specific object, for example, the following list of actions is displayed for pop-ups:
Alphabetical overview of Events:
closecloses the current object and this object will no longer be displayed
close:[int]closes the current object in seconds
closeID:[int]closes the object defined by the campaign identifier X (for example from an external script etc.)
closeCampaign:[string]closes the object defined by the trigger type (for example 'POPUP')
consentconfirmation of consent to cookies (cookie consent)
destroySessiondeletes the user's session, including cookies (anonymization occurs)
disableturns off the Mailocator engine for the given user session
disableID:[int]switch off camapign identified by given ID
enableturns on the Mailocator engine for the given user session, if the engine was turned off by the action
FEEDBACKobject to its full size
feedbacksending and saving the results of the feedback questionnaire
ga:[string]sends the specified event to Google Analytics
hideremoves the object from the page, but the object can be displayed again (unlike
nexstepif a multi-step pop-up is created in Designer, it takes the user to the next step in a row
nexstep:[int]moves the user to the step defined by the sequence number displayed in the Designer (back or forward)
resetobnoví setting the session to its original state as if the user had taken no action and no conversion had taken place
setCampaign:[string]calls the campaign by name for use in other actions that are called from external scripts.
mailocator.action.do (setCampaign: popup | close)switches the campaign context to POPUP and closes the currently open pop-up.
subscribesubmits the form for processing
subscribe:1submits the form for processing and waits for the result
triggerID:[int]forces the campaign to run by number
url:[url]go to the specified URL
validatereal validation of an email address, detection of typos etc.
Validation must be enabled in Mailocator Settings, otherwise each syntactically correct address is considered valid.