Google Analytics Connection Configuration
  • 07 Dec 2022
  • PDF

Google Analytics Connection Configuration

  • PDF

Article Summary

Note

This is a machine-translated version of the original Japanese article.
Please understand that some of the information contained on this page may be inaccurate.

summary

This is a help page for setting up connection information for Google Analytics.

How to get JSON Key

When creating a new project

  1. Log in to the Google API Console and create a new project. To create a new project, click the location of the red frame.
    1_apiandservice.png

  2. Fill in the required information and click Create.
    2_newproject.png

  3. Create a service account from the credentials screen.
    3_createserviceaccount.png

  4. Fill in the required information and create a service account. Grant roles as needed. (trocco works without permissions.) )
    4_serviceaccount1.png

5_serviceaccount2.png

6_serviceaccount3.png

  1. On the service account screen, click Manage Keys from the operations to the right of the service account in the list.
    7_createkey1.png

  2. Click Add Key, select JSON as the key type on the Create Private Key screen, and click Create.
    8_createkey2.png

9_createkey3.png

  1. The JSON key will be downloaded, which will be used when creating the trocco connection information.

  2. Finally, enable the Google Analytics Reporting API and Google Analytics API from your library.
    image.png

If you want to use an existing project

  1. When you created a service account in the past, you created a JSON key, and if you have a download file from that time, you can use it.

  2. If you did not create a JSON key when creating a service account, or if you created one but do not have a download file, log in to Google API Console , move to the service account screen from your credentials, and click the email address of the service account.
    1_mailaddress.png

  3. Select Manage Keys from the operation at the far right of the service account you want to use.
    2_keymanage.png

  4. Click Create new key from Add key, select JSON as the key type on the Create Private Key screen, and click Create.
    4_createnewkey.png

  5. The JSON key will be downloaded, which will be used when creating the trocco connection information.

How to get the view ID

  1. Sign in to Google Analytics. Then select Manage on the left bar.
    image.png

  2. Select the view settings for the column for the rightmost view.
    image.png

The view ID appears at the location on the diagram.
image.png

Register your service account with Google Analytics

You can add as many users as you want. Here's how to add a new user to an account, property, or view:

  1. Sign in to Google Analytics.

  2. Click Administration, and then click Manage Account Users.

  3. In the list of permissions for the account, click +, and then click Add User.

  4. Enter the email address of the Google account of the user you want to add.

  5. Select a permission. To use it, you need to have Viewer permissions or higher.
    * Please see here for details on permissions.

  6. Click Add.


Was this article helpful?