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
Host URL data attribute should take precedence.
Mike Caoc69a703c7f61
diff --git a/src/tracker/index.js b/src/tracker/index.jsindex 333a61cdb..3728be0e9 100644--- a/src/tracker/index.js+++ b/src/tracker/index.js@@ -23,7 +23,7 @@const domain = attr(_data + 'domains') || '';const domains = domain.split(',').map(n => n.trim());const host =- '__COLLECT_API_HOST__' || hostUrl || currentScript.src.split('/').slice(0, -1).join('/');+ hostUrl || '__COLLECT_API_HOST__' || currentScript.src.split('/').slice(0, -1).join('/');const endpoint = `${host.replace(/\/$/, '')}__COLLECT_API_ENDPOINT__`;const screen = `${width}x${height}`;const eventRegex = /data-umami-event-([\w-_]+)/;