You are here:
Track Purchase Details
Configure Collect Tracking Code to store details about a contact’s purchases from your website.
-
Copy and customize the Track Conversion script to include the attributes to
track.
<script type="text/javascript"> _etmc.push(["setOrgId", "MID"]); _etmc.push(["trackConversion", { "cart": [ { "item": "INSERT_ITEM", "quantity": "INSERT_QUANTITY", "price": "INSERT_PRICE", "unique_id": "INSERT_UNIQUE_ID" }, { "item": "INSERT_ITEM", "quantity": "INSERT_QUANTITY", "price": "INSERT_PRICE", "unique_id": "INSERT_UNIQUE_ID" } ], // OPTIONAL PARAMETERS "order_number": "INSERT_ORDER_NUMBER", "discount": "INSERT_DISCOUNT", "shipping": "INSERT_SHIPPING", "details": { "AttributeName": "Value" } // END OPTIONAL PARAMETERS }]); </script> - Paste the modified script in the header code on your detail pages. This method requires the same structure as the Track Cart script.
- Optionally, add order level information, such as order number, shipping charges, discounts applied, and custom details.

