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
  • ContextCustomVariables
  • ContextUserAgent
  • ContextPageView
  • ContextProductView
  • ContextCart
  • ContextAddToCart
  • ContextPurchase
  • ContextMetadata
  • ContextProductDetailView
  • ContextProductThumbnailView
  • ContextReferrer
  • ContextCoordinates
  • ContextScreenSize
  • ContextClosedSession
  • ContextIpAddress

Events are defined in the common package. You can access these events by importing this package with the following code:

import { EventTypes } from '@personalization-js-sdk/common';

Once imported, you can reference these events using the syntax EventTypes.<event name>. For example, RecordImpressions is referenced by EventTypes.RecordImpressions.

Actions

The supported actions are as follows:

Action TypeAction Type String
OmniChannel JSON
monetate:action:OmnichannelJson
Recommendationmonetate:action:OmnichannelRecommendation
Social Proofmonetate:action:SocialProofDataV2
Badgingmonetate:action:OmniChannelImageBadging
Data Collectionmonetate:action:DataCollection
No Actionmonetate:action:NoAction