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 This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

  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:

    Key

    Value

    eventAction

    detail

    products

    (leave blank)

  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.