Skip to main content

Changing the language of the banner based on the URL

Comments

1 comment

  • Mediaus srl

    I have a problem with the cookie Declaration script: it does not work.

    Probably the right version is:

    <script>(function(de,cl,ar,at,i,o,n){
    var a=de.createElement(at),b=[/^\/([a-z]{2})([_-][a-z]{2})?(\/.*)?$/g.exec(cl),
    /^([a-z]{2})\./.exec(ar),/\.([a-z]{2,})$/.exec(ar)],c={au:"en",ca:"en",cz:"cs",dk:
    "da",ee:"et",no:"nb",se:"sv",uk:"en"},d=de.scripts,e=d[d.length-1],f=0;for(f of b){
    b=f?f[1]:n;if(f)break}b=b.length!=2?o:b;b=c[b]?c[b]:b;a.id=i;a.async=!0;a.src=
    "https://consent.cookiebot.com/"+o+"/cd.js";a.setAttribute("data-culture",b);e.
    parentNode.insertBefore(a,e)})(document,location.pathname,location.hostname,"script"
    ,"CookieDeclaration","00000000-0000-0000-0000-000000000000","en")
    </script>

     

     

    0

Please sign in to leave a comment.