diff --git a/public/tracker.js b/public/tracker.js index 03f4c6b1..928bb5d6 100644 --- a/public/tracker.js +++ b/public/tracker.js @@ -128,12 +128,11 @@ SOFTWARE. // only set referrer if not internal let referrer = vars.referrer || ""; - // strip query string from referrer - referrer = referrer.split("?")[0]; - if (document.referrer.indexOf(hostname) < 0) { referrer = document.referrer; } + // strip query string from referrer + referrer = referrer.split("?")[0]; const d = { p: path,