Anchor Links

Note:

If you have already implemented dcsMultiTrack for tracking anchor links or for any other type of web site tracking, please consult with Webtrends Support or Services before you use this Tag Builder function.

Description

Anchor links are hyperlinks whose URL contains:

An anchor (URL followed by hash mark "#" followed by fragment identifier)

An onsite domain

The check box inserts an onclick event handler function named dcsAnchor. The handler is bound to the document body. When a mouse click occurs on the page, the handler is called. The handler receives an event object as an argument. If the event object meets the criteria above, then its contents are passed as parameters to dcsMultiTrack.

An event specific identifier is passed via the WT.dl parameter. This is defined in the Webtrends Unified Event Model.

Example

Suppose the onsite domain field contains:

localhost,webtrends.corp

Page contains the following named link:

<a name=TopOfPage>Top of Page</a>

Page contains the following hyperlink:

<a href="#TopOfPage">Go to top</a>

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
JavaScript Reference
dcsMultiTrack ParameterValue
DCS.dcssiphostname
DCS.dcsuripathname or "/"
WT.ti"Anchor:" + title
WT.dl21
WT.nvEnclosing element id or classname (if present)
Class.PropertyType
Webtrends.onsitedomsstring