---
title: SDK Event Details
slug: sdks/event-details
description: Information about the events available in the React Web, React Native, iOS, and Android versions of the Monetate SDK
image:  https://archbee-image-uploads.s3.amazonaws.com/ceIfEvQHzQk1IVxoRWUh7/K9eTL4jKm7UQINb6zNziJ-20250912-181225.png
docTags: 
createdAt: 2024-06-12T17:32:35.770Z
---

**Here are the details and descriptions for each event JSON object in all versions of the Monetate SDK.**

:::Heading{depth="2" indent="1"}
monetate\:context\:ipAddress
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                             |
| ------------------------------------------ | ----------------------------------------- | ---------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:ipAddress`). |
| `ipAddress: String`                        | Yes                                       | The IP address to send.                                                                  |

### Code Example

:::CodeblockTabs
Example of monetate\:context\:ipAddress Event

```javascript
{
  "eventType": "monetate:context:IpAddress",
  "ipAddress": "198.51.100.0"
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:context\:PageView
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                            |
| ------------------------------------------ | ----------------------------------------- | --------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:PageView`). |
| `path: String`                             | Required if `url` isn't included.         | The path portion of the URL for the page viewed.                                        |
| `url: String`                              | Required if `path` isn't included.        | The complete URL for the page viewed.                                                   |
| `pageType: String`                         | Yes                                       | The type of page viewed (for example, `"index"` or `"PDP"`).                            |
| `categories: Array`                        | Optional                                  | Categories to filter against. Only matching actions are evaluated.                      |
| `breadcrumbs: Array`                       | Optional                                  | Breadcrumbs to filter against. Only matching actions are evaluated.                     |

:::Heading{depth="3" indent="1"}
Code Example
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:context\:PageView Event

```javascript
{
  "eventType": "monetate:context:PageView",
  "url": "http://www.monetate.com/index.html",
  "pageType": "home",
  "categories": ["category"],
  "breadcrumbs": ["breadcrumb"]
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:context\:Cart
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                                  |
| ------------------------------------------ | ----------------------------------------- | --------------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:Cart`).           |
| `cartLines: Array[cartLine]`               | Yes                                       | The contents of the cart. Refer to [cartLine](docId\:N3hSu6YazAW65BLJFETrG)<br />for details. |

:::Heading{depth="3" indent="1"}
Code Example
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:context\:Cart Event

```javascript
{
  "eventType": "monetate:context:Cart",
  "cartLines": [{
    "sku": "SKU1",
    "pid": "PID1",
    "quantity": 2,
    "currency": "USD",
    "value": "24.00"
  }]
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:context\:AddToCart
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                                  |
| ------------------------------------------ | ----------------------------------------- | --------------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:AddToCart`).      |
| `cartLines: Array[cartLine]`               | Yes                                       | The contents of the cart. Refer to [cartLine](docId\:N3hSu6YazAW65BLJFETrG)<br />for details. |

:::Heading{depth="3" indent="1"}
Code Example
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:context\:AddToCart Event

```javascript
{
  "eventType": "monetate:context:Cart",
  "cartLines": [{
    "sku": "SKU1",
    "pid": "PID1",
    "quantity": 2,
    "currency": "USD",
    "value": "24.00"
  }]
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:context\:Purchase
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                                     |
| ------------------------------------------ | ----------------------------------------- | ------------------------------------------------------------------------------------------------ |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:Purchase`).          |
| `account: String`                          | —                                         | The account ID. **Deprecated.**                                                                  |
| `domain: String`                           | —                                         | The account domain (for example, `fifthlevelfashion.com`). **Deprecated.**                       |
| `instance: String`                         | —                                         | The type of instance (for example, `p` for production). **Deprecated.**                          |
| `purchaseId: String`                       | Yes                                       | The unique identifier for the purchase.                                                          |
| `purchaseLines: Array[purchaseLine]`       | Yes                                       | The contents of the purchase. Refer to [purchaseLine](docId\:N3hSu6YazAW65BLJFETrG) for details. |

:::Heading{depth="3" indent="1"}
Code Example
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:context\:Purchase Event

```javascript
{
  "eventType": "monetate:context:Purchase",
  "purchaseId": "1b2c3d",
  "purchaseLines": [{
    "sku": "SKU1",
    "pid": "PID1"
    "quantity": 2,
    "currency": "USD",
    "value": "24.00"
  }]
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:context\:Metadata
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                            |
| ------------------------------------------ | ----------------------------------------- | --------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:Metadata`). |
| `metadata: Object [language]`              | Yes                                       | Additional custom data to send.                                                         |
| `language: String`                         | Yes                                       | The language of the device or app.                                                      |

:::Heading{depth="3" indent="1"}
Code Example
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:context\:Metadata Event

```javascript
{
  "eventType": "monetate:context:Metadata",
  "metadata": {
    "language": "en-GB"
  }
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:context\:ProductDetailView
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                                                        |
| ------------------------------------------ | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:ProductDetailView`).                    |
| `products: Array[product]`                 | Yes                                       | The list of products viewed on a product detail page. Refer to [product](docId\:N3hSu6YazAW65BLJFETrG) for details. |

:::Heading{depth="3" indent="1"}
Code Example
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:context\:ProductDetailView Event

```javascript
{
  "eventType": "monetate:context:ProductDetailView",
  "products": [
    {
      "productId": "product72",
      "sku": "product72-large-green",
    },
    {
      "productId": "product43",
      "sku": "product43-medium-striped"
    }
  ]
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:context\:ProductThumbnailView
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                                                                |
| ------------------------------------------ | ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:ProductThumbnailView`).                         |
| `products: Array[String]`                  | Yes                                       | The list of product thumbnails viewed on a product list page. Refer to [product](docId\:N3hSu6YazAW65BLJFETrG) for details. |

:::Heading{depth="3" indent="1"}
Code Example
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:context\:ProductThumbnailView Event

```javascript
{
  "eventType": "monetate:context:ProductThumbnailView",
  "products": ["product72", "product43", "product42"]
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:context\:Coordinates
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                               |
| ------------------------------------------ | ----------------------------------------- | ------------------------------------------------------------------------------------------ |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:Coordinates`). |
| `latitude: String`                         | Yes                                       | The device user's `latitude` coordinates in decimal degrees.                               |
| `longitutde: String`                       | Yes                                       | The device user's `longitude` coordinates in decimal degrees.                              |

:::Heading{depth="3" indent="1"}
Code Example
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:context\:Coordinates Event

```javascript
{
  "eventType": "monetate:context:Coordinates",
  "latitude": "49.566667",
  "longitude": "10.883333" 
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:context\:ScreenSize
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                              |
| ------------------------------------------ | ----------------------------------------- | ----------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:ScreenSize`). |
| `height: Number`                           | Yes                                       | The `height` of the device.                                                               |
| `width: Number`                            | Yes                                       | The `width` of the device.                                                                |

:::Heading{depth="3" indent="1"}
**Code Example**
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:context\:ScreenSize Event

```javascript
{
  "eventType": "monetate:context:ScreenSize",
  "height": 762,
  "width": 1024
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:context\:CustomVariables
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                                                                                              |
| ------------------------------------------ | ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:CustomVariables`).                                                            |
| `customVariables: Array[customVariables]`  | Yes                                       | An array of custom variables. Refer to [CustomVariables ](https://app.archbee.com/docs/gI3o1i4XdDy584dqSyxqi/N3hSu6YazAW65BLJFETrG#aKs2f)for more Details |

:::Heading{depth="3" indent="1"}
**Code Example**
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:context\:CustomVariables Event

```javascript
{
  "eventType": "monetate:context:CustomVariables",
  "customVariables": [{
    "variable": "favoriteTeam",
    "value": "Blue Hens"
  }]
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:context\:UserAgent
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                             |
| ------------------------------------------ | ----------------------------------------- | ---------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:UserAgent`). |
| `userAgent: String`                        | Yes                                       | The `User-Agent` header value.                                                           |

:::Heading{depth="3" indent="1"}
**Code Example**
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:context\:UserAgent Event

```javascript
{
  "eventType": "monetate:context:UserAgent",
  "userAgent": "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/522.11 (KHTML, like Gecko) Safari/3.0.2"
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:context\:Referrer
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                            |
| ------------------------------------------ | ----------------------------------------- | --------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:context:Referrer`). |
| `referrer: String`                         | Yes                                       | The referring URL.                                                                      |

:::Heading{depth="3" indent="1"}
**Code Example**
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:context\:Referrer Event

```javascript
{
  "eventType": "monetate:context:Referrer",
  "referrer": "http://www.example.com"
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:record\:PageEvents
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                             |
| ------------------------------------------ | ----------------------------------------- | ---------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:record:PageEvents`). |
| `pageEvents: Array[String]`                | Yes                                       | The array of page events.                                                                |

:::Heading{depth="3" indent="1"}
**Code Example**
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:record\:PageEvents Event

```javascript
{
  "eventType": "monetate:record:PageEvents",
  "pageEvents": ["myEvent"]
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:record\:Impressions
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                              |
| ------------------------------------------ | ----------------------------------------- | ----------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:record:Impressions`). |
| `impressionsIds: Array[String]`            | Yes                                       | The list of impression identifier strings.                                                |

:::Heading{depth="3" indent="1"}
**Code Example**
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:record\:Impressions Event

```javascript
{
  "eventType": "monetate:record:Impressions",
  "impressionIds": [
    "3.MS4xLjE1MTQ4MDg5MDAuMDAwMDAw"
  ]
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:record\:RecClicks
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                            |
| ------------------------------------------ | ----------------------------------------- | --------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:record:RecClicks`). |
| `recClicks: Array[String]`                 | Yes                                       | The array of recommendation click tokens to record.                                     |

:::Heading{depth="3" indent="1"}
**Code Example**
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:record\:RecClicks Event

```javascript
{
  "eventType": "monetate:record:RecClicks",
  "recClicks": ["rt.1.xxx", "rt.1.yyy"]
}
```
:::

:::Heading{depth="2" indent="1"}
monetate\:record\:RecImpressions
:::

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>                                                 |
| ------------------------------------------ | ----------------------------------------- | -------------------------------------------------------------------------------------------- |
| `eventType: String`                        | Yes                                       | Identifies the type of event. Use the name of this event (`monetate:record:RecImpressions`). |
| `recImpressions: Array[String]`            | Yes                                       | The array of recommendation impression tokens to be recorded.                                |

:::Heading{depth="3" indent="1"}
**Code Example**
:::

:::CodeblockTabs{indent="2"}
Example of monetate\:record\:RecImpressions Event

```javascript
{
  "eventType": "monetate:record:RecImpressions",
  "recImpressions": ["rt.1.xxx", "rt.1.yyy"]
}
```
:::

## cartLine

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>            |
| ------------------------------------------ | ----------------------------------------- | ------------------------------------------------------- |
| `sku: String`                              | Yes                                       | The unique identifier for the product.                  |
| `pid: String`                              | Yes                                       | The parent identifier for a related set of SKUs.        |
| `quantity: Number`                         | Yes                                       | The number of items in the cart.                        |
| `currency: String`                         | Yes                                       | The currency of the purchase value.                     |
| `value: String`                            | Yes                                       | The total value of the items in the specified currency. |

## purchaseLine

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font>            |
| ------------------------------------------ | ----------------------------------------- | ------------------------------------------------------- |
| `sku: String`                              | Yes                                       | The unique identifier for the product.                  |
| `pid: String`                              | Yes                                       | The parent identifier for a related set of SKUs.        |
| `quantity: Number`                         | Yes                                       | The number of items purchased.                          |
| `currency: String`                         | Yes                                       | The currency of the purchase value.                     |
| `value: String`                            | Yes                                       | The total value of the items in the specified currency. |

## product

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font> |
| ------------------------------------------ | ----------------------------------------- | -------------------------------------------- |
| `productId: String`                        | Yes                                       | The product ID.                              |
| `sku: String`                              | Optional                                  | The unique identifier for the product.       |

## customVariable

| <font color="#2166ae">**Attribute**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Description**</font> |
| ------------------------------------------ | ----------------------------------------- | -------------------------------------------- |
| `variable: String`                         | Yes                                       | The name of the custom variable.             |
| `value: String`                            | Yes                                       | The value of the custom variable.            |

