add more detailed instructions for google analytics

This commit is contained in:
Raicuparta 2025-01-13 18:51:08 +01:00 committed by GitHub
parent 49e95d5294
commit 70ed8b0315
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,3 +73,7 @@ Base64-encoded JSON object. Credentials of a Google service account with permiss
"client_x509_cert_url": "XXX"
}
```
The Google service account is created on [Google Cloud](https://console.cloud.google.com). Specifically, you need to create the credentials on [APIs and Services -> Google Analytics Data API -> Credentials](https://console.cloud.google.com/apis/api/analyticsdata.googleapis.com/credentials). Then I guess (because I don't remember if that's how I did it back then) you fill in the json above, encode it with base64, and save it in the `GOOGLE_SERVICE_ACCOUNT` secret.
You also need to note the "email" address of those credentials, and give it view permissions in [Google Analytics](https://analytics.google.com/analytics), under Admin -> Account -> Account Access Management. Fun stuff.