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:
sample-site.com/sample-page.html?OM.OSB=bannerName |
You may trace the following issues using an easy javascript implementation;
When a banner is clicked, a custom HTML GTM tag with a content like below is need to be triggered.
<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. |
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.
<script type="text/javascript"> function rdBannerDisplay(){ var vl = new Visilabs(); vl.AddParameter("OM.OSBD","banner_name"); vl.Collect(); } rdBannerDisplay(); </script> |
<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: Google Tag Manager(GTM) Implementation