2013-02-11 143 views
0

我已经定义了一些自定义指标和自定义维度。我可以在我的自定义报告中看到并使用它们,或者在标准报告中将它们用作次级维度。如何从Google Core Reporting API访问自定义指标和自定义维度

我无法从Core Reporting API访问它们。我希望能够以类似于自定义变量的方式提取它们。

我迄今无法做到这一点,或无法找到此的任何文档除了这个参考

https://developers.google.com/analytics/devguides/platform/features/customdimsmets#reporting

After the collection, configuration, and other processing stages of 
the pipeline are complete, custom dimensions and metrics become available 
via the web reporting interface or th Core Reporting API. 

对我来说这倒像是它应该是可能的。

任何帮助将不胜感激!

回答

0

检查了这一点:https://developers.google.com/resources/api-libraries/documentation/analytics/v3/java/latest/

检查方法:Analytics.Data.Ga.get(字符串ID, 字符串的startDate, 字符串结束日期, 字符串度量) 参数:

.....

指标 - 逗号分隔Google Analytics指标的对比列表。例如,'ga:访问,ga:综合浏览'。至少必须指定一个指标。

我认为第四个参数是一种基于自定义变量,维度或指标检索过滤报表的方法。

相关问题