--- title: "Connection Configuration for Google Analytics 4" slug: "connection-configuration-google-analytics4" updated: 2024-09-10T11:30:46Z published: 2024-09-10T11:30:46Z canonical: "documents.trocco.io/connection-configuration-google-analytics4" --- > ## Documentation Index > Fetch the complete documentation index at: https://documents.trocco.io/llms.txt > Use this file to discover all available pages before exploring further. # Connection Configuration for Google Analytics 4 ## summary This is the help page for setting up Connection Configuration for Google Analytics 4. There are two ways to set up Connection Configuration for Google Analytics 4 in TROCCO: using a Google account or using a service account. ## Preparation before transfer - In order to use Google Analytics 4 transfers in TROCCO, the following work is required - [Register your email address with Google Analytics](/docs/connection-configuration-google-analytics4/#%E3%83%A1%E3%83%BC%E3%83%AB%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%82%92google-analytics%E3%81%AB%E7%99%BB%E9%8C%B2) - If you wish to authenticate with a service account, you must also do the following - [Set JSON Key](/docs/connection-configuration-google-analytics4/#json-key%E3%82%92%E8%A8%AD%E5%AE%9A) - [Enable API](/docs/connection-configuration-google-analytics4/#api%E3%82%92%E6%9C%89%E5%8A%B9%E5%8C%96) ## Set JSON Key 1. Refer to [Obtaining a Google Cloud JSON](/docs/connection-configuration-google-cloud-json-key) Key to obtain a JSON Key. It is not necessary to grant roles to service accounts. 2. Copy the entire contents of the obtained JSON Key and paste it into the JSON Key form on TROCCO's Create Connection Settings screen. ## Enable API Enable **Google Analytics Data API and****Google Analytics Admin API****from the Library**. ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-google-analytics4-2024-08-29-1-23-0.png) ## Register your email address with Google Analytics Users can be added as many times as needed. Here is how to add a new user to an account, property, or view 1. Log in to [Google Analytics](https://analytics.google.com/analytics/web/provision/#/provision). 2. Click **Manage**, then click **Manage Account Users**. 3. In the **account permissions list**, click **+**, then **Add User**. 4. Enter the email address of the Google account or service account of the user to be added. 5. Select the authority. To use this service, you must have the authority of a **viewer** or higher. *For more information about privileges, please [click here.](https://support.google.com/analytics/answer/2884495) 6. Click **Add.**