How to get metrics and dimensions list using Google Analytics API functions programticly?(如何以编程方式使用 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.
这篇关于如何以编程方式使用 Google Analytics API 函数获取指标和维度列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何以编程方式使用 Google Analytics API 函数获取指标和维度列表?


- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- PHP - if 语句中的倒序 2021-01-01