React Native Event Code Samples
The following events are available to use in the React Native version of the Monetate SDK.
Imports LanguageData from @personalization-js-sdk/common.
Imports ScreenSizeData from @personalization-js-sdk/common.
Imports UserAgentData from @personalization-js-sdk/common.
Reports the coordinates of the customer.
Reports the referrer.
Imports ContextVariablesData from @personalization-js-sdk/common, and reports custom variables.
Reports any events on the page.
Reports when a customer views a specified page.
Reports when a customer views a product thumbnail.
Reports when a customer views a product detail page.
Reports recommendations click events.
Reports recommendations impression events.
Reports impression events.
Reports when a customer adds a product to their cart. Import and use the CartLinesData interface for this event. CartLine is the data structure used by this interface.
Reports when a customer purchases products. Import and use the PurchaseData interface for this event. PurchaseLine is the data structure used by this interface.
Imports ClosedSessionData from @personalization-js-sdk/common.
This event doesn't need to be created. The SDK automatically creates a decision event when you use the getActions method and pass a requestID as a string.