Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

revert tracker double init logic

Francis Cao3a31ad35b04b
diff --git a/src/tracker/index.js b/src/tracker/index.js
index 2c15046ee..85ad2ffea 100644
--- a/src/tracker/index.js
+++ b/src/tracker/index.js
@@ -27,10 +27,6 @@
const config = value => attr(`${_data}${value}`);
const website = config('website-id');
-
- if (!window.__umami_tracker_loaded) window.__umami_tracker_loaded = new Set();
- if (window.__umami_tracker_loaded.has(website)) return;
- window.__umami_tracker_loaded.add(website);
const hostUrl = config('host-url');
const beforeSend = config('before-send');
const tag = config('tag') || undefined;
@@ -185,7 +181,6 @@
...(typeof cache !== 'undefined' && { 'x-umami-cache': cache }),
},
credentials,
- priority: 'low',
});
const data = await res.json();