You are here:
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>
- 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.
- Paste the modified script in the header code on your detail pages.

