我想在 Analytic 的电子商务模块中记录交易。但是他们没有注册,我不知道为什么。页面跟踪发生在页面顶部:
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22238012-1']);
_gaq.push(['_trackPageview']);
就在电子商务代码之前,我正在跟踪一个事件。
_gaq.push(['_trackEvent', 'Conference', 'Signup', '1']);
事件和页面跟踪都出现在 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
你知道为什么不吗?
谢谢, 迈克尔