---
schema_version: "1"
id: d2a527873da31a5bf68ca25119d979067f43ca9ee4586b73a1cbac40e623f05c
title: Track Activity on Marketing Landing Pages
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mktg_tracking_landing_pages_parent.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mktg_tracking_landing_pages_parent.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 962ca7d7fb750f5a187eb95ad4a808381453a00392be35af74df564e730a092e
description: To track visitor activities on your marketing landing pages, install the required integration on the default Marketing Landing Pages site. To protect the privacy of your landing page visitors, collect their consent to track with a custom consent banner that you design in Salesforce CMS. You’re responsible for complying with privacy laws and regulations applicable to your business.
products:
  - Marketing
release: "264"
---
# Track Activity on Marketing Landing Pages

To track visitor activities on your marketing landing pages, install the required integration on the default Marketing Landing Pages site. To protect the privacy of your landing page visitors, collect their consent to track with a custom consent banner that you design in Salesforce CMS. You’re responsible for complying with privacy laws and regulations applicable to your business.

### Required Editions

[View supported editions](https://help.salesforce.com/s/articleView?id=mktg.mktg_editions.htm&release=264.0.0&type=5 "Marketing Cloud Next is available in Growth and Advanced editions, and requires Salesforce Enterprise or Unlimited editions. Some features are limited by edition or purchased add-on. All functionality is available in Lightning Experience only.").

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d5021e47">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d5021e47 ">To configure external tracking:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d5021e47 ">
              <p style="margin-bottom:0;">Marketing Cloud Admin permission set</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d5021e47 ">To create and publish a consent banner:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d5021e47 ">
              <p>Marketing Cloud Manager permission set </p>
              <p>AND</p>
              <p style="margin-bottom:0;">a CMS workspace contributor
                role of content admin or content manager</p>
            </td>

          </tr>
        </tbody>
      </table>

#### See Also

- [Add Markup to the Page <head> to Customize Your Experience](https://help.salesforce.com/s/articleView?id=experience.community_builder_page_head.htm&language=en_US)

## Track Activity with a Consent Banner

First, design a banner in Salesforce CMS to use on all marketing landing pages. Then, select the banner in Setup and add the required integrations to your Marketing Landing Pages site. To track activity on a landing page that uses a custom domain, add a custom URL for that domain in Setup and define the path as `/lp`.

1. [Create and publish a consent banner in Salesforce CMS.](https://help.salesforce.com/s/articleView?id=mktg.mktg_content_create.htm&type=5&language=en_US)
2. Select the consent banner to use on landing pages.
    
    1. From Setup, in the Quick Find box, enter Landing Pages, and select **Landing Page Tracking**.
    
    1. In the banner section, click **Select Banner**.
    
    1. Select a banner and save your work.
3. Add the required integrations to your Marketing Landing Pages site in Digital Experiences.
    1. From Setup, in the Quick Find box, enter All Sites, and select **All Sites** under Digital Experiences.
    2. Next to Marketing Landing Pages, select **Builder**.
        
        Marketing landing pages use the Experience Cloud Sites framework. This site operates behind the scenes. Don’t add content to it.
    3. Click **Settings** and select **Integrations**.
        
        ![Builder icons show Settings expanded on hover.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mktg_all-264-0-0-production-enus/e92be4e1-4bef-47a5-a11d-95f4ea1f7d7a/mktg_all/images/mktg_content_site_settings_icon.png)
    4. On the Data Cloud integration, click **Add to Site**, and enable it.
    5. On the Data Cloud Web Tracking Consent Banner integration, click **Add to Site**, and enable it.
    6. To apply the banner you selected to your landing pages, click **Publish**.

Any time you make changes to the banner, publish the Marketing Landing Pages site again in Experience Cloud. To test the banner on a real page, create a landing page and view it in a web browser.

## Enable Tracking Without a Consent Banner

To track activity without collecting consent, you can publish a code snippet to your landing pages.

1. From Setup, in the Quick Find box, enter All Sites, and then select **All Sites** under Digital Experiences.
2. Next to Marketing Landing Pages, select **Builder** from the Action column.
3. Set the Experience Builder security level to Relaxed CSP.
    1. Click **Settings**, and then select **Security & Privacy**.
    2. Click the Security Level dropdown menu and select **Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts**.
4. Click **Settings**, and then select **Integrations**.
5. Find the Data Cloud integration, click **Add to Site**, and enable it.
    
    Don’t install the Web Tracking Consent Banner for Data Cloud integration.
6. Click **Settings**, and then click **Advanced**.
7. Click **Edit Head Markup**. Copy this code and paste it into the Head Markup code block:
    
    `<script> document.dispatchEvent(         new CustomEvent('experience_interaction', {             bubbles: true,             composed: true,             detail: {                 name: 'set-consent',                 value: true,             },         })     ); </script>`
8. Save your work.
9. To begin tracking activity, click **Publish**.