如何使用Prestashop实现adwords转换代码?

时间:2015-02-20 14:30:29

标签: prestashop google-adwords

在prestashop购物网站上添加adwords转换代码的位置,目前我不想要转化价值。只需指导我在哪个文件中输入代码以及如何编写代码。

2 个答案:

答案 0 :(得分:1)

您应该在主题的order-confirmation.tpl文件的末尾插入AdWords转换代码。

答案 1 :(得分:1)

正如Yenshirak所说,你必须把它放在主题上/ YOUR_THEME / order-confirmation.tpl

你最好把脚本变量放在标签{literal}和{/ literal}之间,如:

<script type="text/javascript">
   /* <![CDATA[ */
{literal}
   var google_conversion_id = X;
   var google_conversion_language = "X";
   var google_conversion_format = "2";  
   var google_conversion_color = "ffffff";  
   var google_conversion_label = "AAAAAAAAAAAAAAAAAAA";  
   var google_conversion_value = 0;
{/literal}
   /* ]]> */
   </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="//www.googleadservices.com/pagead/conversion/123456789/
  ?label=AAAAAAAAAAAAAAAAAAA&guid=ON&script=0"/>
   </div>
   </noscript>