0
我有一個電子商務代碼,其中我只傳遞交易ID和數量詳細信息。但是這不記錄在GA API中。下面是代碼。GA電子商務代碼問題
<script type="text/javascript" language="javascript">
var _gaq = _gaq || [];
_gaq.push(
['mainind._setAccount', 'UA-12345-1'],
['mainind._setDomainName', '.abcd.com'],
['mainind._setAllowHash', false],
['mainind._trackPageview'],
['mainind._trackPageLoadTime']
);
_gaq.push(['_addTrans',
'136069322',
'',
'',
'',
'',
'',
'',
''
]);
_gaq.push(['_addItem',
'136069322',
'',
'',
'',
'',
'4'
]);
_gaq.push(['_trackTrans']);
(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(ga);
})();
請幫助我走出這個..
感謝, 阿肖克·維爾馬
KD你能幫我出來嗎? – 2013-05-07 07:51:28