This article provides an in-depth walkthrough of how to configure your Google Analytics 4 (GA4) property for use with Agility PR Solutions. It includes all steps for checking access, enabling APIs, and generating service account credentials.
Use this guide if you are the technical admin or Google Analytics account owner responsible for setting up GA4 access for reporting integration.
🔹 Ensure You Have a GA4 Property
Log into Google Analytics with your analytics-enabled Google account
Click the gear icon labeled Admin in the lower-left corner
Ensure you have:
An Analytics Account
A GA4 Property listed in the center column
A Property ID shown in brackets beside the property name
If these are missing, ask the person who set up the analytics account to create a GA4 property and grant you access.
🔹 Create a Service Account in Google Cloud
Go to Google IAM Admin Console
From the left-hand panel, click Service Accounts
If no service account exists or credentials are missing, you can create a new one:
3. Click + CREATE SERVICE ACCOUNT at the top of the screen
4. Enter a name and optional description
5. Click Create and Continue
6. In the Select a Role dropdown, choose:
Basic > Viewer (sufficient for reporting access)
7. Under Service account admins role, enter your Google email address
8. Click Done
🔹 Generate the JSON Credentials Key
After account creation, return to the Service Accounts page
Click the name of your newly created account
Navigate to the KEYS tab
Click Add Key > Create new key
In the popup, ensure JSON is selected
Click Create
The JSON key file will download to your device.
✅ Store this file securely. It can only be downloaded once.
More info: Creating and managing service account keys
🔹 Enable Required Google APIs
You must activate the following two APIs in your project:
If not yet enabled:
Click Enable when prompted
More info:
🔹 Grant GA4 Property Access to the Service Account
Return to Google Analytics
Click the gear icon (Admin) in the lower left
Under your GA4 property, click Property Access Management
Click the + icon > Add users
Enter the service account email
Assign the role: Viewer
Click Add
⏳ Permissions typically apply within minutes, but may take up to 1 hour.
More info: Google Analytics user permissions
🔹 Final Step: Share the Credentials Securely
Send the downloaded JSON key to your Agility implementation contact (e.g., via encrypted email if possible).
⚠️ Once sent, delete the email from your sent folder. Do not resend or share the file insecurely.
Make sure to keep a local, secure copy of the key in case future access or re-connection is needed.
📋 Support & Additional Resources