diff --git a/public/js/track.js b/public/js/track.js index bce2736..b9080f2 100644 --- a/public/js/track.js +++ b/public/js/track.js @@ -59,7 +59,7 @@ type: "pageview", visitorId: visitorId, url: cleanUrl(href), - referrer: referrer.startsWith(origin) ? "直接访问" : referrer, + referrer: referrer.startsWith(origin) ? "" : referrer, language: language, screen: `${width}x${height}`, userAgent: userAgent, diff --git a/src/scripts/track.js b/src/scripts/track.js index 3a142c2..085df83 100644 --- a/src/scripts/track.js +++ b/src/scripts/track.js @@ -59,7 +59,7 @@ type: "pageview", visitorId: visitorId, url: cleanUrl(href), - referrer: referrer.startsWith(origin) ? "直接访问" : referrer, + referrer: referrer.startsWith(origin) ? "" : referrer, language: language, screen: `${width}x${height}`, userAgent: userAgent,