You are here:
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.
-
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.
- To customize it, replace "INSERT_ITEM_X" with dynamic code for the unique identifier of the item rated.
- To pull in the unique child identifier for the item rated, replace "INSERT_UNIQUE_ID" with the dynamic code.
- Paste the modified script in the header code on the pages where users manage their wishlist.

