Loading
Salesforce now sends email only from verified domains. Read More
Einstein and Analytics in Marketing Cloud Engagement
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
          Configure trackWishlist for Behavioral Triggers and Collect Tracking Code

          Configure trackWishlist for Behavioral Triggers and Collect Tracking Code

          To store customer wishlists for items on your site, set up Collect Tracking Code with trackWishlist. Consult your web developer to configure Collect Tracking Code in Marketing Cloud Engagement.

          1. Copy this script.
            <script type="text/javascript">
               _etmc.push(["setOrgId", "MID"]);
               _etmc.push(["trackWishlist", {
                  "items" : ["INSERT_ITEM_1", "INSERT_ITEM_2", "INSERT_ITEM_3"],
                  "skus" : ["INSERT_UNIQUE_ID_1", "INSERT_UNIQUE_ID_2", "INSERT_UNIQUE_ID_3"
            </script>
            

            Match the value sent for "INSERT_ITEM" to the Product Code catalog field if you include a catalog file with your Personalization Builder implementation. Each subsequent trackWishlist call replaces the contact’s wishlist data. If you want the contact’s entire wishlist to persist, include all items in each call.

          2. To customize it, replace "INSERT_ITEM_X" with dynamic code for the unique identifier of the item rated.
          3. To pull in the unique child identifier for the item rated, replace "INSERT_UNIQUE_ID" with the dynamic code.
          4. Paste the modified script in the header code on the pages where users manage their wishlist.
           
          Loading
          Salesforce Help | Article