Skip to main content

Google Analytics

The Google Analytics integration lets agents answer questions about your website traffic from your GA4 properties, for example in a reporting assistant for your team.

Connect​

  1. In the VoisX console, open your project and go to Tools → Add tool → From template.
  2. Pick Google Analytics and click Connect with Google.
  3. Sign in with a Google account that has access to the properties, and click Allow.
  4. Back in the VoisX console, select the actions you want to enable and click Install integration.

Permission: analytics.readonly (read only)

Actions​

ActionWhat it does
List PropertiesLists the GA4 properties the account can access
Run ReportRuns a GA4 report with the dimensions, metrics and date range you choose
Run Realtime ReportRuns a GA4 realtime report
tip

Put your GA4 property ID in the agent's prompt, so it does not have to look it up on every question.

Example​

You are a website reporting assistant.
When asked about website traffic, use Run Report on property 123456789.
Always state the date range you used.

Troubleshooting​

PERMISSION_DENIED​

The connected Google account does not have access to that property. Grant access in Google Analytics.

No data returned​

Check the date range and that the property had activity in that period.

Was this page helpful?
On this page
Try it in the consoleBuild an agent and test it in the Playground.Open console →