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

# Google Analytics

> How to set up the Google Analytics connector, plus the actions that are available.

![Google Analytics](https://stackone-logos.com/api/google-analytics/filled/svg)

v1.2.0[See changelog](https://docs.stackone.com/connectors/googleanalytics/changelog.md)

[33 actions](#actions) · 2 auth methods

Analytics

## Getting Started

**1. Create or Select a Project**

Set up a new project or select an existing one. See [Organizations & Projects](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md).

**2. Configure the Connector**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

> [card] [OAuth 2.0 · Connector Profile](https://docs.stackone.com/connectors/googleanalytics/guides/connector-profile/oauth-2-0.md)
>
> Uses your own Google Cloud OAuth client, and actions run with the access of the Google account that authorizes the conne...

> [card] [Service Account · Connector Profile](https://docs.stackone.com/connectors/googleanalytics/guides/connector-profile/service-account.md)
>
> Uses a Google Cloud service account's JSON key instead of a user sign-in. The service account is added as a user on each...

**3. Link an Account**

Link an account [from the dashboard](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md#link-from-the-dashboard) (or via [StackOne Hub](https://docs.stackone.com/embed/account-linking/overview)).

See the guide for the authentication type chosen in the Connector Profile:

> [card] [OAuth 2.0 · Link Account](https://docs.stackone.com/connectors/googleanalytics/guides/link-account/oauth-2-0.md)

> [card] [Service Account · Link Account](https://docs.stackone.com/connectors/googleanalytics/guides/link-account/service-account.md)

**4. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Actions

Authentication type

Select all
|
Clear

OAuth 2.0

Service Account

No auth methods found

Scopes

Select all
|
Clear

https\://​www\.googleapis.com/auth/analytics.edit

https\://​www\.googleapis.com/auth/analytics.readonly

No scopes found

33 actions

ActionDescriptionRequired scopes

List Accounts`googleanalytics_list_accounts`

List all Google Analytics accounts accessible to the authenticated user

`https://​www.googleapis.com/auth/analytics.readonly`

Get Account`googleanalytics_get_account`

Get details of a specific Google Analytics account by its resource name

`https://​www.googleapis.com/auth/analytics.readonly`

List Account Summaries`googleanalytics_list_account_summaries`

List summaries of all accounts and their properties accessible to the authenticated user

`https://​www.googleapis.com/auth/analytics.readonly`

Get Data Sharing Settings`googleanalytics_get_data_sharing_settings`

Get data sharing settings for a Google Analytics account

`https://​www.googleapis.com/auth/analytics.readonly`

List Properties`googleanalytics_list_properties`

List all Google Analytics 4 properties under an account

`https://​www.googleapis.com/auth/analytics.readonly`

Get Property`googleanalytics_get_property`

Get details of a specific Google Analytics 4 property by its resource name

`https://​www.googleapis.com/auth/analytics.readonly`

Create Property`googleanalytics_create_property`

Create a new Google Analytics 4 property under an account

`https://​www.googleapis.com/auth/analytics.edit`

Patch Property`googleanalytics_patch_property`

Update settings of an existing Google Analytics 4 property

`https://​www.googleapis.com/auth/analytics.edit`

Acknowledge User Data Collection`googleanalytics_acknowledge_user_data_collection`

Acknowledge user data collection terms for a Google Analytics 4 property

`https://​www.googleapis.com/auth/analytics.edit`

Get Data Retention Settings`googleanalytics_get_data_retention_settings`

Get data retention settings for a Google Analytics 4 property

`https://​www.googleapis.com/auth/analytics.readonly`

Run Report`googleanalytics_run_report`

Run a customized report on Google Analytics 4 data for a property

`https://​www.googleapis.com/auth/analytics.readonly`

Run Realtime Report`googleanalytics_run_realtime_report`

Run a realtime report on active users currently on a GA4 property

`https://​www.googleapis.com/auth/analytics.readonly`

Run Pivot Report`googleanalytics_run_pivot_report`

Run a pivot report — preferred for side-by-side dimension comparisons and cross-tabulated breakdowns of GA4 data

`https://​www.googleapis.com/auth/analytics.readonly`

Batch Run Reports`googleanalytics_batch_run_reports`

Run multiple Google Analytics reports in a single API call

`https://​www.googleapis.com/auth/analytics.readonly`

Get Metadata`googleanalytics_get_metadata`

Get metadata about dimensions and metrics available for a GA4 property

`https://​www.googleapis.com/auth/analytics.readonly`

List Data Streams`googleanalytics_list_data_streams`

List all data streams for a Google Analytics 4 property

`https://​www.googleapis.com/auth/analytics.readonly`

Get Data Stream`googleanalytics_get_data_stream`

Get details of a specific data stream by its full resource name

`https://​www.googleapis.com/auth/analytics.readonly`

Create Data Stream`googleanalytics_create_data_stream`

Create a new web data stream for a Google Analytics 4 property

`https://​www.googleapis.com/auth/analytics.edit`

Update Data Stream`googleanalytics_update_data_stream`

Update mutable fields on an existing Google Analytics 4 data stream

`https://​www.googleapis.com/auth/analytics.edit`

Delete Data Stream`googleanalytics_delete_data_stream`

Delete a data stream from a Google Analytics 4 property

`https://​www.googleapis.com/auth/analytics.edit`

List Measurement Protocol Secrets`googleanalytics_list_measurement_protocol_secrets`

List all Measurement Protocol secrets for a Google Analytics 4 data stream

`https://​www.googleapis.com/auth/analytics.readonly`

Create Measurement Protocol Secret`googleanalytics_create_measurement_protocol_secret`

Create a Measurement Protocol secret for a Google Analytics 4 data stream

`https://​www.googleapis.com/auth/analytics.edit`

Get Measurement Protocol Secret`googleanalytics_get_measurement_protocol_secret`

Get details of a specific Measurement Protocol secret by its full resource name

`https://​www.googleapis.com/auth/analytics.readonly`

Delete Measurement Protocol Secret`googleanalytics_delete_measurement_protocol_secret`

Delete a Measurement Protocol secret from a Google Analytics 4 data stream

`https://​www.googleapis.com/auth/analytics.edit`

List Audience Exports`googleanalytics_list_audience_exports`

List all audience exports for a Google Analytics 4 property

`https://​www.googleapis.com/auth/analytics.readonly`

Create Audience Export`googleanalytics_create_audience_export`

Create an audience export for a Google Analytics 4 property

`https://​www.googleapis.com/auth/analytics.readonly`

Get Audience Export`googleanalytics_get_audience_export`

Get details of a specific audience export by its full resource name

`https://​www.googleapis.com/auth/analytics.readonly`

Query Audience Export`googleanalytics_query_audience_export`

Query user data from an ACTIVE audience export

`https://​www.googleapis.com/auth/analytics.readonly`

List Key Events`googleanalytics_list_key_events`

List all key events for a Google Analytics 4 property

`https://​www.googleapis.com/auth/analytics.readonly`

Get Key Event`googleanalytics_get_key_event`

Get details of a specific key event by its full resource name

`https://​www.googleapis.com/auth/analytics.readonly`

Create Key Event`googleanalytics_create_key_event`

Create a new key event for a Google Analytics 4 property

`https://​www.googleapis.com/auth/analytics.edit`

Patch Key Event`googleanalytics_patch_key_event`

Update a key event's counting method or default value

`https://​www.googleapis.com/auth/analytics.edit`

Delete Key Event`googleanalytics_delete_key_event`

Delete a key event from a Google Analytics 4 property

`https://​www.googleapis.com/auth/analytics.edit`


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