---
schema_version: "1"
id: 571482c994bd893ca1fa2200336c3948badaae4ebf7ea182548f6aa9a79a520e
title: Add Data to the Script Setup (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_script_setup.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_add_data_to_the_script_setup.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c6eeb55c922f4ec474d5936046d9b88d70bb037b277dab5ace4b19a0bd55aa1f
description: For the managed package runtime, the Messaging Framework of the Script Setup stores the master list of product impressions sent to Google Analytics Ecommerce.
products:
  - Omnistudio
release: "264"
---
# Add Data to the Script Setup (Managed Package)

For the managed package runtime, the Messaging Framework of the Script Setup 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. In the Vlocity Omniscript Designer tab, expand **Documentation/OmniAnalytics** and click **E-commerce Buyflow Omniscript (Version 1)**.
2. Open the general properties of the Omniscript.
    
    - In the old Omniscript Designer, click **Script Configuration**.
    - In the new Omniscript Designer, click **Setup** in the Properties pane.
3. Create a new version.
    
    - In the old Omniscript Designer, click **Create Version**.
    - In the new Omniscript Designer, click **New Version**.
4. Scroll to the Messaging Framework section and expand it.
5. Make sure the **Window postMessage**, **Pub/Sub**, and **Session Storage** boxes are checked.
6. 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="d147111e149">
                  <p style="margin-bottom:0;">Key</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d147111e155">
                  <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="d147111e149 ">
                  <p style="margin-bottom:0;">account</p>
                </td>

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

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

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

              </tr>
            </tbody>
          </table>
7. Edit the general 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**.
8. Replace the `null` value or empty quotes after the `impressions` node with the following JSON array. Make sure a colon precedes the opening bracket and a comma 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
      }
    ]
    ```
9. 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 Select Device Step (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_data_to_the_select_device_step.htm&release=264.0.0&type=5 "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.").