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

  1. Open Google Cloud Console: https://console.cloud.google.com/

  2. 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"

  3. Navigate to IAM & Admin → Service Accounts

  4. Click + CREATE SERVICE ACCOUNT

  5. Fill in the details:

    • Service account name: ga4-unistream

    • Service account ID: auto-generated

  6. Click DONE

2. Generate JSON Key

  1. In the Service Accounts list, find your newly created account

  2. Click the three dots (⋮) → Manage keys

  3. Click ADD KEY → Create new key

  4. Select JSON and click CREATE

  5. The key file will download automatically — store it securely

3. Enable APIs

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

  2. Search for and enable the following APIs:

    • Google Analytics Data API

    • Google Analytics Admin API

  3. Click ENABLE for each API

4. Grant Access in GA4

  1. Open Google Analytics: https://analytics.google.com/

  2. Go to Admin (gear icon in the bottom left)

  3. Select your Property

  4. Navigate to Property Access Management

  5. Click + → Add users

  6. Enter your Service Account email:

  7. Select Role: Viewer

  8. Click Add

5. Find Your Property ID

  1. In Google Analytics, go to Admin

  2. Select your Property

  3. Go to Property Settings

  4. Copy the Property ID (a numeric value, e.g., 123456789)

Last updated