Google Analytics Admin API Overview

  • The Google Analytics Admin API Version 1.0 provides programmatic access to Google Analytics configuration data, compatible only with Google Analytics properties.

  • Features in this API are available in Alpha and Beta channels, with Alpha features being early previews that may have breaking changes and Beta features not expecting breaking changes.

  • The API allows for various management tasks including account and property management, data sharing settings, custom dimensions and metrics, and linking with other Google services like Google Ads and Firebase.

  • The API also includes Alpha features for managing subproperties, Google Signals settings, SKAdNetwork conversion value schema, Google tag generation, event create and edit rules, linking with DV360 and Search Ads 360, BigQuery linking, user permissions, audience management, expanded data sets, and automated GA4 setup opt-out.

  • A method is available to provision new accounts by generating an account ticket ID to be included in a Terms of Service URL for user acceptance.

Summary: This document provides a high level overview of the Google Analytics Admin API Version 1.0.

Introduction

The Google Analytics Admin API allows for programmatic access to the Google Analytics configuration data and is only compatible with Google Analytics properties. Learn more about Google Analytics properties.

You can use the Google Analytics Admin API to:

Available methods

Here are the available methods.

Account provisioning

This method returns the accountTicketId field that should be included in the Terms of Service (TOS) URL:

https://analytics.google.com/analytics/web/?provisioningSignup=false#/termsofservice/ACCOUNT_TICKET_ID

Once a user visits the TOS URL and accepts the Terms of Service, creation of a Google Analytics account will be complete. See the Account provisioning sample.

Accounts management

Data sharing settings management

List account summaries

Search change history events

Properties management

Subproperties management (Alpha)

User data collection acknowledgement

Data retention setting management

Google Signals setting management (Alpha)

Data streams management

Measurement Protocol secrets management

SKAdNetwork conversion value schema management (Alpha)

Key events management

Conversion events management

Event create rules management (Alpha)

Event edit rules management (Alpha)

Custom dimensions management

Custom metrics management

Firebase project linking

Google tag generation (Alpha)

Learn more about setting up Analytics Search Ads 360 integration for a Google Analytics property.

Learn more about setting up BigQuery export for a Google Analytics property.

User permissions management (Alpha)

Data access reports

See the Data Access Reports guide for more information about this feature.

Audience management (Alpha)

Learn more about audiences in Google Analytics.

Expanded Data Sets management (Alpha)

Learn more about Expanded Data Sets in Google Analytics 360.

Automated Google Analytics setup process opt-out (Alpha)

Learn more about managing the opt out status for the automated Google Analytics setup process for a UA property.