How to create a read-only Google Analytics API key
Add a Google Cloud service account to one GA4 property as a Viewer.
- 01
Enable the Google Analytics Data API in a Google Cloud project
- 02
Create a service account and copy its email address
- 03
Open Access Management for the property
AdminPropertyAccess Management - 04
Add the service account's email with the Viewer role
- 05
Create a JSON key for the service account and store it safely

