Banner Display & Click

Using URL (Static Banner Tracing)

To track on site banner clicks, add the OM.OSB parameter at the end of your banner target URLs with the name of the banner/campaign as the value of the parameter:

Example
sample-site.com/sample-page.html?OM.OSB=bannerName

Using Javascript (Dynamic Banner Tracing)

You may trace the following issues using an easy javascript implementation;

  • Banner Clicks
  • Banner Display

Banner Clicks

Example JavaScript Code
<script type="text/javascript">
	function rdOnBannerClick(){
		var vl = new Visilabs();
		vl.AddParameter("OM.OSB","banner_name");
		vl.Collect();
	}
	rdOnBannerClick();
</script>

The variable banner_name should not contain spaces or special characters.


Banner Display

To track on site banner displays, add the OM.OSBD parameter at the end of your banner target URLs with the name of the banner/campaign as the value of the parameter. There are two different ways for tracing Banner Display with using JavaScript. 


Example JavaScript Code
<script type="text/javascript">
	function rdBannerDisplay(){
		var vl = new Visilabs();
		vl.AddParameter("OM.OSBD","banner_name");
		vl.Collect();
	}
	rdBannerDisplay();
</script>
Example using Recollect
<script type="text/javascript">
	function rdBannerRecollect(){
		var vl = new Visilabs();
		vl.Recollect(new Array(["OM.OSBD","banner_name"]));
	}
	rdBannerRecollect();
</script>

Use the SAME values for the variable 'banner_name' for both OM.OSB and OM.OSBD parameters while sending request for banner display.



Parent Topic: Events Triggered when Page Loads

Copyright 2020 Related Digital