Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DavidWells/analytics
/ isExternal
Function
isExternal
packages/analytics-util-url/src/index.js:105–107 ·
view source on GitHub ↗
(url, currentUrl)
Source
from the content-addressed store, hash-verified
103
* @returns {boolean}
104
*/
105
export
function
isExternal(url, currentUrl) {
106
return
parseUrl(url).hostname !== getLocation(currentUrl).hostname
107
}
108
109
/**
110
* Check
if
URL is localhost
Callers
3
isInternal
Function · 0.85
isExternalReferrer
Function · 0.85
parseReferrer
Function · 0.85
Calls
2
parseUrl
Function · 0.85
getLocation
Function · 0.85
Tested by
no test coverage detected