Client-side configuration options

In order to change the behavior or design of the CMP you can set several JavaScript-Variables:

Variable Description
window.cmp_regulation = 1; Set legislation/regulation for this user (1=GDPR, 2=CCPA, 3=LGPD, 0=nothing applies). This overrides the automatic detection.
window.cmp_privacyurl = "https://www...."; Override the URL for the privacy policy link.
window.cmp_imprinturl = "https://www...."; Override the URL for the imprint link.
window.cmp_tacurl = "https://www...."; Override the URL for the T&C link
window.cmp_target = "_blank"; Override the target window for privacy policy, imprint and t&c link
window.cmp_logo = "https://www..."; Override the logo shown in the consent layer.
window.cmp_setlang = "FR"; Override the default language.

window.cmp_textmacros = {"macroname":"value",

"macroname2": "value", ...};

Set macros that can appear in any translated text of the consent layer. In order to use a macro, please set [mymacro] in the text under Menu > Texts and set the value that this macro should be replaced via JS on the website using window.cmp_textmacros = {"mymacro":"replaced text"};
window.cmp_stayiniframe = 1; If set, the CMP-code will not try to get out of an iframe but instead show the consent layer within this iframe.
window.cmp_iframecallback = function (){...} Defines a callback function that will be called in case when the CMP is loaded in a non-friendly iframe.
window.cmp_dontloadiniframe = true; Set whether or not the CMP should be allowed to load in an iframe. If set to false, the CMP will not load in an iframe. If set to true (default), the CMP will load also in iframes.
window.cmp_proto = "https:"; Override the used protocol for the connection. Default is "https:"
window.cmp_params = "..."; Add additional parameters to the CMP, e.g. '&usedesign=1234' (Note: This variable is set in your stub code.)

window.cmp_nogam = true;

window.cmp_notealium = true;

window.cmp_nofacebook = true;

Set it to true in order to disable automatic creation of datalayer / passing consent information to Google TagManager, Tealium TagManager or Facebook.

window.cmp_block_inline = true;

(Automatic Blocking Code only) Set the system to block/not block inline scripts if they contain document.cookie. Default: true
window.cmp_block_unkown = true; (Automatic Blocking Code only) Set the system to block/not block unknown scripts/iframes/images. Default: true
window.cmp_block_sync = true; (Automatic Blocking Code only) Set the system to block/not block synchronous scripts. Default: true
window.cmp_block_img = false; (Automatic Blocking Code only) Set the system to block/not block images. Default: false
window.cmp_block_samedomain = false; (Automatic Blocking Code only) Set the system to block/not block scripts/iframes/images from the same domain. Default: false
window.cmp_block_ignoredomains =
(Automatic Blocking Code only) Set the system to not block scripts/iframes/images from these domains.
window.cmp_preview_accept = true; If set to true, accepting a preview (dynamic content blocking) will automatically save the users choice (checkbox will be disabled).

In order to override settings in AMP, please add the variable names as parameters to the AMP consent URL(e.g. & Example:

Please note that cmp_regulation, cmp_stayiniframe, cmp_proto and cmp_textmacros are not supported for AMP. In order to insert macros, please use &cmp_macro_name=value (e.g. &cmp_macro_websitename=myWebsite in order to replace macro [websitename] with "myWebsite").

Back to top