HTML5 banner - clicktag integration

To let Adhese measure the clicks of the banner, some extra work is required:

  1. We require a JavaScript variable to be present in the code. This variable has to be named clickTag in order to be picked up.
    The value of the clickTag variable needs to be a string literal within single quotes:

    <a id="clickThroughBtn" target='_new' href="">Register click</a>
    	var clickTag = '';
    	document.querySelector('#clickThroughBtn').href = clickTag;
    </script> ...
  2. This variable should be placed in the main HTML file as this is the only file that will be parsed.
  3. An URL of the landing page will be provided in the Adhese UI. Together with our click tracker, this URL will be assigned to the clickTag variable once the banner is uploaded.
  4. Make sure to make use of this variable when implementing the click-through logic!

Some banners make use of more than one landing page. Because of this, we allow the implementation of up to 9 different landing page URL's, each with its own click tracker.
To make use of this option, you can define several clickTag variables in the following manner:

   var clickTag = '';
   var clickTag2 = '';
   var clickTag3 = '';

All clicks will be counted together to calculate the total amount of clicks on a specific banner. However, in the more detailed reports, you will be able to look up the clicks per URL.

Adhese detects the clickTag in compressed code. Compressed code is used to reduce file sizes by removing line breaks, tabs, and double spaces.

Even when the clickTag variable is present in the code and the click URL is correctly filled in by Adhese, it is still possible that Adhese won't measure clicks.
If this is the case, you will have to contact the supplier of the HTML5 file as it might be possible that the clickTag variable is not used or is overwritten.