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:
Code Block |
---|
|
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
Code Block |
---|
language | js |
---|
title | Example JavaScript Code |
---|
linenumbers | true |
---|
|
<script type="text/javascript">
function rdOnBannerClick(){
var vl = new Visilabs();
vl.AddParameter("OM.OSB","banner_name");
vl.Collect();
}
rdOnBannerClick();
</script> |
Note |
---|
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.
Code Block |
---|
language | js |
---|
title | Example JavaScript Code |
---|
linenumbers | true |
---|
|
<script type="text/javascript">
function rdBannerDisplay(){
var vl = new Visilabs();
vl.AddParameter("OM.OSBD","banner_name");
vl.Collect();
}
rdBannerDisplay();
</script> |
Code Block |
---|
language | js |
---|
title | Example using Recollect |
---|
|
<script type="text/javascript">
function rdBannerRecollect(){
var vl = new Visilabs();
vl.Recollect(new Array(["OM.OSBD","banner_name"]));
}
rdBannerRecollect();
</script> |
Note |
---|
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