转到Universal Analytics - 如何发送城市,州,国家/地区

时间:2014-03-06 12:19:38

标签: google-analytics

出于某种原因,City,State,Country现在不用于Universal Analytics

https://developers.google.com/analytics/devguides/collection/upgrade/reference/gajs-analyticsjs

新版本:

ga('ecommerce:addTransaction', {
  'id': '1234',                     // Transaction ID. Required
  'affiliation': 'Acme Clothing',   // Affiliation or store name
  'revenue': '11.99',               // Grand Total
  'shipping': '5',                  // Shipping
  'tax': '1.29'                     // Tax
});

旧版本:

_gaq.push(['_addTrans',
  '1234',           // Transaction ID. Required
  'Acme Clothing',  // Affiliation or store name
  '11.99',          // Total. Required
  '1.29',           // Tax
  '5',              // Shipping
  'San Jose',       // City
  'California',     // State or Province
  'USA'             // Country
]);

但是我现在如何发送城市,州和国家? Google会为自己计算这些变量吗?

0 个答案:

没有答案