fix(tracker): Respect excludeSearch consistently
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
document,
|
document,
|
||||||
history,
|
history,
|
||||||
} = window;
|
} = window;
|
||||||
const { hostname, pathname, search } = location;
|
const { hostname, href } = location;
|
||||||
const { currentScript, referrer } = document;
|
const { currentScript, referrer } = document;
|
||||||
|
|
||||||
if (!currentScript) return;
|
if (!currentScript) return;
|
||||||
@@ -244,7 +244,7 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
let currentUrl = `${pathname}${search}`;
|
let currentUrl = parseURL(href);
|
||||||
let currentRef = referrer !== hostname ? referrer : '';
|
let currentRef = referrer !== hostname ? referrer : '';
|
||||||
let title = document.title;
|
let title = document.title;
|
||||||
let cache;
|
let cache;
|
||||||
|
|||||||
Reference in New Issue
Block a user