---
schema_version: "1"
id: 311541b09a3c42af3bfa6b3ef0d0312eeb43c20281df19fa8788297d896d70ee
title: Track User Rating
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_ctc_track_rating.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_ctc_track_rating.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c41ec1cf3e49b2490eb04cba86f0ec87e31ce139c5778b89c6acc0bd4c144268
description: Configure Collect Tracking Code to store contact ratings for items on your website.
products:
  - Marketing
  - Marketing Cloud Intelligence
release: "264"
---
# Track User Rating

Configure Collect Tracking Code to store contact ratings for items on your website.

```
<script type="text/javascript">       
   _etmc.push(["setOrgId", "MID"]);       
   _etmc.push(["trackRating", { "rating" : 5, 
          "item" : "INSERT_ITEM", 
          "unique_id" : "INSERT_UNIQUE_ID" }]);	 
</script>
```

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_data_management_and_analytics-264-0-0-production-enus/7988f60d-cd94-4b42-8836-dc11773564b5/images/icon_note.png)

Note 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 dynamic code for the unique identifier of the item rated. Optionally, replace "INSERT\_UNIQUE\_ID" with the dynamic code to pull in the unique child identifier for the item rated.
2. Paste the modified script in the header code on your detail pages.

#### See Also

- [Install Collect Tracking Code](https://help.salesforce.com/s/articleView?id=mktg.mc_ctc_install_collect_code.htm&release=264.0.0&type=5 "Learn how to configure your site to use Collect Tracking Code.")
- [Track Category Viewed](https://help.salesforce.com/s/articleView?id=mktg.mc_ctc_track_category_view.htm&release=264.0.0&type=5 "Configure Collect Tracking Code to store category data for the product a contact views on your website.")
- [Track In-Site Search](https://help.salesforce.com/s/articleView?id=mktg.mc_ctc_track_in_site_search.htm&release=264.0.0&type=5 "Configure Collect Tracking Code to store data about a contact’s search on your website.")
- [Track Items in Cart](https://help.salesforce.com/s/articleView?id=mktg.mc_ctc_track_cart.htm&release=264.0.0&type=5 "Configure Collect Tracking Code to track items that are added or removed from a contact’s cart.")
- [Track Page View](https://help.salesforce.com/s/articleView?id=mktg.mc_ctc_track_page_view.htm&release=264.0.0&type=5 "The trackPageView call is the most common call and can capture three types of information: product or content views, categories views, or search views.")
- [Track Purchase Details](https://help.salesforce.com/s/articleView?id=mktg.mc_ctc_track_conversion.htm&release=264.0.0&type=5 "Configure Collect Tracking Code to store details about a contact’s purchases from your website.")