0
我想在分析的電子商務模塊中記錄交易。他們沒有註冊,但我不知道爲什麼。頁面跟蹤發生在頁面頂部:分析電子商務,未註冊的交易
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22238012-1']);
_gaq.push(['_trackPageview']);
和就在電子商務代碼之前,我正在跟蹤一個事件。
_gaq.push(['_trackEvent', 'Conference', 'Signup', '1']);
事件和頁面跟蹤都出現在Google Analytics中,但該位沒有。
_gaq.push(['_addTrans',
"26", // transaction ID - required
"", //store name
"5160", // total - required
"0", //tax
"0.0", //shipping
"", //city
"", //state
"DK" // country
]);
_gaq.push(['_addItem',
"26", // transaction ID - necessary to associate item with transaction
"1", // SKU/code - required
"Paid Attendant", // product name
"", //category
"3195", // unit price - required
"1" // quantity - required
]);
_gaq.push(['_addItem',
"26", // transaction ID - necessary to associate item with transaction
"3", // SKU/code - required
"Extra Material", // product name
"", //category
"1965.00", // unit price - required
"1" // quantity - required
]);
_gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
你有什麼想法,爲什麼不呢?
謝謝,Michal