DCSmultitrack Conversion Plugin

The purpose of the analytics multitrack conversion plugin is to provide some level of backwards compatibility for customers with the older version of tag using DCSmultitrack or webtrends.multitrack functionality as outlined in this help document.

NOTE: Presently, this plugin does not include the Advanced Multitrack options.

Implementation

The multitrack conversion plugin will sit in the preload or pre-init section of the Infinity Tag. This allows the function calls to be available as soon as the loader is available in the document object model for the page. If it is placed later in the page, it is possible to miss inline calls which can occur before the analytics library is available.

Below are several possible implementations of the legacy dcsMultiTrack and Webtrends.multitrack functions that are supported by the conversion plugin.

window[‘dcsMultiTrack’] or dcsMultiTrack

Example:

dcsMultiTrack("DCS.dcsuri", "/FAQ/Search", "WT.oss", searchForm.elements["phrase"].value );

multiTrack or Webtrends.multiTrack

When calling multitrack, it is very common to pass in custom key-value pairs to get added to the standard set of key-value pairs sent to Webtrends collection servers on every track event. This custom data is used for custom reporting and/or overriding the values from Webtrends’ standard set of data. There are three methods of passing custom data to MultiTrack: using the args object field, the argsa array field or passing the data as arguments to Multitrack. The args object should be a JSON object in the form { “key” : “value” }, argsa array methods uses an array in the form: [ "key1", "value2", ... "keyN", "valueN" ], and when passing the data as arguments to Multitrack, use the form:

 multiTrack([ "key1", "value2", ... "keyN", "valueN" ]). 

Examples for all three described methods:

Using args object:
Webtrends.multiTrack({ args: { "DCS.dcsuri" : "/Home/Account/History", "WT.dl" : "0"} }); 
Using argsa array:
Webtrends.multiTrack({ argsa: ["DCS.dcsuri", "/Home/Account/History", "WT.dl", "0"] }); 
Passing custom data as arguments:
 Webtrends.multiTrack("DCS.dcsuri", "/FAQ/Search", "WT.oss", searchForm.elements["phrase"].value );