Google Analytics Service Account
This guide provides step-by-step instructions for connecting Google Analytics 4 to Unistream.
Prerequisites
You will need:
A Google account with access to Google Cloud Console
Admin or Editor access to your GA4 property
Unistream platform credentials
Setup Steps
1. Create a Service Account
Open Google Cloud Console: https://console.cloud.google.com/
If you don't have a project, create one:
Click the project selector in the top left corner


Select "New Project"


Enter a project name and click "Create"


Navigate to IAM & Admin → Service Accounts


Click + CREATE SERVICE ACCOUNT


Fill in the details:
Service account name:
ga4-unistreamService account ID: auto-generated
Click DONE


2. Generate JSON Key
In the Service Accounts list, find your newly created account
Click the three dots (⋮) → Manage keys


Click ADD KEY → Create new key


Select JSON and click CREATE
The key file will download automatically — store it securely


3. Enable APIs
In Google Cloud Console, go to APIs & Services → Library


Search for and enable the following APIs:
Google Analytics Data API


Google Analytics Admin API


Click ENABLE for each API
4. Grant Access in GA4
Open Google Analytics: https://analytics.google.com/
Go to Admin (gear icon in the bottom left)

Select your Property
Navigate to Property Access Management

Click + → Add users

Enter your Service Account email:
Find this in your downloaded JSON file under
client_emailFormat:
[email protected]
Select Role: Viewer
Click Add

5. Find Your Property ID
In Google Analytics, go to Admin
Select your Property
Go to Property Settings
Copy the Property ID (a numeric value, e.g.,
123456789)
Last updated

