This article describes how to connect to your profile Google Drive in order to use the files from this Data Soure as a basis for the future External Reports in Metric Insigths.
The procedure includes:
1. Create a Google Service Account
For this scenario you need a service account, which is an account that belongs to your application instead of to an individual end user. Follow the instructions below to set it up.
For more details, refer to Google Documentation.
1.1. Access Google Developers Console
https://console.developers.google.com/projectselector/iam-admin/iam
When logged in from the account that contains the required files on a Google Drive, follow the link above.
1.2. Create Service Account
Access Service Accounts and click [Create]
1.3. Service Account Settings
- Service account name: Define a name for your service account.
- Service account ID: This is going to be generated automatically after you define a service account name.
- Furnish a new private key: Check this box to create a new private key. The required key type is JSON.
- At the bottom of the pop-up click Create.
Once you click Create, the JSON key is generated and automatically downloaded to your computer. Remember the file location.
3. Metric Insights' Side Authorization
After setting up the Google Side, create a Google Drive Data Source in Metric Insights:
3.1. Create Data Source
Access Admin > Collection & Storage > Data Sources
- [+ New Data Source]
- Select "Google Drive" in the Plugin the drop-down list.
- [Next]
3.2. Provide the Required Google Drive Parameters
- Data Source Name: Give the Data Source a descriptive name.
- [Create]
- Insert the Client ID and Client Secret, that can be obtained in the Google account.
- [Get Token] to generate the Token for connection.
- Optionally, Enable On-Demand Element Creation.
- [Test Connection] to check if everything works correctly.
3.3. Optional Google Drive Parameters
- Drive name filter: Provide a name of the Drive to filter the Objects.
- Folder name filter: Provide a name of the Folder to filter the Objects.
3.4. Advanced Data Source Configuration
Advanced Configuration settings can be set to default values unless Data Source requires more precise tuning. For more details on how to proceed, refer to Advanced Data Source Configuration.