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.

fix(tracker): Respect excludeSearch consistently

Cedric0225e63abcf1
diff --git a/src/tracker/index.js b/src/tracker/index.js
index 438c08d2a..cc6b8dbbf 100644
--- a/src/tracker/index.js
+++ b/src/tracker/index.js
@@ -7,7 +7,7 @@
document,
history,
} = window;
- const { hostname, pathname, search } = location;
+ const { hostname, href } = location;
const { currentScript, referrer } = document;
if (!currentScript) return;
@@ -244,7 +244,7 @@
};
}
- let currentUrl = `${pathname}${search}`;
+ let currentUrl = parseURL(href);
let currentRef = referrer !== hostname ? referrer : '';
let title = document.title;
let cache;