An Ad View occurs when a visitor views a page containing an ad. An ad is a link or graphic that contains an Ad Click parameter in the query portion of its URL.
Enabling this setting causes the tag to scan all links on a page, looking for the Ad Click parameter specified in the accompanying text box. The text box must contain a query parameter used to denote Ad Click links. If a matching link is found (case insensitive), its Ad Click parameter value is extracted and assigned to the Ad View parameter (WT.ad). If more than one Ad Click link is found, each value is appended to the Ad View parameter, delimited by semi-colon. Two configuration parameters control the behavior of this feature:
Suppose you are using the default Ad Click param: WT.ac.
dcs.init( {
dcsid: "dcs9x99xxxx9xxx9xx9xxxx9x_9x9x",
adimpressions:true,
adsparam:"WT.ac",
});
Suppose you have a page with the following Ad Click links:
<a href="http://advendor.com/process_click?WT.ac=image_link_car"><img src="car_ad.gif"></a> <a href="http://advendor.com/process_click?WT.ac=image_link_house"><img src="house_ad.gif"></a> <a href="http://advendor.com/process_click?WT.ac=image_link_boat"><img src="boat_ad.gif"></a>
The Ad View parameter generated from the page load would be:
WT.ad=image_link_car;image_link_house;image_link_boatThe Javascript looks like this:
window.webtrendsAsyncInit = function () {
var dcs = new Webtrends.dcs();
dcs.init( {
dcsid: "dcs9x99xxxx9xxx9xx9xxxx9x_9x9x",
adimpressions:true,
adsparam:"WT.adsClicked"
});
dcs.track();
}