Hello, I am trying, for the GDPR "Explicit Consent Prompt" and "Consent Preferences Dialog" to override the user's browser's language preferences with the page HTML's lang attribute (accessible via JS: document.documentElement.lang and I see in the docs we should use this script to override the language preference: window.utag_cfg_ovrd = window.utag_cfg_ovrd || {}; window.utag_cfg_ovrd.gdprDLRef = "<some data layer var e.g. meta.lang/page_lang>"; it, unfortunately, doesn't seem to work for me. So far I have tried: window.utag_cfg_ovrd = window.utag_cfg_ovrd || {};
window.utag_cfg_ovrd.gdprDLRef = document.documentElement.lang; but also: window.utag_cfg_ovrd = window.utag_cfg_ovrd || {};
window.utag_cfg_ovrd.gdprDLRef = "fr"; or: window.utag_cfg_ovrd = window.utag_cfg_ovrd || {};
window.utag_cfg_ovrd.gdprDLRef = '<html lang="fr">'; none seem to be working for me, what am I missing? I am thinking I am maybe adding it to the wrong place? So far I was adding it to the Explicit Consent Prompt JS. Thanks!
... View more