Google Analytics integration
With the Google Analytics action connector, you can access Google Analytics directly in Amazon Quick through natural language. You can run reports, retrieve audience data, monitor key events, and access real-time metrics without leaving Amazon Quick.
Amazon Quick supports multiple authentication methods for Google Analytics. Choose the method that best fits your organization's security requirements.
-
Default OAuth app – Uses an AWS-managed OAuth application. No additional credentials are needed. You authenticate directly with your Google account.
-
Custom OAuth app – Uses a customer-managed OAuth client created in the Google Cloud Console. This option gives your organization full control over the OAuth configuration.
For more information about the authentication methods that Amazon Quick supports, see Authentication methods.
Before you begin
Make sure that you have the following before you set up the integration.
-
A Google account with access to Google Analytics properties and data that you want to use.
-
For Custom OAuth app: Access to the Google Cloud Console
on the Google website with permissions to create OAuth clients. -
For Amazon Quick subscription requirements, see Set up integrations in the console.
Configuring Google Cloud
If you are using Default OAuth app authentication, skip this section and go to Setting up the connector in Amazon Quick.
For Custom OAuth app authentication, complete the following steps in the Google Cloud Console before you configure Amazon Quick. When you enable the API in step 3, search for and enable the Google Analytics Data API.
Create an OAuth client in Google Cloud Console
Create an OAuth client in the Google Cloud Console to get the client
credentials that you need for Amazon Quick. For more information, see Using OAuth
2.0 to Access Google APIs
-
Sign in to the Google Cloud Console
on the Google website. -
Create a new project or select an existing project.
-
In the left navigation pane, choose APIs & Services, then choose Library. Search for the API that your integration requires and choose Enable.
-
Choose OAuth consent screen and choose Get Started.
-
Configure the consent screen:
-
Enter an App Name and select a User support email.
-
For Audience, choose Internal (your organization only) or External (any Google user).
-
Add developer contact details and choose Create.
-
-
Choose Create OAuth client.
-
Configure the client:
-
For Application type, choose Web application.
-
Enter a Name for your client.
-
Under Authorized redirect URIs, add the Amazon Quick callback URL:
https://{region}.quicksight.aws.amazon.com/sn/oauthcallback
-
-
Choose Create.
-
Record the following values. You need them when you configure Amazon Quick.
-
Client ID
-
Client secret
-
Recommended scopes
The following scopes are requested when you connect to Google Analytics.
| Scope | Description |
|---|---|
https://www.googleapis.com/auth/analytics.readonly |
Reads Analytics data and configuration. |
https://www.googleapis.com/auth/analytics.edit |
Edits Analytics configuration and data. |
openid |
Authenticates the user's identity. |
email |
Reads the user's email address. |
Note
The openid and email scopes are
automatically included in the OAuth consent flow for user
authentication. They are not required for Service-to-Service
OAuth.
Setting up the connector in Amazon Quick
Connect from the Available tab
If you want to use Default OAuth app authentication, you can connect directly from the Available tab without additional configuration.
-
In the Amazon Quick console, choose Connectors.
-
On the Available tab, find Google Analytics and choose Connect.
-
Complete the Google sign-in flow and grant the requested permissions.
To configure a connector with Custom OAuth app instead, use the Create for your team tab as described below.
Create from the Create for your team tab
After you complete any required Google Cloud configuration, create the connector in Amazon Quick.
-
In the Amazon Quick console, choose Connectors.
-
Choose the Create for your team tab.
-
Find and choose Google Analytics.
Note
If a Google Analytics connector already exists, a dialog appears with your existing connectors. To use an existing connector, choose it. To create a new one, choose No, create new.
-
Enter a Name for your connector. Optionally, choose + Add Description to add a description.
-
For Connection type, choose Public network.
-
For OAuth Configuration, choose one of the following authentication methods and configure the required fields.
-
For Default OAuth app:
No additional credentials are needed. Choose Next to continue.
-
For Custom OAuth app, configure the following fields:
-
Base URL (Optional) – The Google Analytics API base URL. Example:
https://analyticsdata.googleapis.com -
Client ID – The client ID from your Google Cloud OAuth client.
-
Client secret – The client secret from your Google Cloud OAuth client.
-
Token URL – The token endpoint. Example:
https://oauth2.googleapis.com/token -
Authorization URL – The authorization endpoint. Example:
https://accounts.google.com/o/oauth2/v2/auth -
Redirect URL – Pre-filled with the Amazon Quick callback URL.
-
-
-
Choose Next.
-
If you chose Default OAuth app or Custom OAuth app, a Google authorization window opens. Review the requested permissions and choose Allow.
-
On the Review page, review the available actions for the connector. Choose Next.
-
On the Publish page, choose who can access the connector. You can enable access for everyone in your organization or search for specific teams or groups.
-
Choose Publish.
Available actions
After you set up the connector, the following actions are available.
| Category | Action | Description |
|---|---|---|
| Reports | Create Report | Runs a report for a property. |
| Reports | Batch Create Report | Runs multiple reports in a single request. |
| Reports | Create Realtime Report | Runs a real-time report for a property. |
| Reports | Create Funnel Report | Runs a funnel report for a property. |
| Audiences | List Audiences | Lists audiences for a property. |
| Audiences | Create Audience List | Creates an audience list for export. |
| Audiences | List Audience Lists | Lists audience lists for a property. |
| Audiences | Get Audience List | Retrieves data from an audience list. |
| Audiences | Create Audience Export | Creates an audience export. |
| Audiences | Get Audience Export | Retrieves data from an audience export. |
| Accounts | List Account Summaries | Lists account summaries accessible to the user. |
| Accounts | List Accounts | Lists all accounts accessible to the user. |
| Accounts | Get Account | Retrieves details for a specific account. |
| Properties | Get Property | Retrieves details for a specific property. |
| Properties | Search Properties | Searches for properties with filtering. |
| Properties | Get Property Quotas | Retrieves quota usage for a property. |
| Events | List Key Events | Lists key events (conversions) for a property. |
| Metadata | Get Metadata | Retrieves available dimensions and metrics for reporting. |
| Metadata | Get Compatibility | Checks compatibility of dimensions and metrics for a report. |
| Annotations | List Annotations | Lists reporting data annotations for a property. |
Note
The actions that you can use depend on the Analytics properties and accounts accessible to the authenticated user.
Managing and troubleshooting
To edit, share, or delete your connector, see Managing existing integrations.
Common Google authentication issues
-
Sign-in fails (Default OAuth app or Custom OAuth app) – Verify that your Google account is active and that you can sign in to the Google website
directly. For Custom OAuth app, confirm that the redirect URI in your Google Cloud OAuth client matches the Amazon Quick callback URL. -
App blocked by administrator – If your Google Workspace administrator restricts third-party app access, you might see an error when you attempt to sign in. Contact your Google Workspace administrator to allow the Amazon Quick app.
-
Invalid client credentials (Custom OAuth app) – Verify that the Client ID and Client secret match the values in your Google Cloud OAuth client.
-
Authentication popup fails – Verify that your browser allows popups from the Amazon Quick console domain. Try using a different browser or clearing your browser cache.
-
Permissions revoked – If you previously revoked Amazon Quick access from your Google Account permissions settings, you need to re-authenticate by editing the connector and signing in again.
-
Google API rate limiting – Google might limit requests during high usage periods. If actions fail, retry after a few minutes.
Google Analytics-specific issues
-
Google Analytics Data API not enabled – Verify that the Google Analytics Data API is enabled in your Google Cloud project under APIs & Services, Library.
-
No properties visible – Verify that the authenticated Google account has access to the Google Analytics properties that you want to query.