dpp80346 2015-07-08 10:27
浏览 104

我们是否可以使用PHP中的Reporting API从Google Analytics中获取所有用户和会话

I want to fetch all users, session and other tables data from google analytic account.

I check the GA Reporting API, But it provides value in statistics format like total user, session count etc.

Is there any way to fetch the GA data in list format like.

  • List of all users including all fields.
  • List of all session including all fields.
  • Data from all the table available in this link

I also check the GA DEV TOOL, but it provides only counts, not the details.

  • 写回答

1条回答 默认 最新

  • doushi5913 2015-07-08 10:39
    关注

    The Google Analytics Core reporting API gives you a wide range of dimensions and metrics that you can select out of your Google analytics account.

    The format of requests is

    Authorization: Bearer {oauth2-token}
    
    GET https://www.googleapis.com/analytics/v3/data/ga
      ?ids=ga:12345
      &start-date=2008-10-01
      &end-date=2008-10-31
      &metrics=ga:sessions,ga:bounces
    

    There are some limitations that you should be aware of. You are limited to 7 dimensions and 12 metrics per request. You are limited to 10000 requests per day pre profile.

    An alternative would be to get a Premium Google analytics account where Google will help you extract your data into bigquery making analysis easer.

    As to what format you extract it in that is up to you the API returns the data as JSon, you will have to format it into your list.

    评论

报告相同问题?

悬赏问题

  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计