Actions
Create a No Action Handler
In some cases when you trigger an action, you might want to discard the collected data and do nothing. In these cases, you can direct the getActions or getActionsData method to perform no action. No data is returned in this case. Use this option to improve performance when you don't want to alter your site or the collected data.
Reports an event and immediately requests a decision from Monetate.
React Native
React Web
Android
The parameters are as follows:
- actionType is the type of action you want to request. You can specify one action or multiple actions in an array to handle.
- context is name of the event.
- eventData is the data associated with the event.
- includeReporting indicates whether the response will have impression reporting data.
Use NoAction as the action type for this method.
React Native
React Web
Android
Requests an experience decision from Monetate based off the action type.
React Native
React Web
Android
The parameters are as follows:
- actionTypes is the type of action you want to request. You can specify one action or multiple actions in an array to handle.
- includeReports indicates whether the response will have impression reporting data.
Use NoAction as the action type for this method.
React Native
React Web
Android
The following code example is for the No Action handler for the iOS version of the Monetate SDK.