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.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Code cleanup.
Mike Cao4de884010a5b
diff --git a/src/tracker/index.js b/src/tracker/index.jsindex e0c036894..c17a76e8d 100644--- a/src/tracker/index.js+++ b/src/tracker/index.js@@ -54,7 +54,7 @@const parseURL = url => {try {// use location.origin as the base to handle cases where the url is a relative path- const { pathname, search, hash } = new URL(url, location.origin);+ const { pathname, search, hash } = new URL(url, origin);url = pathname + search + hash;} catch (e) {/* empty */