https://www.growthbook.io/ logo
#announcements
Title
# announcements
a

aloof-optician-88290

07/20/2022, 4:38 PM
Hi! I'm having yet another issue when adding a data source. I'm trying to add Google Analytics but I get an error when trying to authenticate. Also, I am logged in to my company's gmail account, which also has acces to GA so I'm not sure why it's not working. We are not using Google Analytics 4, and there are no other data sources added(also, I deleted
config.yml
).
f

future-teacher-7046

07/20/2022, 4:41 PM
To connect to GA from a self-hosted deployment, there's quite a bit of work required to set up oauth and consent screens within the Google developer console
Once you create all of the oauth flows within Google, there are 2 environment variables you need to set in GrowthBook: https://docs.growthbook.io/self-host/config#google-oauth-settings • GOOGLE_OAUTH_CLIENT_ID • GOOGLE_OAUTH_CLIENT_SECRET
18 Views