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