Jump to content

Recommended Posts

Posted

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

Posted

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

 

 

 

  • 2 years later...
Posted

Question: Is it always necessary to manually add the two code segments above to the HTML5 banner files to make the banner link setting work and enable counting of clicks in Revive?

Recently I got a HTML5 banner for the first time and saved a destination URL exactly like shown above, but still the banner was not linked to anything.
I asked my graphics colleague if he can add a link with Google Web Designer and so he did. Clicking on the banner does work, but the URL saved at Revive banner settings does not have any effect.

 

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