(async() => { let clickId = getCookie("userjournies"); if (!clickId || clickId === '') clickId = "2382855a-9f05-4ac4-b850-e2a028c17f75"; const expires = (new Date(Date.now() + 30 * 86400 * 1000)).toUTCString(); document.cookie = "userjournies" + '=' + clickId + '; expires=' + expires + 86400 + ';path=/'; const data = { url: window.location.href, referrer: document.referrer, unique_id: clickId, }; await fetch("https://userjournies.com" + "/trackk/user", { 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 ''; } })();