diff --git a/public/tracker.js b/public/tracker.js index 08cb7c35..03f4c6b1 100644 --- a/public/tracker.js +++ b/public/tracker.js @@ -128,6 +128,9 @@ 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; }