Skip to main content

Set Up Google Analytics 4 for Use with Agility (Advanced Guide)

Advanced step-by-step setup guide for GA4 access and credential generation

Updated this week

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

  1. Log into Google Analytics with your analytics-enabled Google account

  2. Click the gear icon labeled Admin in the lower-left corner

  3. 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

  1. 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

  1. After account creation, return to the Service Accounts page

  2. Click the name of your newly created account

  3. Navigate to the KEYS tab

  4. Click Add Key > Create new key

  5. In the popup, ensure JSON is selected

  6. Click Create

The JSON key file will download to your device.

✅ Store this file securely. It can only be downloaded once.


🔹 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

  1. Click the gear icon (Admin) in the lower left

  2. Under your GA4 property, click Property Access Management

  3. Click the + icon > Add users

  4. Enter the service account email

  5. Assign the role: Viewer

  6. Click Add

⏳ Permissions typically apply within minutes, but may take up to 1 hour.


🔹 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

Did this answer your question?