Termly periodically updates the format of its CMP embed scripts in order to add new functionality. This means that the code used to embed the CMP on your website may change over time. In this article, we will explain the different versions of the embed script and the functionality that is available with each one.
Current Embed Script
Version 2023
The current version of Termly's CMP embed script is the most advanced yet. It has been updated to enable more compliance frameworks and to give you more control over how the banner works directly from your Termly Dashboard.
Format:
<script type="text/javascript" src="https://app.termly.io/resource-blocker/YOUR-WEBSITE-UUID?autoBlock=on"></script>
Supported functionality:
AutoBlocker
IAB TCF
Consent Mode with Advanced configuration in the dashboard
How to Update to the Latest Version
If you are currently using an older version of the embed script, we highly recommend updating to the latest version. This will ensure that your website is compliant with the latest privacy laws and regulations and give you access to all functionality available in the Dashboard.
To update, simply replace the old embed script with the new one on your website.
If you use the WordPress plugin or GTM Template to install Termly, make sure you are using the latest version of the respective product.
Previous Embed Scripts
Version 2021
Format:
<script type="text/javascript" src="https://app.termly.io/embed.min.js" data-auto-block="on" data-website-uuid="YOUR-WEBSITE-UUID" > </script>
Supported functionality:
AutoBlocker
Consent Mode without Advanced configuration in the dashboard
Version 2020
Format:
<script> (function () { var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://app.termly.io/embed.min.js'; s.id = 'YOUR-WEBSITE-UUID'; s.setAttribute("data-name", "termly-embed-banner"); var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); })(); </script>
Supported functionality:
Consent Mode without Advanced configuration in the dashboard