0 Replies Latest reply on Dec 10, 2014 10:02 AM by productionArtistChad

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

    productionArtistChad Level 1

      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>