Info
Content

Using a synchronous CMP code

We do not recommend using the synchronous integration as this will slow down the performance of your website. Please only use this method if the asynchronous integration does not work for you.

In some cases it can be necessary to use a synchronous version of the CMP code. In order to use the CMP code in this way, please use the following lines of code:

<script>
 window.gdprAppliesGlobally = false;
 window.cmp_id = XXX;
 window.cmp_params = '';
 window.cmp_host = 'consentmanager.mgr.consensu.org';
 window.cmp_cdn = 'cdn.consentmanager.mgr.consensu.org';
</script>
<link rel="stylesheet" href="https://consentmanager.mgr.consensu.org/delivery/cmp.min.css" />
<script type="text/javascript" src="https://consentmanager.mgr.consensu.org/delivery/cmp.min.js"></script>
<script type="text/javascript" src="https://consentmanager.mgr.consensu.org/delivery/cmp.php?id=XXX"></script>

Please make sure to replace “XXX” with the ID of your CMP.

Back to top