How to execute Google Adwords conversion tracking without physical thank you page

这一生的挚爱 提交于 2019-12-04 19:30:22

For example you have such button:

<a href = '#' class = 'add_to_cart'><img src = 'btn_buy.png'></a>

Try this script:

<SCRIPT src='/js/jquery.js' type=text/javascript></SCRIPT> 
<SCRIPT type=text/javascript> 

$(document).ready(function() 
{ 
  var add_to_cart_processed = false; 

  $('.add_to_cart').click(function() 
  { 
    if (!add_to_cart_processed) 
    { 
      $('body').append('<div id = "remarketing_basket" style = "display:none"></div>'); 
      $('#remarketing_basket').load('/add_basket.txt'); 
    } 
  }); 
}); 
</SCRIPT>

In file add_basket.txt you need to save your conversion code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!