The following presents a guideline on how EyeBlaster standard and rich media tags should be edited to count clicks in Google Ad Manager. In order to track clicks follow the procedure below:
JavaScript Code
Original Code
You should have received some JavaScript code from EyeBlaster that looks similar to the following example:
<script src=”https://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=sb&c=17&pli=9547654&PluID=0&w=300&h=250&ord=timestamp”></script>
<noscript>
<a href=”https://bs.serving-sys.com/BurstingPipe/BannerRedirect.asp?FlightID=9547654&Page=&PluID=0&Pos=9874″ target=”_blank”><img src=”https://bs.serving-sys.com/BurstingPipe/BannerSource.asp?FlightID=9547654&Page=&PluID=0&Pos==9874″ border=0 width=300 height=250></a>
</noscript>
Modified Code
What you need to do is modify the URL in the <SCRIPT> tag as shown by the highlighted changes, The resulting tag should look similar to the following example:
<script src=”https://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=sb&c=17&pli=9547654&PluID=0&w=300&h=250&ncu=$$%%CLICK_URL_UNESC%%$$&ord=%%CACHEBUSTER%%></script>
<noscript>
<a href=”%%CLICK_URL_UNESC%%https://bs.serving-sys.com/BurstingPipe/BannerRedirect.asp?FlightID=9547654&Page=&PluID=0&Pos=9874″ target=”_blank”><img src=”https://bs.serving-sys.com/BurstingPipe/BannerSource.asp?FlightID=9547654&Page=&PluID=0&Pos==9874″ border=0 width=300 height=250></a>
</noscript>
JavaScript Code (Wallpaper/Reskin)
Original Code
You should have received some JavaScript code from EyeBlaster that looks similar to the following example:
<script>
var gnEbMinZIndex = 20000;
var gfEbInIframe = false;
var gEbAd=new Object();
gEbAd.nFlightID = 3658749;
gEbAd.nDownloadMode = 3;
var gfEbUseCompression = true;
</script>
<script src=”https://ds.serving-sys.com/BurstingScript/ebServing_3587954.js”></script>
Modified Code
What you need to do is modify the URL in the <SCRIPT> tag as shown by the highlighted changes, The resulting tag should look similar to the following example:
<script>
var gnEbMinZIndex = 20000;
var gfEbInIframe = false;
var gEbAd=new Object();
gEbAd.strNImpUrl=”%%CACHEBUSTER%%“;
gEbAd.strNClickUrl=”%%CLICK_URL_ESC%%“;
gEbAd.nFlightID = 3658749;
gEbAd.nDownloadMode = 3;
var gfEbUseCompression = true;
</script>
<script src=”https://ds.serving-sys.com/BurstingScript/ebServing_3587954.js”></script>
Note
The ad server recognises the [timestamp] placeholder and will automatically replace it with a cache buster. It is not necessary to convert it to the %%CACHEBUSTER%% macro manually.
Use %%CLICK_URL_UNESC%%
at the beginning of a link. Use %%CLICK_URL_ESC%%
when the click-tracker is the parameter of another URL.
<a href="%%CLICK_URL_UNESC%%https://www.google.com">link</a>
<a href="https://www.google.com?rd_url=%%CLICK_URL_ESC%%">link</a>