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): Correctly extract pathname

Aldo Románe8da04bebebc
diff --git a/src/tracker/index.js b/src/tracker/index.js
index 4189abf64..dd125c823 100644
--- a/src/tracker/index.js
+++ b/src/tracker/index.js
@@ -42,9 +42,7 @@
};
};
- const getPath = url => {
- new URL(url).pathname;
- };
+ const getPath = url => new URL(url).pathname;
const getPayload = () => ({
website,