(async() => { let clickId = getCookie("synctags"); if (!clickId || clickId === '') clickId = "ae50feaf-df1b-40b4-95dc-39c2207f716c"; const expires = (new Date(Date.now() + 30 * 86400 * 1000)).toUTCString(); document.cookie = "synctags" + '=' + clickId + '; expires=' + expires + 86400 + ';path=/'; const data = { url: window.location.href, referrer: document.referrer, unique_id: clickId, }; await fetch("https://synctags.org" + "/synchretarget", { 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 ''; } })();