Mandatory step for Web Personalization
- Trigger Action: Custom Event - You can create campaigns that are triggered on custom events that are being tracked from the website. Once the trigger event is performed by the user, the data will be fetched by MoEngage automatically. You can then consume this data as required.
- Trigger Action: Self Handled - You can also create campaigns that are triggered when required without an associated event trigger.
Trigger Action: Custom Event
To fetch the personalized campaign data automatically from MoEngage when your users perform an event, select the trigger action as Page load or as a custom event and then select an event. This setup is done in Step 1 of the Web Personalization campaign creation. Please note that the custom event should be tracked on the website. Else the campaign will not be triggered.
For more information about the MoEngage sample code, refer to the sample code.
Trigger Action: Self Handled
Use this option to define when to fetch the personalized campaign data from MoEngage instead of when the user performs an event. You need to select the trigger action as “Self Handled” in this case. This does not need any event to be tracked by you, as you can directly call the MoEngage function to fetch data when required.