Jump to content
realites

Revive not counting html5 zip banners

Recommended Posts

Hi all

Have an issue here , all HTML5 banners (zip) click are not counted . I'm using latest revive  i did a lot of search on this forum and i know that Macros are not supported when it comees to HTML 5 banners instead it is using clickTAG  So i unzipped the banner file and checked the html file , it has the clicktag  parameter still no click count . Any idea ? did i miss something ?

 

Thank you in advance

Share this post


Link to post
Share on other sites

Issue solved once and for all! 

seems like Clicktag implementation was wrong  i will post the solution because i've never seen a working solution in this forum. ( this will work when no clicktag is implemented and also when implementation is wrong)

basically what i did is creating a layer over the existing banner and inserted the click tag :

in the html file of the banner i added the following between  <head></head> tags

  <script type="text/javascript">
    var clickTag = "";
  </script>

then between <body></body> tags

 

<div id="clickTagLayer" style="position: absolute; top: 0; left: 0; z-index: 16777271; width: 100%; height: 100%; cursor: pointer; cursor: pointer">
</div>

<script type="text/javascript">
(function() {
  var layer = document.getElementById("clickTagLayer");
  if (layer) {
    var listen = function(obj, e, fn) {
      if (obj.addEventListener) { obj.addEventListener(e, fn, false); } else { obj.attachEvent("on"+e, fn); }
    };
    listen(layer, 'click', function (evt) {
      evt.stopPropagation();
      try { evt.cancelBubble(); } catch (e) { /* ignore */ }
      window.open(window.clickTag, '_blank');
    });
  }
})();
</script>

 

Then , uploaded the html5 zip file with the new modifications and added the desired banner link as shown in the screenshot below and it works , revive is counting clicks

 

revive.png

 

 

 

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...