A link is considered onsite if the host portion of its URL matches the domain of its containing page.
If the host does not match, then a link is considered offsite.
The link is always compared against the domain of the page that contains it.
The Additional Onsite Domains field allows you to specify additional domains to compare.
This is useful when the JavaScript tag is shared across multiple domains and/or subdomains.
By default the Additional Onsite Domains field contains a comma separated list of domain names.
Each domain name is compared against the host
property of the event
object.
As an option, the Regular Expression check box can be selected.
If selected, the onsite domain names field contains a regular expression pattern.
The regular expression pattern is matched against the host
property of the event
object.
More information here.
In both cases, the comparison case insensitive.
The Download and
Anchor link handlers require onsite links.
The Offsite link handler requires an offsite link.
These handlers call the function isOnSite
to determine whether a link is onsite or not.