(function () { function sendEvent(eventType, key,data = {}) { fetch("https://www.osm-sa.com.ar/api/v1/system/track", { method: "POST", headers: { "Content-Type": "application/json", "x-api-key": '8c001d82-aa1e-494c-97c5-b785fe24901d' }, body: JSON.stringify({ event_type:eventType, key:key, data:data, url: window.location.href, referrer: document.referrer, useragent: navigator.userAgent, language: navigator.language }) }).catch(e => console.error("Tracking error:", e)); } sendEvent("page_view"); window.trackEvent = sendEvent; })();