我必须同时从 GA 电子商务中检索尽可能多的不同指标。我正在使用 google api ruby 客户端。并且不断出现错误:
"message"=>"Selected dimensions and metrics cannot be queried together."
例如,对于此请求:
result = client.execute(api_method: api_method.data.ga.get, parameters: {
'ids' => 'ga:95561781',
'start-date' => Date.new(2006,1,1).to_s,
'end-date' => Date.today.to_s,
'dimensions' => 'ga:source,ga:medium,ga:country,ga:transactionId,ga:affiliation,ga:productSku,ga:productName',
'metrics' => 'ga:sessions,ga:transactionRevenue,ga:transactions,ga:uniquePurchases,ga:totalValue,ga:transactionTax'
})
我如何知道哪些请求指标和维度可以组合,哪些不能组合?我怎样才能检索尽可能多的数据?