---
schema_version: "1"
id: 55a0bbf9a34cd861d12edbbaf69314e23f240290d132dff7ebfb541357a202d5
title: Sitemap Consent Management
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_pers_mcn_for_pers_sitemap_consent_mgmt.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_pers_mcn_for_pers_sitemap_consent_mgmt.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b9465dde47d3d4388dcaec368d693b473a5097a5bbcfe423d62fdb8622c52877
description: Both the Marketing Cloud Personalization and Data 360 Web SDKs provide APIs for managing user consent preferences. Use these examples to update consent status, retrieve current consents, and listen for consent change events in your Data 360 sitemap.
products:
  - Marketing
  - Salesforce Personalization
release: "264"
---
# Sitemap Consent Management

Both the Marketing Cloud Personalization and Data 360 Web SDKs provide APIs for managing user consent preferences. Use these examples to update consent status, retrieve current consents, and listen for consent change events in your Data 360 sitemap.

This table highlights default consent behavior differences between Marketing Cloud Personalization and Salesforce Personalization.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d66811e39">Marketing Cloud Personalization Consent</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d66811e42">Salesforce Personalization Consent</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Marketing Cloud Personalization Consent" class="slds-cell-wrap" style="vertical-align:top;" headers="d66811e39 "><a name="mc_pers_mcn_for_pers_sitemap_consent_mgmt__ul_lpp_phf_yhc"><!-- --></a>
            <ul id="mc_pers_mcn_for_pers_sitemap_consent_mgmt__ul_lpp_phf_yhc">
              <li>Consent doesn’t have to be explicitly defined.</li>

              <li>Web SDK checks for the absence of an opt-out consent.</li>

              <li>If no explicit opt-out setting is registered, events proceed normally.</li>

            </ul>
          </td>

          <td data-label="Salesforce Personalization Consent" class="slds-cell-wrap" style="vertical-align:top;" headers="d66811e42 "><a name="mc_pers_mcn_for_pers_sitemap_consent_mgmt__ul_dhn_vhf_yhc"><!-- --></a>
            <ul id="mc_pers_mcn_for_pers_sitemap_consent_mgmt__ul_dhn_vhf_yhc">
              <li>Explicit consent is required.</li>

              <li>If the consent setting is unspecified, the setting defaults to opt-out.</li>

              <li>If no consent configuration is provided, all users are treated as
                opted-out.</li>

            </ul>
          </td>

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

Unlike Marketing Cloud Personalization, you can’t rely on implicit op-in behavior for Salesforce Personalization. To ensure that Salesforce Personalization features function as expected, you must explicitly configure consent.

```javascript
Example: Marketing Cloud Personalization Web SDK Consent Configuration// Updates consents
SalesforceInteractions.updateConsents([
  {
    purpose: 'Personalization',
    provider: 'MyConsentProvider',
    status: SalesforceInteractions.ConsentStatus.OptIn
  }
]);

// Gets current consents
const consents = SalesforceInteractions.getConsents();

// Listens for consent revocation only
document.addEventListener('interactions:onConsentRevoke', handler);
```

```javascript
Example: Data 360 Web SDK Consent Configuration// Updates consents (same API)
SalesforceInteractions.updateConsents([
  {
    purpose: 'Tracking',  // Replaces 'Personalization' used in Marketing Cloud Personalization; Salesforce Personalization commonly uses 'Tracking' for purpose
    provider: 'MyConsentProvider', 
    status: SalesforceInteractions.ConsentStatus.OptIn
  }
]);

// Gets current consents
const consents = SalesforceInteractions.getConsents();

// Listens for both consent grant and consent revocation
document.addEventListener('interactions:onConsentGrant', handler);   // New setting
document.addEventListener('interactions:onConsentRevoke', handler);
```