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
Update index.js
Ondřej Vacek36119f4cb474
diff --git a/tracker/index.js b/tracker/index.jsindex e248f906d..a30a02204 100644--- a/tracker/index.js+++ b/tracker/index.js@@ -17,7 +17,7 @@ import { post, hook, doNotTrack } from '../lib/web';if (!script || (__DNT__ && doNotTrack())) return;const website = script.getAttribute('data-website-id');- const hostUrl = new URL(script.src).href.replace(/\/umami\.js$/,'');+ const hostUrl = new URL(script.src).href.split('/').slice(0, -1).join('/');const screen = `${width}x${height}`;const listeners = [];