1
使用經典谷歌分析,添加交易包括「城市」,「州」和「國家」作爲選項。使用Universal Analytics添加交易時,如何記錄「城市」,「州」和「國家」?
_gaq.push(['_addTrans',
'1234abc', // Transaction ID*
'Tech Parts', // Affiliation
'45.00', // Total* (no tax or shipping)
'4.50', // Tax
'10.00', // Shipping
'Austin', // City
'Texas', // State or province
'USA' // Country
]);
// * Designates the required items
使用通用Analytics(分析),這些標籤被拆除:
ga('ecommerce:addTransaction', {
id: '1234abc', // Transaction ID*
affiliation: 'Tech Parts', // Store Name
revenue: '59.50', // Total
shipping: '10', // Shipping
tax: '4.50' // Tax
});
// * Designates the required items
我怎麼能記錄通用分析這些價值觀?