Integrating specific CMP with the Realtime Cookie Scanner
Please note that this feature is not yet available to clients and is currently in progress with a selected group of users.
Natively supported CMPs
The Realtime Cookie Scanner natively supports the following CMPs:
Didomi
OneTrust
Commanders Act (privacy module)
If you are using one of these CMPs, no additional configuration is required. You can stop here.
Using a non-supported CMP
If your CMP is not listed above, you can still integrate it very easily.
You only need to inform the scanner about the current consent status by calling a JavaScript function.
Simple integration
Call this function with the current consent status:
cact('cookieScanner.updateConsent', {
status: 'optout'
});When to call this function
You must call it:
once, as soon as you know the consent status on the page
then every time the consent status changes
Possible values for status
Use only these 4 values:
unset→ no choice has been made yetoptin→ all optional cookies are acceptedoptout→ all optional cookies are refusedmixed→ some categories are accepted, others are not
How to choose the correct status
If your CMP manages multiple categories (analytics, advertising, etc.), use this simple rule:
everything accepted →
optineverything refused →
optoutpartially accepted →
mixedno choice yet →
unset
The status must always reflect the actual consent state in your CMP.
Simple example
On page load
If the user has not made a choice yet:
If the user refuses
If the user accepts everything
If the user selects specific categories
Important
always use the real consent status
call the function on page load
call it every time the consent changes
Good to know
nothing else is required
no specific CMP integration is needed
the function can be called before or after the scanner is loaded
Summary
You only need to:
read the consent status from your CMP
call:
call it again whenever the consent changes
If you follow these steps, your CMP will be correctly handled by the Realtime Cookie Scanner.
Last updated
Was this helpful?