Track Items Viewed

Configure Collect Tracking Code to track the items that a contact views on your site.

The value for the item must match to the field mapped to the ProductCode or ContentID. If the item ID doesn’t match a record in the catalog, no affinity is built for the item. Mismatched item and field in the catalog is one of the most common mistakes during setup.

Match the value sent for INSERT_ITEM to the Product Code catalog field if you include a catalog file with your Personalization Builder implementation.

  1. Copy and customize the script by replacing INSERT_ITEM with the dynamic code for the unique identifier of each item.
    <script type="text/javascript">       
        _etmc.push(["setOrgId", "MID"]);       
        _etmc.push(["trackPageView", { "item" : "INSERT_ITEM" }]);	 
    </script>
  2. Paste the modified script in the header code on your detail pages.