---
schema_version: "1"
id: c18422fdc0e54e1be4b0bbf4cd31b12cffeb4fab8b68b985f6a1c3cf7f03e64c
title: Add Data to the Select Device Step (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_add_data_to_the_select_device_step.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_add_data_to_the_select_device_step.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 352c9d205e23f89a2bad3d4dda0fc861a63759e37930cca737beecbb8d2ddd53
description: For the managed package runtime, the Messaging Framework of the Select Device step stores the master list of product impressions sent to Google Analytics Ecommerce.
products:
  - Omnistudio
release: "264"
---
# Add Data to the Select Device Step (Managed Package)

For the managed package runtime, the Messaging Framework of the Select Device step stores the master list of product impressions sent to Google Analytics Ecommerce.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

1. Click the **Select Device** step.
2. In the Properties pane, click **Properties** to display the step properties.
3. Scroll to the Messaging Framework section and expand it.
4. Make sure the **Window postMessage**, **Pub/Sub**, and **Session Storage** boxes are checked.
5. Add the following Message Key/Value pairs:
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col>
              <col>
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d312098e94">
                  <p style="margin-bottom:0;">Key</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d312098e100">
                  <p style="margin-bottom:0;">Value</p>
                </th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d312098e94 ">
                  <p style="margin-bottom:0;">eventAction</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d312098e100 ">
                  <p style="margin-bottom:0;">detail</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d312098e94 ">
                  <p style="margin-bottom:0;">products</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d312098e100 ">
                  <p style="margin-bottom:0;">(leave blank)</p>
                </td>

              </tr>
            </tbody>
          </table>
6. Edit the step properties as JSON code:
    
    - In the old Omniscript Designer, scroll to the top and click **Edit as JSON**.
    - In the new Omniscript Designer, scroll to the bottom and click **Edit Properties as JSON**.
7. Replace the `null` value or empty quotes after the `products` node with the following JSON array. Make sure a colon precedes the opening bracket and a closing brace follows the closing bracket.
    
    ```
    [
      {
        "name": "Apple iPhone 7",
        "price": 699,
        "brand": "Apple",
        "category": "Mobile",
        "variant": "Black",
        "list": "Search Results",
        "position": 1,
        "quantity": 1,
        "shipping": 19.9,
        "tax": 17.35,
        "revenue": 736.25
      },
      {
        "name": "Apple iPhone 8",
        "price": 699,
        "brand": "Apple",
        "category": "Mobile",
        "variant": "White",
        "list": "Search Results",
        "position": 2,
        "quantity": 1,
        "shipping": 19.9,
        "tax": 17.35,
        "revenue": 736.25
      },
      {
        "name": "Apple iPhone X",
        "price": 699,
        "brand": "Apple",
        "category": "Mobile",
        "variant": "Black",
        "list": "Search Results",
        "position": 3,
        "quantity": 1,
        "shipping": 19.9,
        "tax": 17.35,
        "revenue": 736.25
      },
      {
        "name": "Apple iPhone 11",
        "price": 699,
        "brand": "Apple",
        "category": "Mobile",
        "variant": "Black",
        "list": "Search Results",
        "position": 4,
        "quantity": 1,
        "shipping": 19.9,
        "tax": 17.35,
        "revenue": 736.25
      },
      {
        "name": "Apple iPhone XR",
        "price": 699,
        "brand": "Apple",
        "category": "Mobile",
        "variant": "Black",
        "list": "Search Results",
        "position": 5,
        "quantity": 1,
        "shipping": 19.9,
        "tax": 17.35,
        "revenue": 736.25
      }
    ]
    ```
8. Exit the JSON editor.
    
    - In the old Omniscript Designer, scroll to the top and click **Edit as Properties**.
    - In the new Omniscript Designer, scroll to the bottom and click **Close JSON Editor**.

What’s next: [Add Data to the View Quote and View Cart Steps (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_data_to_the_view_quote_and_view_cart_steps.htm&release=264.0.0&type=5 "For the managed package runtime, the Messaging Framework of the View Quote and View Cart steps stores the data format for the selected device. For the example, only the DeviceName is a merge field. The remaining values are hard-coded.").