我正在尝试使用Magento设置Facebook动态产品广告,我不确定如何设置添加到购物车和成功像素 . 我设置产品页面视图像素没问题 .
在购物车页面/结帐时我用什么PHP代码替换以下(粗体):
fbq('track','AddToCart',{content_name:'Shopping Cart',content_ids:[2521298],content_type:'product',值: 3.50 ,货币:'USD'});
在成功页面上我用什么PHP代码替换以下(粗体):
fbq('track','AddToCart',{content_name:' Really Fast Running Shoes ', content_category: ' A pparel & Accessories > Shoes ', content_ids: [' 1234 '], content_type: ' product ', value: 2.99, currency: ' USD'
任何帮助深表感谢!
1 回答
For cart page you can use the following piece of code - :
For purchase or order confirmation page you can use the following piece of code -: