---
schema_version: "1"
id: 518ceefe6cbd4b35571977e6f968d54b8e58f007583afe92de2b98122a7b4716
title: Track Items Viewed
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_ctc_track_items_viewed.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_ctc_track_items_viewed.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f631014d67c58fb9c8a400e905b7ea1b4251cd3fd46e048167e64cde3a21ebe0
description: Configure Collect Tracking Code to track the items that a contact views on your site.
products:
  - Marketing
  - Marketing Cloud Intelligence
release: "264"
---
# 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.