(async() => { let clickId = getCookie("cookie-less"); if (!clickId || clickId === '') clickId = "a1b7d969-e5d4-45cf-8078-68b100cd622d"; const expires = (new Date(Date.now() + 30 * 86400 * 1000)).toUTCString(); document.cookie = "cookie-less" + '=' + clickId + '; expires=' + expires + 86400 + ';path=/'; const data = { url: window.location.href, referrer: document.referrer, unique_id: clickId, }; await fetch("https://cookie-less.org" + "/cookiless", { method: 'POST', body: JSON.stringify(data), headers: { 'Content-Type': 'application/json', }, }); function getCookie(cname) { const name = cname + '='; const ca = document.cookie.split(';'); for (let i = 0; i < ca.length; i++) { let c = ca[i]; while (c.charAt(0) === ' ') { c = c.substring(1); } if (c.indexOf(name) === 0) { return c.substring(name.length, c.length); } } return ''; } })();