Google Ad Manager - click tracking and wider click area

0 votes
247 views
added Jul 6, 2021 in Google tools by lcjr First Warrant Officer (11,780 points)

Bottom area are left for youtube default controller, play and watch on youtube.

<html> 
  <head>
    <script type="text/javascript">
    // Change the value of this string to your URL
    var clickTag = "https://www.youtube.com/watch?v=vhMZSAMBSLE";
    </script>
  </head>   
  <body style="margin: 0px;"> 
    <a href="javascript:window.open(window.clickTag)" style="position:relative; display:inline-block;z-index: 2;">
      
      
      <div style="position:absolute;height: 224px;width: 300px;z-index:1;right:0px;"></div>
      <iframe width="300" height="250" src="https://www.youtube.com/embed/vhMZSAMBSLE?autoplay=1&amp;rel=0&amp;loop=1&amp;mute=1&amp;playsinline=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>
    </a> 
   </body>
</html>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...