Skip to content

armgit / umami

Public Imported from GitHub
0

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.

fix(tracker): restore link navigation when tracking fails

Mike Cao18b72d3008c9
diff --git a/src/tracker/index.js b/src/tracker/index.js
index 53bbf6b9e..314c11acb 100644
--- a/src/tracker/index.js
+++ b/src/tracker/index.js
@@ -138,7 +138,7 @@
e.metaKey ||
(e.button && e.button === 1);
if (!external) e.preventDefault();
- return trackElement(eventEl).then(() => {
+ return trackElement(eventEl).finally(() => {
if (!external) {
(target === '_top' ? top.location : location).href = href;
}