Newer Version Available
Configure the Consent Opt-In Default
| User Permissions Needed | |
|---|---|
| To create an Experience Cloud site: | Create and Set Up Experiences AND View Setup and Configuration |
| To customize an Experience Cloud site: |
|
| To publish an Experience Cloud site: |
|
Not all website visitors and customers consent to cookie tracking. With Experience Tag Manager, you can configure whether customers opt in or opt out of tracking. After a user provides consent, and the consent info is passed to your site, Experience Cloud respects the consent preference by sending or not sending data. Any engagement event triggered before a user provides consent is ignored. We recommend using a consent management provider (CMP) application to help manage your consent options.
Tag Manager listens for a specific interaction event called set-consent to capture user consent. Consent is stored as long as the session is active and the page isn’t reloaded. Every time the page is refreshed the consent value must be sent through the set-consent event.
- From Setup, in the Quick Find box, enter Digital Experiences, click Digital Experiences, and then click Settings.
- Select Security & Privacy.
- Under Security Level, select Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts.
- When you’re prompted, allow the change.
- Navigate back to Settings and select Advanced.
-
Click Edit Head Markup and add this script to the
existing code.
- Save your changes and publish your site.
If you’re using a CMP, follow the steps above with the following script and include your CMP’s API as the value attribute.
You can remove user consent by triggering an interaction event with no value specified.