- 07 Dec 2022
- 2 Minutes to read
-
Print
-
DarkLight
Google Analytics Connection Configuration
- Updated on 07 Dec 2022
- 2 Minutes to read
-
Print
-
DarkLight
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
Log in to the Google API Console and create a new project. To create a new project, click the location of the red frame.
Fill in the required information and click Create.
Create a service account from the credentials screen.
Fill in the required information and create a service account. Grant roles as needed. (trocco works without permissions.) )
On the service account screen, click Manage Keys from the operations to the right of the service account in the list.
Click Add Key, select JSON as the key type on the Create Private Key screen, and click Create.
The JSON key will be downloaded, which will be used when creating the trocco connection information.
Finally, enable the Google Analytics Reporting API and Google Analytics API from your library.
If you want to use an existing project
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.
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.
Select Manage Keys from the operation at the far right of the service account you want to use.
Click Create new key from Add key, select JSON as the key type on the Create Private Key screen, and click Create.
The JSON key will be downloaded, which will be used when creating the trocco connection information.
How to get the view ID
Sign in to Google Analytics. Then select Manage on the left bar.
Select the view settings for the column for the rightmost view.
The view ID appears at the location on the diagram.
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:
Sign in to Google Analytics.
Click Administration, and then click Manage Account Users.
In the list of permissions for the account, click +, and then click Add User.
Enter the email address of the Google account of the user you want to add.
Select a permission. To use it, you need to have Viewer permissions or higher.
* Please see here for details on permissions.Click Add.