--- title: "Anchor Links" slug: "anchor-links" updated: 2020-05-06T16:23:20Z published: 2020-05-06T16:23:20Z canonical: "onpremises.webtrends.help/anchor-links" --- > ## Documentation Index > Fetch the complete documentation index at: https://onpremises.webtrends.help/llms.txt > Use this file to discover all available pages before exploring further. # Anchor Links ## Metadata_End Anchor links are hyperlinks whose URL contains: An anchor (URL followed by hash mark "#" followed by fragment identifier) or a hostname from the `onsitedoms` array. If enabled, an event handler function is added for all links that are Anchors. The `onsitedoms` array is a comma-separated list of file domain names or a regular expression, which is used to determine if a link is "on domain". **Example** Suppose the onsite domain field contains: `"localhost,webtrends.corp"` Page contains the following named link: `Top of Page` Page contains the following hyperlink: `Go to top` Clicking the link generates the following parameters: `DCS.dcssip=tagbuilder.webtrends.com` `DCS.dcsuri=/Help/EventTracking/Anchor.aspx#TopOfPage` `WT.ti=Anchor:#TopOfPage` `WT.dl=21` **Defining the onsitedoms parameter** The `onsitedoms` config parameter allows you to define what domains will be considered "on domain". For example, if you want to track off-site links from the product site yourcompanyshopping.com, and you enable off-site link tracking, you can ensure that links to your branding site continue to be tracked as on-site links by setting the onsitedoms config parameter to `yourcompanyshopping.com`,`yourbrand.com`. **JavaScript Example:** ```java window.webtrendsAsyncInit = function () { var dcs = new Webtrends.dcs(); dcs.init( { dcsid: "dcs12345610000wocrvqy1nqm_123p", anchor : true, onsitedoms:"webtrends.com,webtrendssupport.com" }); dcs.track(); } ```
JavaScript Reference: | dcsMultiTrack Parameter | Value| | --- | --- | | **WT.ti** | 21 | | **WT.dl** | download: true | | **WT.nv** | Enclosing element id or classname (if present) | | **DCS.dcssip** | hostname | | **DCS.dcsuri** | pathname or "/" |