Google Analytics Resource Connector

Hi @Shift_Developer,
I believe this error has to do with how you have set up your permissions / scopes on your google cloud. Have you enabled the google analytics data api and added the correct scopes and permissions there?

This document can help you set it up properly.

Let me know if this helps.

Maybe this is just a generic error message from google...

I never even got to a screen to grant relevant scopes.

To be clear I'm trying to connect via OAuth consent, the app is not mine to configure in GCP, it belongs to retool.

@Shift_Developer,

Let me clarify what it is you want to do. You want to hook up a retool resource in order to access the Google analytics data api for your google analytics account? If so, have you set up a project for this on https://console.cloud.google.com and enabled the google analytics data api?

Or is it that you want to establish and integrate google analytics for your current retool site? If it is the latter, I believe you should follow these instructions instead: Collect app usage analytics | Retool Docs

Hey Linda, thanks for sticking with me on this.

I'm following the directions here to setup the resource here Connect to Google Analytics | Retool Docs

okay @Shift_Developer, if you are doing this, you also need to set up your GCP to enable the google analytics data api.

That would mean creating my own app and using that as oppose to the retool integration here. My assumption with this integration is that i'd log in using the OAuth flow and grant relevant scopes requested by the Retool app, similar to how I can connect google sheets to retool without doing anything in GCP.

I've been able to connect my GA data to other third parties (Looker, Clarity) via OAuth flow without any need to do anything in GCP. This does feel like a bug with the retool GA integration....

Ok found the solution here

Go to your [configured apps](https://admin.google.com/ac/owl/list?tab=configuredApps), choose Add App, and OAuth App Name Or Client ID. Search for Retool and select their listings. When you authenticate again you'll see Retool is no longer blocked, and it will ask for permissions to access your GA services.

So this seems to be a prerequisite to connect GA with retool, you need to first allowlist the retool app, note I am using a Google Workspaces account.