Embedding a Unified Consent Prompt

  • Updated

Embedding a Consent Prompt is a quick process with just three steps. Before getting started, ensure you’ve set up your preference hub. If not, follow the steps for creating a consent prompt before proceeding. 

 

Steps to complete

  1. Confirm all valid domains are added and publish the configuration
  2. Retrieve the code snippet to insert in the body of the website page
  3. Paste the Consent Security Policy (CSP) and Javascript SDK code into the head of your website

 

Step 1: Configure Your Domains & Publish

Add Valid Domains:
In your configuration settings, make sure that all relevant domains and subdomains where the Preference Center will be displayed are added.

 

 

 

Save and Publish:
Once all domains are configured, click "Save" and then hit the "Publish" button in the top corner of the page.

UC_publish_getcode.png

 

Step 2: Retrieve the Code Snippets

Get the Code Snippets:
Click the "Get Code" button in the top right of the configuration page. This will provide you with the necessary code snippets for embedding the consent prompt.

 

 

 

Copy to Clipboard:
Use the "Copy to clipboard" buttons to easily copy the embed code and JavaScript SDK code.

 

Step 3: Embed the Code in Your Website

Embed the iFrame:
Paste the code snippet into the body of the page where you want users to be prompted for consent.

 

Insert JavaScript SDK:
Copy the provided JavaScript SDK link from the "Get Code" popup. Insert them into the <head> section of your website.

 

Final Step: Publish to Your Website

Once the code is embedded and the necessary settings are in place, publish your website. Your consent prompt is now live.