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 to page title collect

Francis Caob7c3b58072dd
diff --git a/tracker/index.js b/tracker/index.js
index 698dd09ee..68ee282ea 100644
--- a/tracker/index.js
+++ b/tracker/index.js
@@ -132,7 +132,7 @@
const observeTitle = () => {
const callback = ([entry]) => {
- title = entry.target.data;
+ title = entry.target.text;
};
const observer = new MutationObserver(callback);
@@ -140,6 +140,7 @@
observer.observe(document.querySelector('head > title'), {
subtree: true,
characterData: true,
+ childList: true,
});
};