PRODUCT
Follow

This article will walk you through the process of adding EB.clickthrough() to your HTML5 Standard Banner ads. If the ad is missing our API and tracking code, the snippet below can be inserted into the <head> tag of your document.

If the ad is currently using a ClickTag or you would like the ad to use the HTML5 API instead, the clickTag variable along with the window.open(clickTag) function should be removed.

Note

Note: To avoid tracking issues, please make sure the followingcriteria below is met.

  • There should only be one reference to EBLoader.js.

  • EBLoader and clickTag should not be used in the same ad (you must choose one execution).

Adding the Snippet to Your Ad

Paste the snippet below inside the <head> section of your document.

<script src="https://secure-ds.serving-sys.com/BurstingScript/EBLoader.js"></script> <script> 
  window.addEventListener('load', function() {
    if (!EB.isInitialized()) {
       EB.addEventListener(EBG.EventName.EB_INITIALIZED, startAd); 
    } 
    else {
       startAd(); 
    }
    function startAd() {
        document.body.style.cursor = "pointer";
        document.body.addEventListener('click', function() {
          EB.clickthrough(); 
    }); 
  } 
}); 
</script>

Your document should look similar to the screenshot below.

ebloader.gif
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments