Click counting library

In the creative's main file (index.html), insert the following script within the <head> section:

<script src="//">;

Single clickthrough URL

In the creative's html file (index.html), declare the variable "clickTag" and assign the clickthrough URL immediately after the opening <body> tag.

   var clickTag = "";

Click destination

When assigning a hyperlink to a clickable item on the creative (text, button, image etc.), add the following code snippet to the clickable area:

Option 1

<a id="clickArea"></a>
<script type="text/javascript">
var clickArea = document.getElementById("clickArea");
clickArea.onclick = function(){, "blank");

IAB specifications

In the IAB's specification, you will find the clickTag variable used as follows:

<a href=", '_blank')"</a>

We do not recommend using this method as it will cause writing the "object window" string in the ad container after click.

Did this answer your question?