deploy
This commit is contained in:
@@ -22,11 +22,11 @@ export function PageLoadTracker({ locale }) {
|
|||||||
|
|
||||||
if (navigator.sendBeacon) {
|
if (navigator.sendBeacon) {
|
||||||
const blob = new Blob([body], { type: "application/json" });
|
const blob = new Blob([body], { type: "application/json" });
|
||||||
navigator.sendBeacon("/api/page-load", blob);
|
navigator.sendBeacon("/track/page-load", blob);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch("/api/page-load", {
|
fetch("/track/page-load", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "content-type": "application/json" },
|
headers: { "content-type": "application/json" },
|
||||||
body,
|
body,
|
||||||
|
|||||||
Reference in New Issue
Block a user