React Web

Articles

Install the React Web SDK
This documentation guides you through setting up and implementing the React Native and React Web SDK. Prerequisites You must have Node and Yarn installed to set up this SDK. Refer to the installation instructions for Node and Yarn for more i...
SDK Objects
The SDK consists of the following classes. Personalization Class Personalization is the main class. You can use an instance of this to invoke the different methods of SDK. import personalization from '@personalization-js-sdk/web'; Cr...
SDK Methods
The following methods are available to use in the SDK. All methods are part of the personalization class. For parameters that require event names, refer to SDK Events and Action Types for syntax. report Reports an event to Monetate. This allo...
SDK Event and Action Types
This article describes how to access event and action types. Events The available events are as follows: RecordImpressions RecordPageEvents RecordRecClicks RecordRecImpressions ContextIpAddress ContextCustomVariables ContextUserAgent Co...
SDK Event Details
This articles provides details and descriptions for the event JSON objects. Required attributes are in bold. monetate:context:ipAddress Attribute Description eventType: String Identifies the type of event. Use the name of this event...
React Web Event Code Samples
The following events are available to use. Metadata Event Imports LanguageData from @personalization-js-sdk/common . interface LanguageData { language: string; } Example import React, {useEffect} from 'react'; import Person...