Preparing for dcsMultiTrack

To implement dcsMultiTrack, you must include the dcsMultiTrack function in your Webtrends JavaScript tag. Because dcsMultiTrack relies on the standard Webtrends JavaScript tag to operate successfully, you must still deploy the standard Webtrends JavaScript tag on the HTML pages that include Flash, Ajax, or other technology you want to track using dcsMultiTrack.

If you use Webtrends Tag Builder to generate your tag, the JavaScript code includes the dcsMultiTrack definition. If you currently use an older version of Webtrends JavaScript code, you may need to modify the tag as described in the following sections. You can ensure that the version of the JavaScript includes the function definition for dcsMultiTrack by verifying that the line “function dcsMultiTrack(){” is present in the tag.

If you are using an older version of Webtrends the JavaScript tag, and you do not want to deploy a new tag created with Webtrends Tag Builder, you can update your existing tag to enable dcsMultiTrack.

  1. Locate the dcsMultiTrack function.
    1. If you use the SmartSource Data Collector (SDC) with Webtrends software, this function is located in the multitrack.js file on the SDC server in the following directory:
      <SDC Installation Directory>\util\javascript\
    2. If you use Webtrends Analytics 9, or if you cannot locate the multitrack.js file, contact Webtrends Support to obtain a copy of the dcsMultiTrack function definition.
  2. Open the multitrack.js file and select all the code in the file. Copy this text to the clipboard.
  3. Paste this code into your Webtrends Javascript tag immediately after the comment Add customizations here as shown in the following Webtrends JavaScript tag excerpt:
    // Add customizations here 
    function dcsVar(){
    	var dCurrent=new Date();*-1)||"0";||"0";