/
Integration of the CMP into the website

Integration of the CMP into the website


The CMP is installed via a Javascript. The script tag is structured according to the following pattern. The XXXXXXX is replaced by the respective settings ID. The CMP can be integrated either directly into the page or via a TagManager:

 

CMP v1:

<script type="application/javascript" src="https://app.usercentrics.eu/latest/main.js" id="XXXXXXX"></script>

 

CMP v2:

There are two different scripts for the CMP v2, depending on which browsers are to be supported. The "modern" script tag has a smaller script size and therefore improved performance:

Modern:

<script id="usercentrics-cmp" data-settings-id="XXXXXX" src="https://app.usercentrics.eu/browser-ui/latest/bundle.js" defer></script>

Legacy:

<script id="usercentrics-cmp" data-settings-id="XXXXXX" src="https://app.usercentrics.eu/browser-ui/latest/bundle_legacy.js" defer></script>

 

CMP v2 Browser SDK:

The installation of a Browser SDK - CMP is always individual.

 

Browser Support:

CMP v2 Modern (full Support)

CMP v2 Legacy & CMP v1

CMP v2 Browser SDK

CMP v2 Modern (full Support)

CMP v2 Legacy & CMP v1

CMP v2 Browser SDK

Chrome

Chrome: 37+

Individuell

Edge

Edge: 15+

Firefox

Firefox: 41+

Opera

Opera 31+

Safari

Safari 11+

 

Internet Explorer 11+

 

Yandex 17.6+

 

Deactivate automatic updates:

By default, the latest version of the Usercentrics script is always used. In v1, this can lead to the design of the CMP being damaged by an update. To prevent this, automatic updates can be deactivated by retrieving the script from another folder according to the version number and not "latest". Example:

<script type="application/javascript" src="https://app.usercentrics.eu/2.2.0/main.js" id="XXXXXXX"></script>

 

 

Related content