Custom Consent Categories
Add your own consent categories next to Functional, Analytics and Marketing, and use them on your website
Last updated About 7 hours ago
Every domain in Consent Studio starts with three standard consent categories: Functional, Analytics and Marketing. Functional is always on. With custom consent categories you can add your own categories next to these, for example "CRM and audience lists" or "Newsletter".
What custom consent categories are
A custom category has its own name and explanation in each language of your banner. A domain can have up to 30 custom categories in use. Archived categories don't count towards that limit.
You decide per category whether visitors get a switch for it in the banner:
With a switch: visitors give or refuse consent for the category in the banner, just like for the standard categories.
Without a switch: only your own website can grant the category, for example through a newsletter sign-up form. Accept all, Reject all and Save in the banner never change it.
A custom category records and signals the visitor's choice. It does not stop your own systems from processing data. Your form, CRM or mailing tool has to read the visitor's choice and act on it. This page explains how to read that choice on your website.
Requirements
Custom consent categories are a paid add-on per domain, and are included in Enterprise. See the pricing page for the current price.
Your domain needs to use the New engine. You can set this under Banner > Behaviour > Engine. Read more in How to switch to the New banner engine.
When you create your first custom category, you are asked to tick I agree to the extra cost on my subscription. The add-on stays on your subscription as long as the domain has at least one custom category that isn't archived. When you archive or delete the last one, the add-on is removed from your subscription. The period you already paid for is not refunded.
While a custom category is in use, the domain can't switch back to the Legacy engine.
Where to find your categories
Go to Consent > Categories. This page lists all categories, standard and custom, in the order the banner shows them. Drag the rows to change that order.
The list has these columns:
Category: the name of the category and its key.
Decides: the consent signals the category decides.
Show in banner: whether visitors get a switch for it.
Checked by default: whether the switch is already on when the banner opens.
You can also click a standard category to change its texts and whether it is checked by default. The key of a standard category is fixed, and a standard category can't be archived or deleted.
Create a custom category
Click New Category. The category has three tabs: General, Decisions and Usage.
General
Name and Explanation: fill these in for each language. The explanation appears under the category's switch in the banner.
Icon: only shown in the dashboard, to help you recognise the category.
Show in banner: whether visitors get a switch for this category.
Show in tracking technology overviews: only offered when the category has no switch in the banner. It is on by default.
Checked by default: whether the switch is already on when the banner opens. Check with your legal team before you turn this on.
Decisions (optional)
On this tab you choose which consent signals the category decides. If you select nothing, the category only controls its own switch, the content on your website marked with its key, and the consent log.
Google Consent Mode: every custom category is always sent to Google as its own consent type, under its key. A category can also take over
ad_storage,ad_user_data,ad_personalization,analytics_storageorpersonalization_storage. While IAB TCF is on, Google's own consent types can't be taken over.UET Consent Mode: a category can take over
ad_storagefor Microsoft UET once UET Consent Mode is switched on.Integrations: a category can take over a purpose of an integration that is switched on.
Each signal can belong to only one custom category.
Watch out: if a category has no switch in the banner but does decide signals, those signals stay denied until your website grants the category. This also applies to visitors who click Accept all.
Usage: the key
Every category has a key, for example crm_audiences. You use this key on your website. A key has 2 to 32 characters, uses only lowercase letters, digits and underscores, and starts with a letter.
You can change the key until the first visitor gives consent for the category. After that, the key is fixed.
Use a custom category on your website
After you add a category or change a key, copy the installation code again under Installation and update it on your website.
HTML
Add cs-require with the key to content or to a script, so it only loads after the visitor gives consent for the category:
<script type="text/plain" cs-require="crm_audiences">// runs only after consent for crm_audiences</script>Read more about this in Load sources only after consent.
JavaScript
Use window.consentStudio.api.consentState to read or change the choice. For a category with the key crm_audiences:
hasCrmAudiences()orhas('crm_audiences')checks whether consent is given.grantCrmAudiences()grants the category, for example when a visitor ticks the box in your newsletter form.denyCrmAudiences()denies the category.
You can also listen to the events consent-studio__updated__granted__crm_audiences and consent-studio__updated__denied__crm_audiences. See JavaScript: Window Events Overview for how the events work.
Forms
To send the visitor's choice along with a form, switch on Fill consent into form fields under Banner > Behaviour > Advanced. Then add these attributes to hidden fields in your form:
cs-value="crm_audiences"fills ingrantedordenied.cs-value="consent_id"fills in the visitor's consent ID.
Google Tag Manager
To make a tag wait for a custom category:
Open the tag and go to Advanced Settings > Consent Settings.
Choose Require additional consent for tag to fire.
Add the key of the category, for example
crm_audiences.
The Consent Studio template in Google Tag Manager doesn't set a default for custom consent types. If you installed Consent Studio with the template, add a Custom HTML tag on the Consent Initialization - All Pages trigger that sets the custom consent type to denied:
<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('consent', 'default', { 'crm_audiences': 'denied' });</script>Consent given on your website
Your website can grant a category before the visitor has answered the banner, for example through a newsletter form. That consent is stored as its own consent, with its own consent ID. The banner still asks the visitor about the other categories.
Custom categories elsewhere in the dashboard
You can place tracking technologies and processing activities in a custom category.
Launcher tags can wait for consent for a custom category.
A geotargeting rule can check a custom category by default.
The consent log, its export and the proof of consent record the choice for every custom category the visitor was shown.
Archive, restore or delete a category
You find these options in the Danger zone of the category.
Archive: visitors no longer see the category, and the code on your website no longer recognises its key. The signals it decided go back to the standard category that normally decides them. Content marked with its key stays hidden. You choose which category its tracking technologies move to. Launcher tags that wait for it stop firing.
Restore: the category comes back without a switch in the banner and without deciding any signals. Set these up again if you need them.
Delete: possible from one day after archiving, and only if no visitor has ever given consent for the category.
Was this helpful?
More in User Experience
Implicit consent explainedStill need help? Ask the team