Setup
Create a service account
- Go to Google Cloud Console
- Create or select a project
- Enable both of these APIs:
- Go to IAM & Admin > Service Accounts
- Create a new service account
- Download the JSON key file
Grant access in GA4
- Open your Google Analytics property
- Go to Admin > Property Access Management
- Add the service account email as a Viewer
Add the secrets
Add the following secrets:
| Secret Name | Value |
|---|---|
GOOGLE_ANALYTICS_PROPERTY_ID | Your GA4 property ID (e.g., 123456789) |
GOOGLE_ANALYTICS_CREDENTIALS | The full JSON service account key |
Capabilities
Adapt can query your Google Analytics data. Analyze traffic, user behavior, and conversion metrics.