Registering Your Server with Google to use their Plugin Resources
To establish connectivity with Google Services (BigQuery, Analytics, Calendar, Spreadsheet), you first need to register with Google by creating an API Console Project and create a single Client ID that will serve as a basic identificator between any Google plugin and Metric Insights instance. The result allows you to obtain a client ID and secret code.
Only one Google Project and one Web Client (credentials) are required to establish connectivity to ALL supported Google services (BigQuery, Analytics, Calendar, Spreadsheet) via plugins offered by Metric Insights.
NOTE: Despite the fact that only one account (where the API Console Project was created) serves for establishing connection between Google and Metric Insights, other Google accounts can be used to create Data Sources for elements.
1. Google APIs Console
Go to: https://console.developers.google.com
Select the API project or create a new one
2. Enabling APIs
- Click Enable API at the top of the page
- You are redirected to the APIs Library
- Select the required API and open its Dashbaord. You can enable APIs for all supported services (BigQuery, Analytics, Calendar, Spreadsheet) in this single Project.
- Click Enable
3. Creating New Credentials
- Go to Credentials on the left side panel
- Click Create credentials and select OAuth client ID from the drop-down list
3.1. Create Client ID
- Select Web Application
- Enter a meaningful name
- Enter Authorized JavaScript Origins. Example: where the hostname is demo.metricinsights.com, the default is:
https://demo.metricinsights.com
- Enter Authorized Redirect URIs, enter /path/to/callback value as /editor/service/validategoogleoauth2 Example: where the hostname is demo.metricinsights.com, the full value becomes:
https://demo.metricinsights.com/editor/service/validategoogleoauth2
NOTE: This value is referenced by Metric Insights at Admin > Utilities > Config variables GOOGLE_OAUTH2_REDIRECT_URI.
3.2. Client ID and Secret Key are displayed

Record values to input into Config Variables on your MI server
0 Comments
Add your comment