如何以编程方式使用 Google Analytics API 函数获取指标和维度列表?
我正在尝试使用 Google Analytics API,需要通过 Google Analytics API 获取指标和维度列表.
I am trying to use Google Analytics API, need to get metrics and dimensions list through Google Analytics API.
如何在 php 中使用 Google Analytics API 函数获取指标和维度列表?
How to get metrics and dimensions list using Google Analytics API functions in php?
推荐答案
这不能通过 API 获得.
This is not available through the API.
维度和指标的完整列表可在 developer.google.com/analytics 站点获得:
the full list of dimensions and metrics is available at the developer.google.com/analytics site:
https://developers.google.com/analytics/devguides/reporting/core/dimsmets
自从发布此答案以来,该领域取得了一些进展,现在可以在 api 中使用.我无法删除此答案,因为它已被接受检查@augustin 的回复
Since this answer was posted there were some developments in this area and now this is available in an api. I can't delete this answer since it's accepted check the response from @augustin
Google Analytics 元数据 API 元数据 API 返回Google Analytics 报告 API 中公开的列(即维度和指标)的列表和属性.返回的属性包括 UI 名称、描述、段支持等.目前,响应只是 Google Analytics Core Reporting API V3 和 Google Analytics Reporting API v4 的元数据.实时和 MCF 元数据不可用.
The Google Analytics Metadata API The Metadata API returns the list and attributes of columns (i.e. dimensions and metrics) exposed in the Google Analytics reporting APIs. Attributes returned include UI name, description, segments support, and more. At this time the response is only metadata for the Google Analytics Core reporting API V3 and the Google Analytics Reporting API v4. Real-time and MCF metadata is not available.
相关文章