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.

Merge branch 'dev' into script-simplification

Mike Cao9101f8a47819
diff --cc src/tracker/index.js
index b27da6b5b,5c9b23a71..d155c2fd6
--- a/src/tracker/index.js
+++ b/src/tracker/index.js
@@@ -45,7 -45,8 +45,8 @@@
hostname,
url: currentUrl,
referrer: currentRef,
- tag: tag ? tag : undefined,
+ tag,
+ id: identity ? identity : undefined,
});
const hasDoNotTrack = () => {
@@@ -187,9 -274,11 +201,10 @@@
let currentUrl = href;
let currentRef = referrer.startsWith(origin) ? '' : referrer;
- let title = document.title;
- let cache;
- let initialized;
+ let initialized = false;
let disabled = false;
+ let cache;
+ let identity;
if (autoTrack && !trackingDisabled()) {
if (document.readyState === 'complete') {