Click counting library

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

<script src="//ns.sascdn.com/diff/templates/js/banner/sas-clicktag-3.1.js">;
</script>

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.

<script>
   var clickTag = "http://www.theclickthroughurl.com";
</script>

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(){
window.open(clickTag, "blank");
}
</script>

IAB specifications

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

<a href="javascript:window.open(window.clickTag, '_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?