Skip to content

Instantly share code, notes, and snippets.

@quangbahoa
Forked from anonymous/Mã google remarketing
Last active January 15, 2016 11:24
Show Gist options
  • Save quangbahoa/08254cddc47a5c605e08 to your computer and use it in GitHub Desktop.
Save quangbahoa/08254cddc47a5c605e08 to your computer and use it in GitHub Desktop.
<!-- Google Code dành cho Thẻ tiếp thị lại -->
<!--------------------------------------------------
Không thể liên kết thẻ tiếp thị lại với thông tin nhận dạng cá nhân hay đặt thẻ tiếp thị lại trên các trang có liên quan đến danh mục nhạy cảm. Xem thêm thông tin và hướng dẫn về cách thiết lập thẻ trên: http://google.com/ads/remarketingsetup
--------------------------------------------------->
<script type="text/javascript">
var google_tag_params = {
ecomm_prodid: '<?php get_the_ID(); ?>',
ecomm_pagetype: 'singleproduct',
ecomm_totalvalue: '<?php echo $product->get_price_html(); ?>',
dynx_itemid: '<?php get_the_ID(); ?>',
dynx_itemid2: '<?php get_the_ID(); ?>',
dynx_pagetype: 'singleproduct',
dynx_totalvalue: '<?php echo $product->get_price_html(); ?>',
};
</script>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 964781017;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/964781017/?value=0&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment