AriWeissman
Director of UX

CMP Stub

How can I determine if a CMP is installed on a page?

--


Ari Weissman
Sr Director of UX & Community

## If I’ve helped, accept this response as a solution so that other’s can find is more quickly in the future.
## Have thoughts on Crownpeak products? We'd love to hear them. Speak with the Crownpeak Product Team..

0 Kudos
1 Reply
AriWeissman
Director of UX

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

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

--


Ari Weissman
Sr Director of UX & Community

## If I’ve helped, accept this response as a solution so that other’s can find is more quickly in the future.
## Have thoughts on Crownpeak products? We'd love to hear them. Speak with the Crownpeak Product Team..

0 Kudos