如何使用Google Analytics(分析)API访问Google Analytics(分析)中的用户资源管理器数据 [英] How to access user explorer data in google analytics using Google analytics API

查看:73
本文介绍了如何使用Google Analytics(分析)API访问Google Analytics(分析)中的用户资源管理器数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Google Analytics(分析)API访问User Explorer数据,以JSON值的形式获取报告.使用此JSON值,我可以创建用于分析的Web应用程序仪表板.在此链接

I would like to access User Explorer data using Google analytics API to get the report as JSON value. Using this JSON value I can create my web application dashboard for analytics. I couldn't found any metrics and dimensions to get User Explorer details in this link

如果要使用Google Analytics(分析)API访问用户资源管理器数据的任何相关文档或链接,请共享

Please share if any related documents or any links to access User Explorer data using Google analytics API

推荐答案

您无法通过API访问用户资源管理器报告.Google已决定不提供此数据.

You cannot access the user explorer report via the API. Google has decided not to make this data available.

您可以推出自己的解决方案.为此,您需要两个自定义维度.

You might roll your own solution. For that you need two custom dimensions.

一个是客户端ID,您可以在此对同一问题的答案不完整.

One is the client id, and you can see how to get this in this incomplete answer to the same question.

它是不完整的,因为它不允许您按会话细分访问.因此,您需要一个会话ID作为自定义维度.存储会话ID实际上很简单-向会话范围的自定义维度发送随机数,因此根据定义,每个会话将仅包含您发送的最后一个值.

It is incomplete because it does not allow you to break down a visit by sessions. So you need a session id as custom dimension. Storing a session id is actually rather simple - send a random number to a session scoped custom dimension, so each session will, by definition, contain only the last value you send along.

现在,您可以下载clientId和sessionID以及相关指标,并通过sessionID细分某些外部软件中的clientID数据.

Now you can download clientId and sessionID plus your relevant metrics, and break down the clientID data in some external software by sessionID.

这不会帮助您处理已收集的数据,即使在中等规模的站点上,您也可能很快会遇到API限制,但是有了免费的Google Analytics(分析)帐户,这是我唯一想到的方法.使用GA 360帐户,您可以使用BigQuery重新创建用户资源管理器"报告.

This won't help you with data that has already been collected, and even on a moderately large site you will probably run into API limits pretty quickly, but with a free GA account it is the only way I can think of. With a GA 360 account you can use BigQuery to recreate the User Explorer report.

这篇关于如何使用Google Analytics(分析)API访问Google Analytics(分析)中的用户资源管理器数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆