This commit is contained in:
a2a-platform
2026-06-13 11:21:03 +00:00
parent 1a1e8db145
commit abb3497ff8
2 changed files with 2 additions and 2 deletions

View File

@@ -22,11 +22,11 @@ export function PageLoadTracker({ locale }) {
if (navigator.sendBeacon) {
const blob = new Blob([body], { type: "application/json" });
navigator.sendBeacon("/api/page-load", blob);
navigator.sendBeacon("/track/page-load", blob);
return;
}
fetch("/api/page-load", {
fetch("/track/page-load", {
method: "POST",
headers: { "content-type": "application/json" },
body,