DG and Privacy UX
Showing results for 
Show  only  | 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)