Step 5 - Enabling Redisplay of the Consent Form

For compliance with EU law and IAB policies, users must have an opportunity to modify or revoke their consents.  The CMP JS supports this with a command called “renderConsents”. To re-prompt the user, call the following command.

window.__cmp('renderConsents', callback);

The callback argument is optional.  If provided, 2 arguments will be passed to the callback function after the user has updated their consent preferences.  The callback function signature is shown below, where consentString is the base64 encoded IAB consent string and success is a boolean specifying whether the consent capture flow was completed successfully.

function callback(consentString, success) {}


Continue to Alternative options for including CMP JS.

Have more questions? Submit a request