mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-25 02:36:20 +01:00
fix referrer domain on tracker load
This commit is contained in:
parent
c9cacbb0e2
commit
65691f5912
@ -72,6 +72,12 @@
|
|||||||
let currentPageTitle = document.title;
|
let currentPageTitle = document.title;
|
||||||
let cache;
|
let cache;
|
||||||
|
|
||||||
|
if (currentRef.substring(0, 4) === 'http') {
|
||||||
|
if ((currentRef = currentRef.split('/')[2].split(':')[0] === hostname)) {
|
||||||
|
currentRef = '/' + currentRef.split('/').splice(3).join('/');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Collect metrics */
|
/* Collect metrics */
|
||||||
|
|
||||||
const getPayload = () => ({
|
const getPayload = () => ({
|
||||||
|
Loading…
Reference in New Issue
Block a user