You are here:
Install Collect Tracking Code
Learn how to configure your site to use Collect Tracking Code.
To begin configuration of Collect Tracking Code, select Email Recommendations or Web Recommendations under Personalization Builder in the app switcher. Select Collect and complete the steps. Then install Collect Tracking Code on your site.
-
Copy and paste your Collect Script within the
<head>or<body>section of pages on your site. ReplaceMIDwith your business unit account ID.Collect Code Script<script type="text/javascript" src="https://MID.collect.igodigital.com/collect.js"> </script> -
Copy and paste the Set Org ID Script between the body tags of
each page of your website. Replace
MIDwith your business unit account ID.Set Org ID Script<script type="text/javascript"> _etmc.push(["setOrgId", "MID"]); _etmc.push(["trackPageView"]); </script>Tip Use Options and Configuration in Personalization Builder to modify predictive recommendations features. Changes made in Personalization Builder take effect immediately.Note To enable subscribers to opt out of tracking on your website, replace the Set Org ID Script with the Do Not Track Script.
- Do Not Track Script
Use Do Not Track Script code to suppress Collect Tracking Code on your website when a subscriber opts out of tracking. Collect Tracking Code doesn’t use browser settings to determine whether to track user activity. - Configure Collect Tracking Code for Personalization Builder
Set up Marketing Cloud Engagement to work with Collect Tracking Code and Personalization Builder.

