Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Connecting GA4 with 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.

However, when I try to create the connection in Appflow to create a GA4 connection. I get this error message from AWS saying GCP produced an error

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)

KayRashwan_1-1671876843915.png

I have followed this documentation. 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.

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.

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.

KayRashwan_2-1671876908916.png

 

 

0 1 1,110
1 REPLY 1

Former Community Member
Not applicable

It is unlikely anyone on this forum can help with this issue. It is best to ask a similar community that focuses on AWS Appflow.

Top Labels in this Space