简体   繁体   English

将 GA4 连接添加到 AWS AppFlow

[英]Adding GA4 connection to AWS AppFlow

I am trying to add an AppFlow connection to an existing GA4 account, GA4 is already up and running and even pushing data to BigQuery.我正在尝试将 AppFlow 连接添加到现有的 GA4 帐户,GA4 已经启动并正在运行,甚至将数据推送到 BigQuery。

However, when I try to create the connection in Appflow to start a flow from GA4 to Redshift.但是,当我尝试在 Appflow 中创建连接以启动从 GA4 到 Redshift 的流程时。 I get this error message我收到此错误消息

An error occured while creating the connection ga4.
Error authenticating to connector: Failed to validate Connection while attempting "ValidateCredentials with CustomConnector" with connector failure The request failed because the service Source Google Analytics 4 returned the following error: Details: Google Analytics 4 returned error message - Request failed with Status Code: 403, Error Reason: Forbidden. (Service: null; Status Code: 400; Error Code: Client; Request ID: null; Proxy: null)

在此处输入图像描述

I have followed this documentation.我已遵循此文档。 https://docs.aws.amazon.com/appflow/latest/userguide/connectors-google-analytics-4.html https://docs.aws.amazon.com/appflow/latest/userguide/connectors-google-analytics-4.html

I was able to create a GA UA connection, but it used a slightly different OAuth Configuration.我能够创建一个 GA UA 连接,但它使用了稍微不同的 OAuth 配置。

My GCP App is set to Production and is External, my Google Analytics API is enabled and the OAuth Web Application creds are created, and the Authorized redirect URIs is set to https://us-east-1.console.aws.amazon.com/appflow/oauth as suggested by the documentation.我的 GCP 应用程序设置为生产并且是外部的,我的 Google Analytics API 已启用并创建了 OAuth Web 应用程序信用, Authorized redirect URIs设置为https://us-east-1.console.aws.amazon.com/appflow/oauth按照文档的建议。

When I add the clientID and clientSecret to AppFlow's connection and click connect, I get a google login pop up prompt, and when I login in it asks me to allow amazon.com to access my data and pull data etc, which I do allow, then the pop up disappears and the above error pops up in AWS.当我将 clientID 和 clientSecret 添加到 AppFlow 的连接并单击连接时,我会弹出一个谷歌登录提示,当我登录时,它会要求我允许 amazon.com 访问我的数据并提取数据等,我允许,然后弹出窗口消失,并在 AWS 中弹出上述错误。

在此处输入图像描述

We had this issue and received this response from Amazon - after also enabling GA Admin API the connection worked我们遇到了这个问题并收到了来自亚马逊的回复 - 在启用 GA Admin API 之后连接正常

I would like to inform you that the user has to enable access to "Google Analytics API" as well as "Google Analytics ADMIN API" for successful connection through GA4 connector.我想通知您,用户必须启用对“Google Analytics API”和“Google Analytics ADMIN API”的访问权限才能通过 GA4 连接器成功连接。

Therefore, I kindly request you to verify and enable both API's mentioned above if not done already.因此,我恳请您验证并启用上述两个 API(如果尚未完成)。

I understand that the AWS documentation to setup GA4 with AppFlow only mentions enabling the "Google Analytics API" and not the "Google Analytics Admin API".我知道使用 AppFlow 设置 GA4 的 AWS 文档只提到启用“Google Analytics API”而不是“Google Analytics Admin API”。 Hence I will ask the internal team to get it updated.因此,我会要求内部团队对其进行更新。 I apologize for the inconvenience you faced due to this issue.对于因此问题给您带来的不便,我们深表歉意。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM