Restore Umami automatic tracking

This commit is contained in:
thePR0M3TH3AN committed 2025-09-25 11:48:31 -04:00
1 parent 77936e7656
commit 6c6641c961
1 file changed
+1 -2
+1 -2
View File
@@ -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();