Google AnalyticsAPI不会返回每个维度的流量(例如国家/浏览器)

时间:2012-09-19 12:05:34

标签: google-analytics analytics google-analytics-api web-analytics web-analytics-tools

当我在一段时间内(例如2012-08-01至2012-09-01)查询Google Analytics(分析)以获取由ga:userDefinesValue过滤而未指定维度的流量(ga:visits,ga:pageviews)时,我得到了结果:

Your query matched 1 results and the API only returned the following 1 results:

    ga:visits   ga:pageviews 
    7           21

问题在于,当我向查询添加任何维度时(例如ga:country或ga:pagePath),我得到一个空的结果集:

(none) 
no results found

这种行为可能是什么原因?
感谢。

1 个答案:

答案 0 :(得分:0)

根据您的说明,您声明您使用的是country和pagePath作为指标,因为它们是尺寸,所以会失败。

将ga:country添加为维度,报告应该有效。

相关问题