On-Page Event Tracking (Website only)
  • 06 May 2020
  • 1 Minute to read
  • Contributors
  • Dark
  • PDF

On-Page Event Tracking (Website only)

  • Dark
  • PDF

Article summary

On-Page Event Tracking (Website only)

The Webtrends JavaScript tag has the ablity to automatically track a predefined list of events on a page.

When you enable onclick event tracking using these, Webtrends identifies each on-page event using the WT.dl parameter. This parameter, which is passed to the dcsMultiTrack function automatically enabled in your Tag Builder tag, provides a unique event value for each type of on-page activity.

Webtrends Unified Event Model:

Event TypeConfig value to turn on the featureThe value assigned to WT.dl
Page Viewsent when dcs.track() is called0
Download Linksdownload: true20
Anchor Linksanchor: true21
JavaScript Links (javascript:)javascript: true22
Off-site Linksoffsite: true24
Right Click to Download Linksrightclick: true25

JavaScript Example:

window.webtrendsAsyncInit = function () {
        var dcs = new Webtrends.dcs();
        dcs.init( {
                dcsid: "dcs9x99xxxx9xxx9xx9xxxx9x_9x9x",
                //download and right-click event tracking
                download : true,
                rightclick : true,
                //default values, only include if you want to modify the list.
                downloadtypes : "xls,doc,pdf,txt,csv,zip,docx,xlsx,rar,gzip", 
                //javascript event tracking
                javascript : true,
                //offsite and anchor event tracking
                offsite : true,
                anchor : true,

Was this article helpful?