Loading
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Add Google Tag Manager Data to the Example Omniscript Setup

          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.

          1. From the App Launcher, find and select Omnistudio, then click Omniscripts.
          2. In the Omniscript list, expand Documentation/OmniAnalytics and click E-commerce Buyflow Omniscript (Version 1).
          3. Click New Version.
            The new version is Version 2. The previous version without the Google Tag Manager data is Version 1.
          4. In the Properties pane, click Setup.
          5. Select Enable Tracking.
          6. Expand the Messaging Framework section.
          7. Make sure the Window postMessage, Pub/Sub, and Session Storage boxes are selected.
          8. Under Message, add these Key/Value pairs:

            Key

            Value

            eventAction

            view_item_list

            products

            (leave blank)

          9. Scroll to the bottom and click Edit Properties as JSON.
          10. Replace the empty quotes after the products node 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
              }
            ]
          11. 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.

           
          Loading
          Salesforce Help | Article