diff --git a/src/tracker/index.js b/src/tracker/index.js index e1c26973..16f714e4 100644 --- a/src/tracker/index.js +++ b/src/tracker/index.js @@ -6,9 +6,9 @@ document, history, } = window; - const localStorage = location.href.startsWith('data:') ? undefined : window.localStorage const { hostname, href } = location; const { currentScript, referrer } = document; + const localStorage = href.startsWith('data:') ? undefined : window.localStorage; if (!currentScript) return; @@ -63,7 +63,7 @@ const getPayload = () => ({ website, - hostname || 'none', + hostname, screen, language, title: encode(title),