This commit is contained in:
Robert S. 2025-11-27 14:45:42 +01:00 committed by GitHub
commit 2b0097d8f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,6 +25,7 @@
const tag = attr(_data + 'tag') || undefined;
const autoTrack = attr(_data + 'auto-track') !== _false;
const dnt = attr(_data + 'do-not-track') === _true;
const debug = attr(_data + 'debug') === _true;
const excludeSearch = attr(_data + 'exclude-search') === _true;
const excludeHash = attr(_data + 'exclude-hash') === _true;
const domain = attr(_data + 'domains') || '';
@ -159,6 +160,10 @@
if (!payload) return;
if (debug) {
console.log(`Umami Analytics Debug:`, { type, payload });
}
try {
const res = await fetch(endpoint, {
keepalive: true,