You are here:
Add Google Tag Manager Data to the Example Omniscript Setup
The Messaging Framework of the Script Setup stores the complete list of product impressions that’s sent to Google Analytics Ecommerce and the Google Tag Manager.
- From the App Launcher, find and select Omnistudio, then click Omniscripts.
- In the Omniscript list, expand Documentation/OmniAnalytics and click E-commerce Buyflow Omniscript (Version 1).
-
Click New Version.
The new version is Version 2. The previous version without the Google Tag Manager data is Version 1.
- In the Properties pane, click Setup.
- Select Enable Tracking.
- Expand the Messaging Framework section.
- Make sure the Window postMessage, Pub/Sub, and Session Storage boxes are selected.
-
Under Message, add these Key/Value pairs:
Key
Value
eventAction
view_item_list
products
(leave blank)
- Scroll to the bottom and click Edit Properties as JSON.
-
Replace the empty quotes after the
productsnode with this JSON array. Make sure a colon precedes the opening bracket and a closing brace follows the closing bracket.[ { "item_name": "Apple iPhone 7", "item_brand": "Apple", "item_category": "Mobile", "item_variant": "Black", "price": 699, "quantity": 1 }, { "item_name": "Apple iPhone 8", "item_brand": "Apple", "item_category": "Mobile", "item_variant": "Black", "price": 699, "quantity": 1 }, { "item_name": "Apple iPhone X", "item_brand": "Apple", "item_category": "Mobile", "item_variant": "Black", "price": 699, "quantity": 1 }, { "item_name": "Apple iPhone 11", "item_brand": "Apple", "item_category": "Mobile", "item_variant": "Black", "price": 699, "quantity": 1 }, { "item_name": "Apple iPhone XR", "item_brand": "Apple", "item_category": "Mobile", "item_variant": "Black", "price": 699, "quantity": 1 } ] - Click Close JSON Editor.
After you add Google Tag Manager data to the example Omniscript Setup, Add Google Tag Manager Data to the Example Omniscript Steps.

