Jump to content
mprefit

{clickurl} macro and Tumult Hype

Recommended Posts

I wonder if someone can help me with an issue on implementing {clickurl} macro in a html5 banner made with Tumult Hype.

After I create an animated banner with transparent background in Tumult Hype (http://tumult.com/hype/) I don't figure out where and how to insert {clickurl} macro for tracking clicks, because banner works fine, track impressions but no clicks tracking.

Banner has an enablerListener which it is triggered on sceneLoad

function EnablerListener(hypeDocument,element, event) {  
if (!Enabler.isInitialized()) {
  Enabler.addEventListener(
    studio.events.StudioEvent.INIT,
    enablerInitialized);
} else {
   enablerInitialized();
}
function enablerInitialized() {
  // Enabler initialized.
  // In App ads are rendered offscreen so animation should wait for
  // the visible event. These are simulated with delays in the local
  // environment.
  if (!Enabler.isVisible()) {
    Enabler.addEventListener(
      studio.events.StudioEvent.VISIBLE,
      adVisible);
  } else {
     adVisible();
  }
}
function adVisible() {
  
  // Ad visible, start ad/animation.
  hypeDocument.continueTimelineNamed('Main Timeline', hypeDocument.kDirectionForward);
  console.log('Congrats! adVisible() triggered');
  
}

 

Into the head of the banner I had the following:

<head>

    <script src="https://s0.2mdn.net/ads/studio/Enabler.js"></script>
 
    
    <script type="text/javascript">

    function clickURL() {
        
        //window.open('http://www.intercomfilm.ro/index.php/2014-12-01-12-12-42/in-curand/item/168-inainte-de-craciun',
        //window.open('%%CLICK_URL_UNESC%%',     
        '_blank' // <- Use _self here to open in the same window.  
      );
     }
    
    </script>
    
    <style>
body {
background-color: transparent;
}
</style>
</head>

I had on click for the target link exitURL() function

function exitURL(hypeDocument,element, event) {

     clickURL(); 

}

 

In Revive Ad Server in Create an HTML banner - banner code I insert following code for ad created with Hype:
<div id="inaintedecraciunf_hype_container" style="margin:auto;position:relative;width:320px;height:430px;overflow:hidden;" aria-live="polite">
        <script type="text/javascript" charset="utf-8" src="http://www.creativeads.ro/images/banner_html5/inainte_de_craciunf.hyperesources/inaintedecraciunf_hype_generated_script.js?58280"></script>
    </div>

Generated banner code in Revive Ad Server is:

<!--/*
  *
  * CreativeAds Interstitial or Floating DHTML Tag
  * - Generated with Revive Adserver v3.2.2
  *
  */-->

<!--/*
  * This tag has been generated for use on a non-SSL page. If this tag
  * is to be placed on an SSL page, change the
  *   'http://adserver.creativeads.ro/www/delivery/...'
  * to
  *   'https://adserver.creativeads.ro/www/delivery/...'
  *
  *------------------------------------------------------------*
  * This interstitial invocation code requires the images from:
  * /www/images/layerstyles/simple/...
  * To be accessible via: http(s)://adserver.creativeads.ro/www/images/layerstyles/simple/...
  *------------------------------------------------------------*
  */-->

<script type='text/javascript'><!--//<![CDATA[
   var ox_u = 'http://adserver.creativeads.ro/www/delivery/al.php?zoneid=6&layerstyle=simple&align=left&valign=bottom&padding=2&closetime=14&padding=2&shifth=0&shiftv=25&closebutton=t&nobg=t&noborder=t';
   if (document.context) ox_u += '&context=' + escape(document.context);
   document.write("<scr"+"ipt type='text/javascript' src='" + ox_u + "'></scr"+"ipt>");
//]]>--></script>

Where can I insert {clickurl} macro for counting clicks?

Can you help me please with that?

Regards,

Mihnea

Edited by mprefit

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...