Google Analytics (GA4)

Google Analytics (GA4) · 66 endpoints

  • Run a GA4 data access report for your accountaccounts.runAccessReport — Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 pgoogle-analytics.x.analyticsadmin-accounts-runaccessreport
  • Search your GA4 account's change historyaccounts.searchChangeHistoryEvents — Searches through all changes to an account or its children given the specified set of filters. Only returns the subset of changes supported by the API. The UI may return additional changes.google-analytics.x.analyticsadmin-accounts-searchchangehistoryevents
  • Soft-delete a GA4 account by account idaccounts.delete — Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://sugoogle-analytics.x.analyticsadmin-accounts-delete
  • List your GA4 accountsaccounts.list — Returns all accounts accessible by the caller. Note that these accounts might not currently have GA properties. Soft-deleted (ie: "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are found. Note: The easiest way to retrieve a list of all properties you have access to is by using `ListAccountSummaries`.google-analytics.x.analyticsadmin-accounts-list
  • Create an audience export on your GA4 propertyaudienceExports.create — Creates an audience export for later retrieval. This method quickly returns the audience export's resource name and initiates a long running asynchronous request to form an audience export. To export the users in an audience export, first create the audience export through this method and then send the audience resource name to the `QueryAudienceExport` method. See [Creatigoogle-analytics.x.analyticsdata-properties-audienceexports-create
  • GA4 audience export metadata by export idaudienceExports.get — Gets configuration metadata about a specific audience export. This method can be used to understand an audience export after it has been created. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and ogoogle-analytics.x.analyticsdata-properties-audienceexports-get
  • List audience exports on your GA4 propertyaudienceExports.list — Lists all audience exports for a property. This method can be used for you to find and reuse existing audience exports rather than creating unnecessary new audience exports. The same audience can have multiple audience exports that represent the export of users that were in an audience on different days. See [Creating an Audience Export](https://developers.google.com/analytigoogle-analytics.x.analyticsdata-properties-audienceexports-list
  • List users in a GA4 audience exportaudienceExports.query — Retrieves an audience export of users. After creating an audience, the users are not immediately available for exporting. First, a request to `CreateAudienceExport` is necessary to create an audience export of users, and then second, this method is used to retrieve the users in the audience export. See [Creating an Audience Export](https://developers.google.com/analytics/degoogle-analytics.x.analyticsdata-properties-audienceexports-query
  • GA4 property data retention settingsproperties.getDataRetentionSettings — Returns the singleton data retention settings for this property.google-analytics.x.analyticsadmin-properties-getdataretentionsettings
  • Link Firebase to your GA4 propertyfirebaseLinks.create — Creates a FirebaseLink. Properties can have at most one FirebaseLink.google-analytics.x.analyticsadmin-properties-firebaselinks-create
  • List Firebase links on your GA4 propertyfirebaseLinks.list — Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.google-analytics.x.analyticsadmin-properties-firebaselinks-list

Create key event

Delete key event

Key event details

List key events

  • List GA4 conversion events (deprecated)conversionEvents.list — Deprecated: Use `ListKeyEvents` instead. Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found.google-analytics.x.analyticsadmin-properties-conversionevents-list
  • List key events on your GA4 propertykeyEvents.list — Returns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found.google-analytics.x.analyticsadmin-properties-keyevents-list

Update key event

  • List Measurement Protocol secrets on a GA4 streammeasurementProtocolSecrets.list — Returns child MeasurementProtocolSecrets under the specified parent Property.google-analytics.x.analyticsadmin-properties-datastreams-measurementprotocolsecrets-list
  • Run several GA4 pivot reports in one batchproperties.batchRunPivotReports — Returns multiple pivot reports in a batch. All reports must be for the same Google Analytics property.google-analytics.x.analyticsdata-properties-batchrunpivotreports
  • Run a GA4 pivot report by property idproperties.runPivotReport — Returns a customized pivot report of your Google Analytics event data. Pivot reports are more advanced and expressive formats than regular reports. In a pivot report, dimensions are only visible if they are included in a pivot. Multiple pivots can be specified to further dissect your data.google-analytics.x.analyticsdata-properties-runpivotreport
  • Run a GA4 data access report for your propertyproperties.runAccessReport — Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360google-analytics.x.analyticsadmin-properties-runaccessreport
  • Acknowledge GA4 user data collection termsproperties.acknowledgeUserDataCollection — Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.google-analytics.x.analyticsadmin-properties-acknowledgeuserdatacollection
  • Create a GA4 propertyproperties.create — Creates a Google Analytics property with the specified location and attributes.google-analytics.x.analyticsadmin-properties-create
  • Soft-delete a GA4 property by property idproperties.delete — Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://supporgoogle-analytics.x.analyticsadmin-properties-delete
  • List GA4 properties under your accountproperties.list — Returns child Properties under the specified parent Account. Properties will be excluded if the caller does not have access. Soft-deleted (ie: "trashed") properties are excluded by default. Returns an empty list if no relevant properties are found.google-analytics.x.analyticsadmin-properties-list
  • Run several GA4 reports in one batchproperties.batchRunReports — Returns multiple reports in a batch. All reports must be for the same Google Analytics property.google-analytics.x.analyticsdata-properties-batchrunreports
  • Check GA4 dimension and metric compatibilityproperties.checkCompatibility — This compatibility method lists dimensions and metrics that can be added to a report request and maintain compatibility. This method fails if the request's dimensions and metrics are incompatible. In Google Analytics, reports fail if they request incompatible dimensions and/or metrics; in that case, you will need to remove dimensions and/or metrics from the incompatgoogle-analytics.x.analyticsdata-properties-checkcompatibility

Account and utility endpoints

  • Request a GA4 account creation ticketaccounts.provisionAccountTicket — Requests a ticket for creating an account.google-analytics.x.analyticsadmin-accounts-provisionaccountticket

These endpoints are callable but not part of the catalog's browse surface.