---
title: "Right Click to Download Links"
slug: "right-click-to-download-links"
updated: 2020-05-06T16:25:57Z
published: 2020-05-06T16:25:57Z
canonical: "onpremises.webtrends.help/right-click-to-download-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.

# Right Click to Download Links

Download links are hyperlinks whose URL is a download file (the URL filename extension matches one of the types in the file types field).

If enabled, an event handler function is added for all links that are downloads, where a download is defined by the extension type in the `downloadtypes` array. The `downloadtypes` array is a comma-separated list of file extensions and has a default value of: `xls,doc,pdf,txt,csv,zip,docx,xlsx,rar,gzip`.

**JavaScript Example:**

```
window.webtrendsAsyncInit = function () {
        var dcs = new Webtrends.dcs();
        dcs.init( {
                dcsid: "dcs12345610000wocrvqy1nqm_123p",
                rightclick : true,
                downloadtypes : "xls,doc,pdf,txt,csv,zip,docx,xlsx,rar,gzip"
        });
        dcs.track();
}
```

**Using right-click to download links**

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

And the page contains the following hyperlink:

`&lt;a href="smartsource.xls"&gt;SmartSource Spreadsheet&lt;/a&gt;`

Right-clicking would result in the following multi track parameters:

`DCS.dcssip=tagbuilder.webtrends.com` `DCS.dcsuri=/Help/EventTracking/smartsource.xls` `WT.ti=Download:SmartSource Spreadsheet` `WT.dl=20` `WT.nv=container`

**JavaScript Reference:**

| dcsMultiTrack Parameter | Value |
| --- | --- |
| **DCS.dcssip** | hostname |
| **DCS.dcsuri** | pathname or "/" |
| **WT.ti** | "RightClick:" + title |
| **WT.dl** | 25 |
| **WT.nv** | Enclosing element id or classname (if present) |
