Image Maps

Description

This check box provides support for tracking client side image maps. A map element contains area elements which specify hotzones on the associated image and bind these hotzones to URLs.

The check box inserts an onclick event handler function named dcsImageMap. The handler is bound to the document body. When a mouse click occurs on the page, the handler is called. The handler receives an event object as an argument. If the event object meets the criteria above, then it's contents are passed as arguments to dcsMultiTrack.

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

Example

<script type="text/javascript">
function ci(name, src){ document.images[name].src = src; }
</script>

<img src="worldmap.gif" width=162 height=97 usemap="#worldmap_map" name="worldmap">
<map name="worldmap_map" id="worldmap_map">
<area shape="poly" coords="162,44, ... 159,44" href="asia_pacific_on.gif?region=AsiaPacific" onmouseover="ci('worldmap', 'asia_pacific_on.gif')">
<area shape="poly" coords="102,42, ... 103,42" href="middle_east_on.gif?region=MiddleEast" onmouseover="ci('worldmap', 'middle_east_on.gif')">
<area shape="poly" coords="74,43, ... 75,44" href="africa_on.gif?region=Africa" onmouseover="ci('worldmap', 'africa_on.gif')">
<area shape="poly" coords="51,0, ... 51,1" href="europe_on.gif?region=Europe" onmouseover="ci('worldmap', 'europe_on.gif')">
<area shape="poly" coords="18,0, ... 27,0" href="americas_on.gif?region=Americas" onmouseover="ci('worldmap', 'americas_on.gif')">
</map>

Clicking the image map generates the following parameters:

    DCS.dcssip=tagbuilder.webtrends.com
    DCS.dcsuri=/Help/EventTracking/europe_on.gif
    DCS.dcsqry=?region=Europe
    WT.ti=ImageMap:worldmap_map
    WT.dl=30
JavaScript Reference

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