Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

I need to add a clickthrough(tracking code) to a button

$
0
0

I've added a clickthrough to a banner that targets the stage before but now I need to add a clickthrough that targets a specific element and am not sure how to do this. This isn't a clicktag but actually code for mediamind/sizmek to traffic a bannner.

 

here is the code that targets the whole banner

 

<script type="text/javascript">

  function initEB(){

  if (!EB.isInitialized()){

  EB.addEventListener(EBG.EventName.EB_INITIALIZED, startAd);

  }else{

  startAd();

  }

  }

  function startAd(){

  document.getElementById("Stage").style.visibility = "visible";

  }

  function handleClickthroughButtonClick(){

  EB.clickthrough();

  }

  function handleUserActionButtonClick(){

  EB.userActionCounter("CustomInteraction");

  }

</script>

<body style="margin:0;padding:0;" onload="initEB();" onclick="javascript:handleClickthroughButtonClick();">

  <div id="Stage" class="EDGE-21317836">

  </div>

</body>


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>