Tag Builder - Right Clicks to Download Links

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

Description

Download links are hyperlinks whose URL:

  1. Is a download file (filename extension matches one of the types in the file types field)
  2. Resolves to HTTP protocol (not a local file)

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

The file types field should contain a comma separated list of filename extensions.

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

Example

Suppose the right click download file types field contains:
.xls

Page contains the following hyperlink:
<a href="smartsource.xls">SmartSource Spreadsheet</a>

Click link below to inspect corresponding dcsMultiTrack parameters:
SmartSource Spreadsheet

JavaScript Reference

dcsMultiTrack ParameterValue
DCS.dcssiphostname
DCS.dcsuripathname or "/"
WT.ti"RightClick:" + title
WT.dl25
WT.nvEnclosing element id or classname (if present)

Class.PropertyType
WebTrends.downloadtypesstring
WebTrends.onsitedomsstring