0
我想在Facebook要求的<head>
部分的結賬確認頁面上添加跟蹤像素。我用CS-Cart 3.0.6
在CS-Cart中添加Facebook像素轉換代碼3
到目前爲止,與我在谷歌和論壇閱讀,我一定要添加腳本在
/skins/name_of_the_active_skin/customer/addons/my_changes/hooks/checkout/
目錄。
因此,沒有我,與meta.post.tpl
的namefile:
{hook name="checkout:order_confirmation"}
{literal}
<!-- Facebook Conversion Code for Paid -->
<script>(function() {
var _fbq = window._fbq || (window._fbq = []);
if (!_fbq.loaded) {
var fbds = document.createElement('script');
fbds.async = true;
fbds.src = '//connect.facebook.net/en_US/fbds.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(fbds, s);
_fbq.loaded = true;
}
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', '928383727823', {'value':'{/literal}{$order_info.total}{literal}','currency':'USD'}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=8283838383832&cd[value]={/literal}{$order_info.total}{literal}&cd[currency]=USD&noscript=1" /></noscript>
{/literal}
{/hook}
它不工作。它是文件名嗎?你知道如何做到這一點?