SDK Event and Action Types

Here's how to access event and action types.

Events

The available events are as follows:

  • RecordImpressions
  • RecordPageEvents
  • RecordRecClicks
  • RecordRecImpressions
  • ContextIpAddress
  • ContextCustomVariables
  • ContextUserAgent
  • ContextPageView
  • ContextCart
  • ContextAddToCart
  • ContextPurchase
  • ContextMetadata
  • ContextProductDetailView
  • ContextProductThumbnailView
  • ContextReferrer
  • ContextCoordinates
  • ContextScreenSize

Event Definitions

React Web
React Native
iOS
Android

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

Code to Import Events in the Common Package


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

Actions

The following actions are available in all four versions of the Monetate SDK: