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
fix referrer domain on tracker load
Francis Cao65691f59126b
diff --git a/tracker/index.js b/tracker/index.jsindex dd43eb172..f5765dc79 100644--- a/tracker/index.js+++ b/tracker/index.js@@ -72,6 +72,12 @@let currentPageTitle = document.title;let cache;+ if (currentRef.substring(0, 4) === 'http') {+ if ((currentRef = currentRef.split('/')[2].split(':')[0] === hostname)) {+ currentRef = '/' + currentRef.split('/').splice(3).join('/');+ }+ }+/* Collect metrics */const getPayload = () => ({