Info
Content

Using a synchronous CMP code

This feature is deprecated and will be removed in the future. Please do not use this code version.

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 = 'delivery.consentmanager.net';
 window.cmp_cdn = 'cdn.consentmanager.net';
</script>
<link rel="stylesheet" href="https://cdn.consentmanager.net/delivery/cmp.min.css" />
<script type="text/javascript" src="https://cdn.consentmanager.net/delivery/cmp.min.js"></script>
<script type="text/javascript" src="https://delivery.consentmanager.net/delivery/cmp.php?id=XXX"></script>

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

Back to top