Analytics
GA4 credentials not set.
Connect GA4
- In Google Cloud Console, create (or reuse) a service account. Give it no roles — GA4 access is granted inside Analytics itself.
- Generate a JSON key for that service account and download it.
- In Google Analytics · Admin · Property access management, add the service account email (ends in
@*.iam.gserviceaccount.com) as Viewer on propertyG-ZYDDG44BL0. - Copy the numeric Property ID from Admin · Property settings.
- Add to
.env.local:GA4_PROPERTY_ID=123456789 GOOGLE_APPLICATION_CREDENTIALS_JSON='{"type":"service_account",...}'The JSON must be on one line (single-quoted). For production, set the same two vars on your host.