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

Ad Impressions (Website only)

  • Dark
  • 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 ( 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 if not set.


Suppose you are using the default Ad Click param:

dcs.init( { 
 dcsid: "dcs9x99xxxx9xxx9xx9xxxx9x_9x9x",

Suppose you have a page with the following Ad Click links:

<a href=""><img src="car_ad.gif"></a>
<a href=""><img src="house_ad.gif"></a>
<a href=""><img src="boat_ad.gif"></a>

The Ad View parameter generated from the page load would be:;image_link_house;image_link_boat

Was this article helpful?