[英]Accessing data from different properties in google analytics
I have different properties in Google Analytics account. 我在Google Analytics帐户中拥有不同的属性。 One for the main website and other for the android app.
一个用于主网站,另一个用于Android应用程序。 I am currently using Google Embed API in Javascript to access the data from the first property.
我目前正在使用Javascript中的Google Embed API来访问第一个属性中的数据。 Now I want to access the data from the second property as well.
现在我想要从第二个属性访问数据。 Is there any way to access the data from the other property in the same code.
有没有办法从同一代码中的其他属性访问数据。
I'm new to Google Analytics. 我是谷歌分析的新手。 It would be really helpful if you could also provide any reference material on how to do it.
如果您还可以提供有关如何操作的任何参考资料,那将非常有用。
There is no equivalent to the Embed API for Android, but there are Java client libraries for querying the various Google APIs that should do what you need. 没有相当于Android的Embed API,但有一些Java客户端库可用于查询应该满足您需求的各种Google API。
This page lists all the client libraries for various languages and should be useful to you in general: 此页面列出了各种语言的所有客户端库,一般对您有用:
https://developers.google.com/analytics/devguides/reporting/core/v3/gdataLibraries https://developers.google.com/analytics/devguides/reporting/core/v3/gdataLibraries
Thanks for the help. 谢谢您的帮助。 The solution was fairly simple.
解决方案非常简单。 All I had to do was to change the ID in the Query to the value of the ID of the account I wanted to use and the request was sent corresponding account.
我所要做的就是将查询中的ID更改为我想要使用的帐户ID的值,并将请求发送到相应的帐户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.