我在Shopify的結帳頁面上使用Facebook的轉換跟蹤像素來衡量廣告銷售的投資回報率,但我得到的銷售數字瘋狂膨脹。爲什麼我的Facebook轉換跟蹤像素值不正確?
如Facebook給出的跟蹤代碼如下:
<!-- Facebook Conversion Code for Checkout -->
<script type="text/javascript">
var fb_param = {};
fb_param.pixel_id = 'myID';
fb_param.value = '0.00';
fb_param.currency = 'USD';
(function(){
var fpw = document.createElement('script');
fpw.async = true;
fpw.src = '//connect.facebook.net/en_US/fp.js';
var ref = document.getElementsByTagName('script')[0];
ref.parentNode.insertBefore(fpw, ref);
})();
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/offsite_event.php?id=myID&value=0&currency=USD" /></noscript>
我加入到結賬頁面中Shopify的代碼如下。我設定了這個值,但是否則它是一樣的。已知該值設置變量適用於GA跟蹤。
<!-- Facebook Conversion Code for Checkout -->
<script type="text/javascript">
var fb_param = {};
fb_param.pixel_id = 'myID';
fb_param.value = '{{ total_price }}';
fb_param.currency = 'USD';
(function(){
var fpw = document.createElement('script');
fpw.async = true;
fpw.src = '//connect.facebook.net/en_US/fp.js';
var ref = document.getElementsByTagName('script')[0];
ref.parentNode.insertBefore(fpw, ref);
})();
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/offsite_event.php?id=myID&value=0.01&currency=USD" /></noscript>
不知道爲什麼我得到非常大的數字一樣6487.00,當單成交銷量很少超過1000
這個問題似乎是脫離主題,因爲它更適合http://webmasters.stackexchange.com/ – Igy