mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-04 20:02:26 +00:00
Restore Umami automatic tracking
This commit is contained in:
1 parent
77936e7656
commit
6c6641c961
1 file changed
+1
-2
+1
-2
@@ -74,8 +74,7 @@ export function ensureAnalyticsLoaded(doc = typeof document !== "undefined" ? do
|
||||
script.src = ANALYTICS_CONFIG.scriptSrc;
|
||||
script.setAttribute(SCRIPT_ATTR, SCRIPT_IDENTIFIER);
|
||||
script.dataset.websiteId = ANALYTICS_CONFIG.websiteId;
|
||||
// 🔧 merged conflicting changes from codex/add-tracking-script-to-all-pages vs unstable
|
||||
script.dataset.autoTrack = "false";
|
||||
// Allow Umami to handle automatic pageview tracking by default.
|
||||
script.addEventListener("load", () => {
|
||||
scriptLoadedOnce = true;
|
||||
flushPendingCalls();
|
||||
|
||||
Reference in new issue
Block a user