Skip to main content
All CollectionsConnect Your Data
Google Analytics (GA4)- Connect Your Data
Google Analytics (GA4)- Connect Your Data

This page contains the setup guide and reference information for the Google Analytics 4 source connector.

Mor Shabtai avatar
Written by Mor Shabtai
Updated over a week ago

Google Analytics (GA4)- Connect Your Data

The recommended way to set up the Google Analytics 4 connector is to create a Service Account and set up a JSON key file for authentication. Please follow the steps below to set up the connector using this method.

  1. Go to "Integrations" section in your Alta account and select Google Analytics.

    Alta Google Analytics (GA4) Integration
  2. You need to choose "Service Account Key Authenticator"

    Alta Google Analytics (GA4) Integration

  3. You need to enter a JSON key in order to connect your data, the following steps are necessary for getting this key:

Create a Service Account for authentication​

  1. Sign in to the Google Account you are using for Google Analytics as an admin.

  2. Go to the Service Accounts page in the Google Developers console.

  3. Select the project you want to use (or create a new one) and click Continue.

  4. Click + Create Service Account at the top of the page.

  5. Enter a name for the service account, and optionally, a description. Click Create and Continue.

  6. Choose the role for the service account. We recommend the Viewer role (Read & Analyze permissions). Click Continue.

  7. Select your new service account from the list, and open the Keys tab. Click Add Key > Create New Key.

  8. Select JSON as the Key type. This will generate and download the JSON key file that you'll use for authentication. Click Continue.

Enable the Google Analytics APIs​

Before you can use the service account to access Google Analytics data, you need to enable the required APIs:

  1. Go to the Google Analytics Reporting API dashboard. Make sure you have selected the associated project for your service account, and enable the API. You can also set quotas and check usage.

  2. Go to the Google Analytics API dashboard. Make sure you have selected the associated project for your service account, and enable the API.

  3. Go to the Google Analytics Data API dashboard. Make sure you have selected the associated project for your service account, and enable the API.

Enable the Google Analytics APIs​

  1. Go to the IAM & Admin setting (here).

  2. Copy Alta principal email from the list of "view by prinicipals (it should look like [email protected]).

  3. Go to your Google Analytics Admin settings (here), under property settings, click property->property access management. In the new window, click plus at the top right corner and add a new viewer user with the email you copied before.

Alta Google Analytics (GA4) Integration

Did this answer your question?