function getConsentCookie() { var value = "; " + document.cookie; var parts = value.split("; " + 'CookieInformationConsent' + "="); if (parts.length == 2){ var cookieValue = decodeURIComponent(parts.pop().split(";").shift()); var obj = JSON.parse(cookieValue); return obj['website_uuid']; }else{ return 'Consent Cookie not present'; }}document.write(getConsentCookie());
Did this answer your question?