Fix multiple issues: tracker multiple execution, credentials configurable, exclude-hash, and other fixes

This commit is contained in:
Ayush3603 2025-11-10 18:26:31 +05:30
parent d590c6b078
commit 46532f0778
23 changed files with 553 additions and 30 deletions

View file

@ -0,0 +1,25 @@
// Fix for issue #3603: Add guard to prevent tracker from running multiple times
// File: src/tracker/index.js
// Add at the beginning of the tracker script (around line 1):
/*
if (window.umami && window.umami.version) {
return;
}
*/
// Add version tracking (around line 220):
/*
if (!window.umami) {
window.umami = {
track,
identify,
version: '1.0.0' // Add version to indicate initialization
};
} else {
// If umami exists but without version, add the functions
window.umami.track = window.umami.track || track;
window.umami.identify = window.umami.identify || identify;
window.umami.version = '1.0.0';
}
*/