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

# Connect Google Analytics

> Authorize read-only GA4 access, choose properties, and query standard or realtime reports through the ApexGenius gateway.

Google Analytics is an ApexGenius private-preview connection. It uses the official Google Analytics Admin and Data APIs with the `analytics.readonly` scope.

## What you need

* A Google account with access to the intended GA4 properties
* Google Analytics Admin API and Google Analytics Data API enabled in the ApexGenius Cloud project
* ApexGenius private-preview access

## Connect Google Analytics

1. In ApexGenius, open **Connections**.
2. Select **Google Analytics**.
3. Choose **Connect Google Analytics**.
4. Review the Google consent screen and authorize read-only Analytics access.
5. Return to the connection details and refresh provider resources.
6. Enable only the GA4 properties the MCP gateway should expose.
7. Run a small standard report and a realtime report as smoke tests.

The connector can discover GA4 properties, run standard reports, run realtime reports, and read supported property-relative Data and Admin endpoints. It does not request an Analytics write scope, and Admin operations are GET-only.

<Info>
  **Read-only by design.**

  Some Google Analytics reporting calls use HTTP POST because the report definition is a request body. They remain reads. The ApexGenius adapter rejects write methods and does not expose GA4 configuration mutations.
</Info>

## Official Google documentation

* <a href="https://developers.google.com/analytics/devguides/reporting/data/v1" target="_blank" rel="noreferrer">Google Analytics Data API</a>
* <a href="https://developers.google.com/analytics/devguides/config/admin/v1" target="_blank" rel="noreferrer">Google Analytics Admin API</a>
* <a href="https://developers.google.com/analytics/devguides/config/admin/v1/access-api" target="_blank" rel="noreferrer">Analytics authorization</a>

Google documentation is authoritative for GA4 permissions, dimensions, metrics, quotas, and API behavior.
