(function(w, d, n) { function setCookie(name, value, days) { var maxAge = days * 24 * 60 * 60; d.cookie = name + '=' + encodeURIComponent(value) + '; max-age=' + maxAge + '; path=/; SameSite=Lax'; } function getCookie(name) { var match = d.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)')); return match ? decodeURIComponent(match[1]) : null; } function isInIframe() { try { return window.self !== window.top; } catch (e) { // Cross-origin iframes throw when accessing window.top — treat as "in an iframe" return true; } } if (isInIframe()) { const thisScript = document.getElementById('x-c-script') if (window.parent.location.hostname === 'console.ceana.ai') { thisScript.textContent = ""; } else { thisScript.remove(); } return; } var script = document.currentScript; var cookie_id = (function() { var key = '_ceana_temp_uid'; var id = getCookie(key); if (!id) { id = crypto.randomUUID(); } setCookie(key, id, 1); return id; })(); var params = new URLSearchParams({ service_id: script.getAttribute('attr-pk'), cookie_id: cookie_id, document_referrer: d.referrer || d.referer || 'null', page_url: w.location.href, user_agent: n.userAgent, timestamp: 1787606269476 }); n.sendBeacon('/ceana-tracking/collect?' + params.toString()); document.getElementById('x-c-script').remove(); })(window, document, navigator);