You are here:
Track Activity on External Sites
Track visitor activities on web pages hosted outside of Salesforce, such as your company website. To protect the privacy of your site visitors, use the default consent banner to collect consent to track. You’re responsible for complying with privacy laws and regulations applicable to your business.
Required Editions
| Available in: Salesforce Enterprise and Unlimited Editions with Marketing Cloud Next Growth or Advanced Edition |
| User Permissions Needed | |
|---|---|
| To configure external tracking: | Marketing Cloud Admin permission set |
- If you’re setting up external tracking for the first time, create a website connector, and then create embed code that you add to your external site.
- If you've set up external tracking before Winter ‘26, update your external tracking configuration.
- Apply and customize a consent banner for activity tracking on your website.
Create External Tracking Configuration
First, create a website connector that collects activity data from your external site. Then, create the embed code to add to your external site, and associate it with your website connector and a campaign.
-
Create a website connector.
- From Setup, in the Quick Find box, enter Web Tracking, and then select Website Connectors.
- Click New.
- Name the website connector and click Create.
-
Create the embed code.
- From Setup, in the Quick Find box, enter Web Tracking, and then select Webpage Embed Codes.
- Click New.
- Name the embed code and select a website connector.
- In the Configure Tracking Settings section, choose whether to require consent to track external pages that include the embed code. This setting is on by default. You're responsible for complying with privacy laws and regulations applicable to your business.
- Select a campaign to associate with the engagement data.
- Click Create.
- To turn on data collection on your website, copy the embed code and add it to your website’s head tag.
Update External Tracking Configuration
If you set up external tracking before Winter ‘26, update your external tracking configuration to access the latest feature updates. Copy the web tracking script, and replace the existing script on your website.
-
From the Website Connectors page, configure your web tracking connector.
Important If you don't see your connectors and you created them before Summer ’25, contact Salesforce Customer Support to regain access to your website connectors with required updates. -
Copy the embed code and replace the existing code in your webpage's head tag.
Note For accurate reporting of your website data, replace the script on your website. - Save your changes.

