Embed consents from Usercentrics directly into your website

Our Consent Management Platform enables you to embed consents with all their information directly into your website. This can be very helpful if you embed them into your privacy policy. This way you don't have to keep two versions (your privacy policy and your CMP) of your legally required information up to date, instead you can extract your information from our CMP directly into your website.

Embed "Select all consents" toggle in a page

To display a "Select all" box on your website where users can opt in and out of all your consents (except for the essential ones) you can use the following code:

<div class="uc-embed" uc-layout="2" uc-isselectall="true" uc-data="categoryName, description, toggle, toggleLabel"></div>

Embed categories in a page

You can choose to display only your categories with a toggle, so users can opt in and out of every consent in the respective category. To display your categories, use the following code:

<div class="uc-embed" uc-layout="2" uc-data="categoryName, description, toggle, toggleLabel"></div>

Embed single consent with detailed information in a page

We give you the option to embed all your consents with all the information directly into your website e.g. on your privacy policy page. You can choose which information you want to display to your users and if they should be able to change their consent status.

For a single consent with all available information use the following code:

<div class="uc-embed" uc-layout="1" uc-consent-name="Exact_Consent_Name" uc-data="processorNames, optInCheckboxWithLabel, optOutUrl, privacyPolicyUrl,  description, history, dataPurposes, dataScopes, dataAttributes"></div>

Replace Exact_Consent_Name with the Consentslug of your consent, e.g. Google Analytics Statistics if you want to display the consent for Google Analytics Statistics. You can find the Consentslug in your settings dashboard at the respective consent.

Open Privacy Settings with custom link

If you don't want to have our Privacy Button visible on all pages, you can open the Privacy Settings via a custom link. Just link it to this anchor tag:

#uc-corner-modal-show