Google Analytics
The Google Analytics integration lets Helios agents search the Google Analytics Data API and Admin API and call any endpoint to run reports, read realtime data, and manage GA4 accounts and properties.
What your agents can do
Agents don't pick from a preset list of actions. They semantically search the Google Analytics APIs and call whatever endpoint a task needs, using your connected credentials. The integration covers Google Analytics 4 (GA4) through two APIs:
- Data API (
analyticsdata.googleapis.com), versions v1beta and v1alpha: reports. - Admin API (
analyticsadmin.googleapis.com), versions v1beta and v1alpha: configuration.
With them, agents can:
- Run reports, pivot reports and batches of reports on a property
- Read realtime data for the last 30 minutes, or 60 minutes on Analytics 360
- Run funnel reports and create audience exports and audience lists
- List the dimensions and metrics a property supports, including custom ones
- List accounts and properties, and manage data streams, key events, custom dimensions and metrics, and Google Ads and Firebase links
- Manage the users of accounts and properties, when the connection has admin access
Agents see the accounts and properties that the connected Google account can access in Google Analytics.
Authentication
| Method | Type | Description |
|---|---|---|
| Helios Google Analytics App (recommended) | OAuth 2.0 | Sign in with Google through the Helios Google app |
| Your own Google Analytics app | OAuth 2.0 tokens | Paste tokens from your own Google OAuth client |
See Integration authentication for how credentials are stored and injected.
Helios Google Analytics App (recommended)
Connect in one click. Helios runs the Google OAuth flow and asks for offline access, so agents can act for you when you're not online.
The app asks for these scopes:
https://www.googleapis.com/auth/analytics.readonly: see and download your Google Analytics data, such as reports and property settings.https://www.googleapis.com/auth/analytics.edit: edit Google Analytics configuration, such as properties, data streams and key events.userinfo.emailanduserinfo.profile: the email and name that Helios shows on the connection.
Tick Admin access before you connect to also ask for https://www.googleapis.com/auth/analytics.manage.users. It lets agents add, change and remove the users of your accounts and properties.
Your own Google Analytics app
- In the Google Cloud console, enable the Google Analytics Data API and the Google Analytics Admin API.
- Configure the OAuth consent screen and create an OAuth client ID and secret.
- Create an access token and a refresh token for the Google account that agents should use, with the
analytics.readonlyandanalytics.editscopes. Addanalytics.manage.usersto let agents manage users. - In Helios, choose Your own Google Analytics app and enter the client ID, client secret, both tokens and that account's email.
Helios uses your client ID and secret to refresh the access token.
Triggers
Google Analytics has no push notifications, so this integration has no triggers. Use it from chat, or from a workflow started by a schedule, webhook, or manual trigger.
Check that it works
After you save, the connection's status shows Connected. Helios checks the connection by listing your account summaries in the Admin API.
Common errors
| What you see | Cause | Fix |
|---|---|---|
| The connection's status shows Error | The token was revoked, or it lacks the Analytics scopes | Reconnect. For your own app, create tokens with the scopes above |
Agent calls fail with 403 and SERVICE_DISABLED | The Data API or the Admin API is off in the Google Cloud project of the OAuth client | For your own app, enable both APIs in your project. For the Helios app, contact Helios support |
Agent calls to manage users fail with 403 | The connection does not have the analytics.manage.users scope | Reconnect with Admin access ticked |
Limits
The Data API charges each request in quota tokens. A standard property has 200,000 core tokens a day and 40,000 an hour, 14,000 an hour for each Google Cloud project, and 10 concurrent requests. Analytics 360 properties have ten times more tokens and 50 concurrent requests. A report returns at most 250,000 rows per request. See Google's Data API quotas.
Last updated on
Google Sheets
The Google Sheets integration lets Helios agents search the Google Sheets API and call any endpoint to create spreadsheets, read and write data, and manage formatting.
Google Search Console
The Google Search Console integration lets Helios agents search the Search Console API and call any endpoint to query search analytics, inspect how Google indexed a URL, and manage sites and sitemaps.