Google Analytics Integration Setup
Getting Started
Use this guide to connect Google Analytics to your BalkanID tenant. You will need access to the Google Cloud console, administrator access in Google Analytics, and access to the Integrations section in BalkanID.
BalkanID connects to Google Analytics with a Google Cloud service account. You do not need to complete an OAuth consent flow, and you do not need to configure domain-wide delegation.
Requirements:
Before you begin, collect the following values:
Service Account JSON Key
Service Account Email
Google Analytics Account ID
Configure Google Analytics within your BalkanID tenant
Sign in to the Google Cloud console and select an existing project or create a new one.
Go to APIs & Services > Library, search for the Google Analytics Admin API, and click Enable.
Go to IAM & Admin > Service Accounts and click Create service account. Give it a name and click Done.
Open the service account, go to the Keys tab, click Add key > Create new key, choose JSON, and click Create. Your browser downloads the key file. The contents of this file are your Service Account JSON Key.
Copy the service account's email address from the Details tab. This is your Service Account Email.
Sign in to Google Analytics and go to Admin > Account access management.
Click +, then Add users. Enter the service account email address, assign the Administrator role, and click Add.
Note your Google Analytics Account ID. You can find it under Admin > Account settings. This value is optional: leave it empty in BalkanID to sync every account the service account can see.
In BalkanID, go to Integrations and click Add integration.

Search for Google Analytics, select it, and click Next.

Under Select Extraction Type, choose Direct Configuration. Paste the contents of your key file into Service Account JSON Key, enter the Service Account Email, and optionally enter the Google Analytics Account ID.

Click Next to move onto Optional Configuration.
Fill Optional Configuration, if required.

Once you have filled in the information, click Save. Your integration is now configured and you will see the status of the integration displayed alongside other integrations on the Integrations page. When data is available, the integration Status column will read Connected and the integration Message will read Data available.
What BalkanID extracts
BalkanID syncs the users in your Google Analytics accounts and the access each one holds:
Users — every user with an access binding, identified by email address.
Accounts and Properties — the containers that access is granted on.
Roles — the predefined roles Google Analytics assigns, such as Administrator, Editor, Analyst and Viewer.
Because account-level roles are inherited by every property in the account, BalkanID also records the property access a user receives that way, so an access review shows the full picture rather than only directly granted access.
Data restrictions (No Cost Metrics and No Revenue Metrics) are recorded alongside the role they modify.
Integration Scopes
Google Analytics (Read) — reads the accounts and properties the service account can see.
N/A
Google Analytics User Permissions (Read) — reads the users assigned to each account and property, and the roles they hold.
N/A
Last updated
Was this helpful?

