Articles
What Is the Monetate SDK?
The Monetate SDK is a library of objects and methods that allow you to easily utilize the capabilities of the Engine API. Using methods that simplify the API calls, you can create and run your experience quickly and with minimal effort. The SDK ca...
Install the React SDK
This documentation guides you through setting up and implementing the React 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 information. Installi...
Create a Banner Message
Displaying a banner involves creating an action trigger that activates an Omnichannel experience to return an appropriate JSON object. This object contains data that you can use to populate a banner message. You can use the Get Actions method to s...
Create an Omnichannel Recommendations Action
An Omnichannel recommendations is an integrated recommendations experience that is consistent across all platforms that you connect to Monetate. Whether a customer is viewing your storefront through a mobile app or your site, Omnichannel recommend...
Create Social Proof Actions
Social proof is a demonstration that other people have purchased or found value in a product or service. This demonstration helps the product or service stand out from others and makes the customer more likely to purchase it. These demonstrations ...
Create an Image-Based Badging Action
The product badging feature allows clients to apply some treatment to specific items on product listing pages and product detail pages to draw site visitors' attention to those items to foster engagement. Product badging highlights key attribu...
SDK Objects
The SDK consists of the following classes. Personalization Class Personalization is the main class and creates the object used for all SDK activities. This class contains the methods to invoke the SDK functionality and the subclasses that contai...
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 Event and Action Type Constants for syntax. report Reports an event to Monetate. This ...
Event and Action Type Constants
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...
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 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 Personali...