diff --git a/plugins/cookieconsent.client.ts b/plugins/cookieconsent.client.ts index 40ab880c99..ece5335432 100644 --- a/plugins/cookieconsent.client.ts +++ b/plugins/cookieconsent.client.ts @@ -41,7 +41,7 @@ export default defineNuxtPlugin(nuxtApp => { }; const enabledMarketing = () => { - var script = document.createElement('script'); + const script = document.createElement('script'); script.src = 'https://cdn.cr-relay.com/v1/site/a52e9652-1bdf-4c6b-9ef0-06edf432aeef/signals.js'; script.async = true; window.signals = Object.assign( @@ -56,7 +56,12 @@ export default defineNuxtPlugin(nuxtApp => { ); document.head.appendChild(script); + const reoScript = document.createElement('script'); + reoScript.text = "!function(){var e,t,n;e=\"d6e8ccb6fd045f8\",t=function(){Reo.init({clientID:\"d6e8ccb6fd045f8\"})},(n=document.createElement(\"script\")).src=\"https://static.reo.dev/\"+e+\"/reo.js\",n.async=!0,n.onload=t,document.head.appendChild(n)}();"; + document.head.appendChild(reoScript); + cookieConsent.loadScript('https://opps-widget.getwarmly.com/warmly.js?clientId=088e34e198e5f9dc0b0a4d37ad873a46',{defer: "defer"}); + return cookieConsent.loadScript('https://js-eu1.hs-scripts.com/27220195.js',{defer: "defer"}); };