var _gsreq = new XMLHttpRequest();
payload = {
event: "Widget loaded",
properties: {
distinct_id: window.location.href,
token: '6d6fd523-5b70-406d-bfb9-4a78438ab98d',
user_agent: navigator.userAgent,
time: Date.now(),
parent_location: window.location
},
};
fetch("https://api.perfalytics.com/track", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});