/
How can I test the implementation of the Usercentrics CMP locally? (V1 and V2)
Usercentrics - PUBLIC
How can I test the implementation of the Usercentrics CMP locally? (V1 and V2)
V2
No adjustments are required for Version 2. You can simply implement our script as usual in your local environment:
V1
There are two possibilities:
Use 127.0.0.1 as the address instead of localhost.
Or adapt our script as follows and remember to replace XXXXXXXX with your Settings-ID:
<script type="text/javascript"> window["usercentrics"] = {paths: { "bundle": "https://app.usercentrics.eu/latest/bundle.js", "iabIframe": "https://usercentrics.mgr.consensu.org/sit/consensuIframeIndex.html", "crossDomainConsentSharingIFrame": "https://app.usercentrics.eu/latest/cdcs-iframe-index.html" }, settingsId : 'XXXXXXXX'} </script>
Both variations are very similar.
The advantage of the second option is that you can use different versions of:
"bundle": "https://app.usercentrics.eu/latest/bundle.js",
"iabIframe": "https://usercentrics.mgr.consensu.org/sit/consensuIframeIndex.html",
"crossDomainConsentSharingIFrame": "https://app.usercentrics.eu/latest/cdcs-iframe-index.html"
By loading the URL at the positions…/sit/…, …/latest/…. . This allows you to test different versions of the technology.
The standard binding, on the other hand, harmonizes the versions that are loaded, since you can only adjust the link https://app.usercentrics.eu/latest/main.js" id="XXXXXXX" there.
Do you need further help?
How can I get help with technical questions?
Related content
Is it possible to test the CMP's Javascript on a Staging Server located in a different domain than the one registered for Usercentrics?
Is it possible to test the CMP's Javascript on a Staging Server located in a different domain than the one registered for Usercentrics?
More like this
Can I test the Usercentrics JavaScript on a staging server that's on a different domain?
Can I test the Usercentrics JavaScript on a staging server that's on a different domain?
More like this
How can I programmatically skip the CMP when running automated tests (CMP Version 2)?
How can I programmatically skip the CMP when running automated tests (CMP Version 2)?
Read with this
Wie kann ich die Implementierung der Usercentrics CMP lokal testen? (V1/V2)
Wie kann ich die Implementierung der Usercentrics CMP lokal testen? (V1/V2)
More like this
How can I test if the Smart Data Protector (SDP) is blocking technologies?
How can I test if the Smart Data Protector (SDP) is blocking technologies?
Read with this
How do I test the implementation of the Usercentrics CMP with DevTools?
How do I test the implementation of the Usercentrics CMP with DevTools?
More like this
Usercentrics - PUBLIC