> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Analytics

> Connect Google Analytics to xpander and give agents its 7 actions: how to sign in and connect it, and which actions to hold for approval.

<Badge color="blue">HTTP API connector</Badge>

An HTTP API described by an OpenAPI spec, not an MCP server. Calls go to `https://analyticsdata.googleapis.com` and carry an OAuth 2.0 token obtained with **Sign in with Google** on the cloud edition, or an API key or custom header on a self-hosted installation, which offers no sign-in flow.

## What the skill can do

API connector: 7 actions, as they appear in the skill panel. 6 of them create, change or delete something in Google Analytics; mark those under **These actions need approval** when you add the skill to an agent.

* **Other** (7): Run Pivot Report, Batch Run Pivot Reports, Run Realtime Report, Run Report, Check Compatibility, Get Metadata, Batch Run Reports

## Authentication Options

<Tabs>
  <Tab title="Built-in xpander Auth">
    The simplest way to connect Google Analytics is by using xpander's built-in authentication:

    1. In Xpander Chat, open the agent's settings and click **Add skill**.
    2. Search for **Google Analytics** and select it.
    3. Click **Sign in with Google Analytics**.
    4. Grant xpander permission to access your account.
    5. Your Google Analytics integration is now ready to use.
  </Tab>
</Tabs>

## Give an agent the Google Analytics skill

Once Google Analytics is connected, any agent you can edit may be given the skill: open the agent's settings, click **Add skill**, and choose **Google Analytics**. The skill panel lists the Google Analytics actions by group. Enable only the groups the agent needs, and mark the actions that should wait for a named person's sign-off under **These actions need approval**. Which skills exist for your organization, and who may add them, is decided by your admins; see [Skills](/use/skills).

## Related Resources

* [Skills](/use/skills)
* [Google Analytics API Documentation](https://developers.google.com/analytics/devguides/reporting/data/v1)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.