Triggered Programmes

A triggered programme runs when a specific event fires for a customer.

The programme can be optionally ended when the event specified is triggered for the customer.

Select the Start On and optionally the Stop On events from the Start Programme step as shown below.

Start On and Stop On are javascript selectors that should return a boolean value, these are not triggered if the user is manually posted to the programme

Start & Stop functions

	Start function(eventdata, customerdata)

eventdata – data passed in by the chosen start on event. This data is passed in through the object [“__trigger”][“dataMap”]…

customerdata – this is the data, which contains the customer properties information.

Optionally, the passed in event trigger data can be analysed to check if specific requirements are met to start the programme. This function must return true (start) or false (don’t start).

For example, we could have a start on search. Then within the start function check a search parameter in the eventdata argument and if a specific search criteria is met start the programme.

	Stop function(programmedata, eventdata, customer, moduledata)

programmedata – data that is already within the currently running programme.

eventdata – data that is passed in through a new event. In the object [“__trigger”]…

customerdata - this is the data, which contains the customer properties information.

moduledata – below the stop function is a input for an additional module data field where you can pull any additional data from.

The event trigger data can also be analysed against various other data from many sources to determine if the currently running program should stop. This function must return true (stop) or false (don’t stop).

For example, we could check if data within the currently running programme matches data within the new event and stop the currently running programme. Else, start another concurrent version of the programme.

Still need help? Contact Us Contact Us