This script must be included natively. If it is included using f:asset.script, there will be an issue with the data-settings-id, which will not be correctly loaded for subsequent scripts. const script = document.createElement('script'); script.id = 'usercentrics-cmp'; script.nonce = '{f:security.nonce()}'; script.setAttribute('data-settings-id', '{settings.usercentricsSettingsId}'); script.setAttribute('data-language', '{site.hreflang}'); script.async = true; script.type = 'text/javascript'; script.src = 'https://web.cmp.usercentrics.eu/ui/loader.js'; document.head.appendChild(script); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','{settings.globalGoogleTagManagerId}'); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','{countryGoogleTagManagerId.0.data.google_tag_manager_id}'); window.lazySizesConfig = window.lazySizesConfig || {}; window.lazySizesConfig.init = false; let html_node = document.getElementsByTagName("html")[0]; html_node.className = html_node.className.replace( /(?:^|\s)no-js(?!\S)/g , ' js');