Analytics

GA4 credentials not set.

Connect GA4

  1. In Google Cloud Console, create (or reuse) a service account. Give it no roles — GA4 access is granted inside Analytics itself.
  2. Generate a JSON key for that service account and download it.
  3. In Google Analytics · Admin · Property access management, add the service account email (ends in @*.iam.gserviceaccount.com) as Viewer on property G-ZYDDG44BL0.
  4. Copy the numeric Property ID from Admin · Property settings.
  5. 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.