Over the years Usercentrics CMP has gone though a multitude of updates. Some of these are minor updates and patches and don't require any action on your part and will be applied automatically.
However, there have also been a few major updates that require you to change the Usercentrics CMP script on your website.
There have currently been 3 versions of Usercentrics CMP, version 3 being the latest.
You should always strive to use the latest version of any software, your CMP included.
Figuring out what version you're using
It may not be immediately obvious to you which version of the CMP you have implemented on your website.
You can tell which version of the CMP you're currently using by looking at the src
attribute of the Usercentrics script.
Here's an overview of the major versions and their respective CMP attributes:
version | src |
1 | app.usercentrics.eu/latest/main.js |
2 | app.usercentrics.eu/browser-ui/latest/loader.js |
3 | web.cmp.usercentrics.eu/ui/loader.js |
Alternatively, you can run this script in the console (F12 in most browsers) when you're visiting your website:
document.querySelectorAll("script[src*='usercentrics.eu']").forEach(e => {
const version = /web\.cmp\.usercentrics\.eu\/ui\/loader\.js$/.test(e.src) ?
3 : /app\.usercentrics\.eu\/browser-ui\/latest\/loader\.js$/.test(e.src) ?
2 : /app\.usercentrics\.eu\/latest\/main\.js$/.test(e.src) ? 1 : false;
if (!version) return
console.log(`You're currently running Usercentrics v${version}`);
})
You should see a result similar to this:
Getting to the newest version
Regardless on whether you're currently running version 1 or version 2, updating to the newest version of Usercentrics CMP can be done by replacing your current CMP script with the following (v3) script:
<script
id="usercentrics-cmp"
src="https://web.cmp.usercentrics.eu/ui/loader.js"
data-settings-id="xxxxxx"
async
></script>
Remember to replace the value of data-settings-id
with your own settings id.
Comments
0 comments
Please sign in to leave a comment.