# Rockerbox Cloud Mode Integration

RudderStack lets you send your event data to Rockerbox via [cloud mode]({{< ref "destinations/rudderstack-connection-modes.md#cloud-mode" >}}).

Find the open source transformer code for this destination in the <a href="https://github.com/rudderlabs/rudder-transformer/tree/main/src/v0/destinations/rockerbox">GitHub repository</a>.

## Track

The [`track`]({{< ref "event-spec/standard-events/track.md" >}}) call lets you capture user events along with the properties associated with them.

{{< info >}}
RudderStack supports the `track` call in both the cloud and device modes for the Rockerbox destination. Refer to the [Hybrid mode]({{< ref "destinations/streaming-destinations/rockerbox/setting-up-rockerbox.md#hybrid-mode" >}}) for more information.
{{< /info >}}

A sample `track` call is shown below:

```javascript
rudderanalytics.track(
  "Order Completed", {
    revenue: 30,
    currency: "USD",
    user_actual_id: 12345 
  })
```

{{< info >}}
RudderStack sends all properties of the `track` event to Rockerbox.
{{< /info >}}

The following table lists the **required** properties and their mappings between RudderStack and Rockerbox:

| RudderStack property   | Rockerbox property | 
| :-------------| :-----------------|
| `context.traits.email`/`properties.email`      | `email`   | 
| `userId`        | `customer_id`        | 
| `event`        | `action`        | 
| `timestamp`   | `timestamp`      | 

The following table lists the **optional** properties which are pre-defined in Rockerbox and their mappings with RudderStack:

| RudderStack property  | Rockerbox property  | 
| :-------------| :-----------------|
| `properties.revenue`               | `revenue`      |
| `properties.order_id`/`orderId`            | `orderId`          |
| `properties.in_store`         | `in_store`  |
| `properties.salesforce`         | `salesforce`  |
| `context.traits.phone`           | `phone`  |
| `properties.products.$.item_list_name`           | `item_list_name`  |
| `properties.products.$.location_id`         | `location_id`  |
| `properties.products.$.promotion_id`           | `promotion_id`  |
| `properties.products.$.promotion_name`           | `promotion_name`  |
| `properties.countryCode`           | `country_code`  |
| `properties.listingId`           | `listing_id`  |


