Ad Impressions (Website only)
  • 06 May 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Ad Impressions (Website only)

  • Dark
    Light
  • PDF

Article summary

Ad Impressions (Website only)

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:

adimpressions (Boolean)
If set to true, then this feature is turned on and document.links will be scanned for the adsparam query parameter. If false, this feature isn't used.

adsparam (String)
Sets the name of the query parameter which denotes an ad impression. It defaults to WT.ac if not set.

Using WT.ac

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_boat


Was this article helpful?