Google Analytics

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", …}
  1. In Google Cloud, enable the Google Analytics Data API for your project.
  2. Open Service accounts and click Create service account.
  3. Open the account, go to Keys, then Add key, Create new key, and choose JSON.
  4. In GA4 Admin, Property access management, add the account's email as a Viewer.
  5. 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 page

https://console.cloud.google.com/iam-admin/serviceaccounts

Property ID

123456789
  1. Open Google Analytics and click Admin.
  2. Under Property, open Property details.
  3. Copy the numeric Property ID.

GA4 Admin, Property details. The number, or properties/123456789.

Open the page

https://analytics.google.com/analytics/web/

2Add it to CreditBar

  1. Open CreditBar from the menu bar and choose Settings, then Accounts.
  2. Click Add account and pick Google Analytics.
  3. Paste the Service account key (JSON) and the Property ID into the matching fields, and give the account a label you will recognise.
  4. 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.