mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
Fix multiple issues: tracker multiple execution, credentials configurable, exclude-hash, and other fixes
This commit is contained in:
parent
d590c6b078
commit
46532f0778
23 changed files with 553 additions and 30 deletions
25
contributions/tracker-multiple-execution-fix.js
Normal file
25
contributions/tracker-multiple-execution-fix.js
Normal 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';
|
||||
}
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue