简体   繁体   English

使用Google Analytics(分析)API提取数据而无需登录Gmail帐户

[英]Extract data using Google Analytics API without login gmail account

I am using Googe Analytics API. 我正在使用Googe Analytics API。 I had successfully configured google analytics api and get successful data but issue is that when I use any other email account to login and view the page, it says authentication issue. 我已经成功配置了Google Analytics(分析)API并获得了成功的数据,但是问题是,当我使用任何其他电子邮件帐户登录并查看页面时,显示身份验证问题。

I want to access analytics api without gmail login. 我想在没有Gmail登录的情况下访问Analytics API。 I will hard code credentials to for login, but how to do it with javaScript? 我将硬凭证凭证登录,但是如何使用javaScript?

How to get analytics data without login in api? 如何在不登录api的情况下获取分析数据?

So if I am correct, you want to retrieve data from a Google specific account without having to log in or sign in that account. 因此,如果我是对的,您希望从Google特定帐户中检索数据,而不必登录或登录该帐户。

You could use tokens to connect the API rather than manually log in (if that is what you are referring). 您可以使用令牌来连接API,而不是手动登录(如果这就是您所指的)。 Other options could be extracting the data into a virtual repository that you can use for presentation layer on the client side so you don't have to deal with credentials or security flaws on having to log in or hard code the authentication. 其他选择可能是将数据提取到虚拟存储库中,该存储库可用于客户端的表示层,因此您不必登录或对身份验证进行硬编码即可处理凭据或安全漏洞。

This should be do-able on javascript and jquery to make your data viewable. 这应该在javascript和jquery上可以执行,以使您的数据可见。

To query GA without authenticating each time you will need obtain and store the refresh token while authenticating GA. 要在每次都不进行身份验证的情况下查询GA,您需要在身份验证GA时获取并存储刷新令牌。 (not sure if we can retrieve refresh token with Js) (不确定是否可以使用Js检索刷新令牌)

Once we have refresh token we can query API for access token again. 获得刷新令牌后,我们可以再次查询API以获取访问令牌。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 谷歌分析嵌入API,无需谷歌登录谷歌分析 - google analytics embed API without google login to google analytics account Google Analytics API JavaScript显示数据而无需登录仪表板上的用户 - Google Analytics API JavaScript show data without login to users on dashboard 如何在不登录的情况下访问Google Analytics(分析)Api数据 - How To Access Google Analytics Api Data Without Login 每个用户 gmail 帐户的 Google Calendar API - Google Calendar API per user gmail account 使用服务帐户访问Google Analytics API - Google Analytics API access with a service account 无需身份验证即可从javascript访问Google AnalyticsAPI数据 - Accessing Google Analytics API data from javascript without authentication 如何通过Google登录对话框(javascript)无需登录即可访问Google Analytics(分析)API? - How to access Google analytics api WITHOUT logging through google login dialog (javascript)? 使用 Gmail API 和服务帐户发送邮件 - Send mail using Gmail API with service account 如何使用Google Analytics(分析)API提取价值 - how to extract a value with google analytics API Google Analytics API电子商务数据 - Google Analytics API ecommerce data
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM