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
Add guard around location redirect.
Mike Cao99c8752aa5f9
diff --git a/package.json b/package.jsonindex 35200b719..92291b8da 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "umami",- "version": "1.39.0-beta.1",+ "version": "1.39.0-beta.2","description": "A simple, fast, privacy-focused alternative to Google Analytics.","author": "Mike Cao <[email protected]>","license": "MIT",diff --git a/tracker/index.js b/tracker/index.jsindex 100fd24ab..3edca438a 100644--- a/tracker/index.js+++ b/tracker/index.js@@ -143,7 +143,10 @@) {e.preventDefault();trackEvent(name).then(() => {- location.href = get('href');+ const href = get('href');+ if (href) {+ location.href = href;+ }});} else {trackEvent(name);