Digital Governance
cancel
Showing results for 
Search instead for 
Did you mean: 

Consent Solutions Knowledge Base

CMP Stub console check

Users can determine if CMP is installed on the page by entering the following code within the browser console.

(Note - CMP stands for Consent Management Platform. This is related to the IAB release for Universal Consent Platform.)

window.__cmp('getVendorConsents', null, function () { console.log(arguments[0]); });


if the user has consented, the code will output in the console the consent information.

If the user hasn't made a choice yet, then the console will not output anything.

User-added image

User-added image

Labels (1)
Version history
Revision #:
1 of 1
Last update:
‎04-22-2019 08:21 AM
Updated by:
 
Contributors
Looking for more?
Ask in Discussions
Developers

Peer-to-peer support  and answers on developing CMS templates, modifying privacy scripts or building integrations.

Digital Experience Management

Find answers and ask questions on content management, personalization and targeting.

Digital Quality Management

Find answers and ask questions on WCAG and SEO quality management.

Digital Governance

Find answers and ask questions on consent and monitoring solutions.