Connect Google Analytics
You need Service account key (JSON) and Property ID. About two minutes.
1Get these from Google Analytics
Service account key (JSON)
{"type": "service_account", …}- In Google Cloud, enable the Google Analytics Data API for your project.
- Open Service accounts and click Create service account.
- Open the account, go to Keys, then Add key, Create new key, and choose JSON.
- In GA4 Admin, Property access management, add the account's email as a Viewer.
- Open the downloaded JSON file and copy all of it.
In Google Cloud, enable the Google Analytics Data API, create a service account and download a JSON key. Paste the whole file. Then add the service account's email as a Viewer in GA4 Admin, Property access management.
Open the pagehttps://console.cloud.google.com/iam-admin/serviceaccounts
Property ID
123456789- Open Google Analytics and click Admin.
- Under Property, open Property details.
- Copy the numeric Property ID.
GA4 Admin, Property details. The number, or properties/123456789.
Open the pagehttps://analytics.google.com/analytics/web/
2Add it to CreditBar
- Open CreditBar from the menu bar and choose Settings, then Accounts.
- Click Add account and pick Google Analytics.
- Paste the Service account key (JSON) and the Property ID into the matching fields, and give the account a label you will recognise.
- Click Test connection, then Add. Numbers appear in the menu bar within a minute.
Keys are stored in your Mac's Keychain and only ever sent to Google Analytics. Nothing passes through a CreditBar server.
3What it reads
- Reports
- exchanges a JWT signed with the service account key for a one hour read-only token
- Calls
- https://oauth2.googleapis.com/token
- Refreshes
- At most every 15 minutes
- API docs
- Google Analytics reference, checked 2026-09-28
Active users are counted per day, so someone who comes back on three days counts three times across a longer window. Days follow the property's time zone.