Loading
Ongoing maintenance for Salesforce HelpRead More
Feature degradation | Gmail Email delivery failureRead More
Einstein and Analytics in Marketing Cloud Engagement
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Install Collect Tracking Code

          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.

          Note
          Note We recommend that you consult your web developer to complete the installation and configuration of Collect Tracking Code.
          1. Copy and paste your Collect Script within the <head> or <body> section of pages on your site. Replace MID with your business unit account ID.
            Collect Code Script
            <script type="text/javascript" src="https://MID.collect.igodigital.com/collect.js"> </script>
          2. Copy and paste the Set Org ID Script between the body tags of each page of your website. Replace MID with your business unit account ID.
            Set Org ID Script
            <script type="text/javascript">
                _etmc.push(["setOrgId", "MID"]); 
                _etmc.push(["trackPageView"]); 
            </script>
            Tip
            Tip Use Options and Configuration in Personalization Builder to modify predictive recommendations features. Changes made in Personalization Builder take effect immediately.
            Note
            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.
           
          Loading
          Salesforce Help | Article