Google Analytics Admin
Manage Google Analytics accounts, properties, data streams, conversions, audiences, and access reports.
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| OAuth 2.0 | oauth2 | available | — |
调用示例
import { createClient } from "@open-connector/sdk";const oc = createClient({ baseUrl: "https://api.openconnector.dev", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({ slug: "GOOGLE_ANALYTICS_ADMIN_ACCOUNT_SUMMARIES_LIST", connectedAccountId: "conn_...", arguments: { /* match this tool's input schema */ },});import Composio from "@composio/client";const composio = new Composio({ baseURL: "https://api.openconnector.dev/composio", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("GOOGLE_ANALYTICS_ADMIN_ACCOUNT_SUMMARIES_LIST", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute GOOGLE_ANALYTICS_ADMIN_ACCOUNT_SUMMARIES_LIST --data '{ }'Tool 目录
可用 Tools
28 个可调用操作
Analyticsadmin AccountSummaries ListGOOGLE_ANALYTICS_ADMIN_ACCOUNT_SUMMARIES_LISTReturns summaries of all accounts accessible by the caller.需要连接2 scopes
Returns summaries of all accounts accessible by the caller.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags
Analyticsadmin Accounts DeleteGOOGLE_ANALYTICS_ADMIN_ACCOUNTS_DELETEMarks 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://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.需要连接1 scope
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://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Accounts GetGOOGLE_ANALYTICS_ADMIN_ACCOUNTS_GETLookup for a single Account.需要连接2 scopes
Lookup for a single Account.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags
Analyticsadmin Accounts ListGOOGLE_ANALYTICS_ADMIN_ACCOUNTS_LISTReturns 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`.需要连接2 scopes
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`.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags
Analyticsadmin Accounts PatchGOOGLE_ANALYTICS_ADMIN_ACCOUNTS_PATCHUpdates an account.需要连接1 scope
Updates an account.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Accounts ProvisionAccountTicketGOOGLE_ANALYTICS_ADMIN_ACCOUNTS_PROVISION_ACCOUNT_TICKETRequests a ticket for creating an account.需要连接1 scope
Requests a ticket for creating an account.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Accounts RunAccessReportGOOGLE_ANALYTICS_ADMIN_ACCOUNTS_RUN_ACCESS_REPORTReturns 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 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.需要连接2 scopes
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 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags
Analyticsadmin Accounts SearchChangeHistoryEventsGOOGLE_ANALYTICS_ADMIN_ACCOUNTS_SEARCH_CHANGE_HISTORY_EVENTSSearches 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.需要连接1 scope
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.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Properties AcknowledgeUserDataCollectionGOOGLE_ANALYTICS_ADMIN_PROPERTIES_ACKNOWLEDGE_USER_DATA_COLLECTIONAcknowledges 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.需要连接1 scope
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.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Properties ConversionEvents CreateGOOGLE_ANALYTICS_ADMIN_PROPERTIES_CONVERSION_EVENTS_CREATEDeprecated: Use `CreateKeyEvent` instead. Creates a conversion event with the specified attributes.需要连接1 scope
Deprecated: Use `CreateKeyEvent` instead. Creates a conversion event with the specified attributes.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Properties ConversionEvents ListGOOGLE_ANALYTICS_ADMIN_PROPERTIES_CONVERSION_EVENTS_LISTDeprecated: Use `ListKeyEvents` instead. Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found.需要连接2 scopes
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.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags
Analyticsadmin Properties CreateGOOGLE_ANALYTICS_ADMIN_PROPERTIES_CREATECreates a Google Analytics property with the specified location and attributes.需要连接1 scope
Creates a Google Analytics property with the specified location and attributes.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Properties CustomDimensions ArchiveGOOGLE_ANALYTICS_ADMIN_PROPERTIES_CUSTOM_DIMENSIONS_ARCHIVEArchives a CustomDimension on a property.需要连接1 scope
Archives a CustomDimension on a property.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Properties CustomDimensions CreateGOOGLE_ANALYTICS_ADMIN_PROPERTIES_CUSTOM_DIMENSIONS_CREATECreates a CustomDimension.需要连接1 scope
Creates a CustomDimension.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Properties CustomDimensions ListGOOGLE_ANALYTICS_ADMIN_PROPERTIES_CUSTOM_DIMENSIONS_LISTLists CustomDimensions on a property.需要连接2 scopes
Lists CustomDimensions on a property.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags
Analyticsadmin Properties CustomMetrics CreateGOOGLE_ANALYTICS_ADMIN_PROPERTIES_CUSTOM_METRICS_CREATECreates a CustomMetric.需要连接1 scope
Creates a CustomMetric.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Properties CustomMetrics ListGOOGLE_ANALYTICS_ADMIN_PROPERTIES_CUSTOM_METRICS_LISTLists CustomMetrics on a property.需要连接2 scopes
Lists CustomMetrics on a property.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags
Analyticsadmin Properties DataStreams CreateGOOGLE_ANALYTICS_ADMIN_PROPERTIES_DATA_STREAMS_CREATECreates a DataStream.需要连接1 scope
Creates a DataStream.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Properties DataStreams ListGOOGLE_ANALYTICS_ADMIN_PROPERTIES_DATA_STREAMS_LISTLists DataStreams on a property.需要连接2 scopes
Lists DataStreams on a property.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags
Analyticsadmin Properties DataStreams MeasurementProtocolSecrets CreateGOOGLE_ANALYTICS_ADMIN_PROPERTIES_DATA_STREAMS_MEASUREMENT_PROTOCOL_SECRETS_CREATECreates a measurement protocol secret.需要连接1 scope
Creates a measurement protocol secret.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Properties DataStreams MeasurementProtocolSecrets ListGOOGLE_ANALYTICS_ADMIN_PROPERTIES_DATA_STREAMS_MEASUREMENT_PROTOCOL_SECRETS_LISTReturns child MeasurementProtocolSecrets under the specified parent Property.需要连接2 scopes
Returns child MeasurementProtocolSecrets under the specified parent Property.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags
Analyticsadmin Properties FirebaseLinks CreateGOOGLE_ANALYTICS_ADMIN_PROPERTIES_FIREBASE_LINKS_CREATECreates a FirebaseLink. Properties can have at most one FirebaseLink.需要连接1 scope
Creates a FirebaseLink. Properties can have at most one FirebaseLink.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Properties FirebaseLinks ListGOOGLE_ANALYTICS_ADMIN_PROPERTIES_FIREBASE_LINKS_LISTLists FirebaseLinks on a property. Properties can have at most one FirebaseLink.需要连接2 scopes
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags
Analyticsadmin Properties GoogleAdsLinks CreateGOOGLE_ANALYTICS_ADMIN_PROPERTIES_GOOGLE_ADS_LINKS_CREATECreates a GoogleAdsLink.需要连接1 scope
Creates a GoogleAdsLink.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Properties GoogleAdsLinks ListGOOGLE_ANALYTICS_ADMIN_PROPERTIES_GOOGLE_ADS_LINKS_LISTLists GoogleAdsLinks on a property.需要连接2 scopes
Lists GoogleAdsLinks on a property.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags
Analyticsadmin Properties KeyEvents CreateGOOGLE_ANALYTICS_ADMIN_PROPERTIES_KEY_EVENTS_CREATECreates a Key Event.需要连接1 scope
Creates a Key Event.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.editTags
Analyticsadmin Properties KeyEvents ListGOOGLE_ANALYTICS_ADMIN_PROPERTIES_KEY_EVENTS_LISTReturns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found.需要连接2 scopes
Returns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags
Analyticsadmin Properties ListGOOGLE_ANALYTICS_ADMIN_PROPERTIES_LISTReturns 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.需要连接2 scopes
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.
认证
需要 Connected AccountScopes
https://www.googleapis.com/auth/analytics.edithttps://www.googleapis.com/auth/analytics.readonlyTags