1
0
mirror of https://github.com/kremalicious/umami.git synced 2025-02-14 21:10:34 +01:00

fix referrer domain on tracker load

This commit is contained in:
Francis Cao 2023-03-03 10:38:14 -08:00
parent c9cacbb0e2
commit 65691f5912

View File

@ -72,6 +72,12 @@
let currentPageTitle = document.title;
let cache;
if (currentRef.substring(0, 4) === 'http') {
if ((currentRef = currentRef.split('/')[2].split(':')[0] === hostname)) {
currentRef = '/' + currentRef.split('/').splice(3).join('/');
}
}
/* Collect metrics */
const getPayload = () => ({