Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Beta) - Account → Get Account Data Sharing Settings

AI-generated

Overview

This node interacts with the Google Analytics API, specifically supporting a wide range of administrative and data-related operations. For the selected resource "Admin (V1Beta) - Account" and operation "Get Account Data Sharing Settings," it retrieves the data sharing settings configured for a specified Google Analytics account.

This functionality is useful when you need to programmatically check or audit how data sharing is configured on your Google Analytics accounts, for example, to ensure compliance with privacy policies or organizational standards.

Practical examples:

  • Automatically fetch and log data sharing settings for multiple accounts to monitor changes over time.
  • Integrate with other systems to trigger alerts if certain data sharing options are enabled or disabled.
  • Use in workflows that manage account configurations or generate reports about account settings.

Properties

Name Meaning
Account ID The unique identifier of the Google Analytics account whose data sharing settings you want to retrieve. This is required.
Query Parameters Optional additional parameters to refine the request. These include:
- Calculated Metric ID: ID for a calculated metric
- Entity: Specify whether the report is at property or account level
- Filter: Expression to filter results
- Names: Names of access bindings to retrieve
- Page Size: Maximum number of report tasks to return (default 10)
- Page Token: Token for fetching next page of results
- Show Deleted: Whether to include soft-deleted ("trashed") properties (default true)
- Universal Analytics Property ID: UA property to look up connected GA4 property
- Update Mask: List of fields to update (snake case)

Output

The node outputs a JSON array where each item corresponds to the response from the Google Analytics API for the requested operation.

For the "Get Account Data Sharing Settings" operation, the output JSON contains the data sharing settings of the specified account. This typically includes details such as which data sharing options are enabled or disabled for the account.

No binary data output is involved in this operation.

Dependencies

  • Requires an OAuth2 credential configured for Google Analytics API access.
  • The node uses the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1beta.
  • Proper permissions/scopes must be granted to the OAuth2 credential to read account data sharing settings.

Troubleshooting

  • Missing Credentials Error: If the node throws an error about missing credentials, ensure that a valid Google Analytics OAuth2 credential is configured and selected.
  • Account ID Required: The operation requires an Account ID; omitting this will cause an error.
  • API Errors: Errors returned by the Google Analytics API (e.g., permission denied, invalid account ID) will be surfaced with messages prefixed by "Error calling Google Analytics API". Check the message and stack trace for details.
  • Query Parameter Issues: Incorrect or unsupported query parameters may cause the API to reject the request. Validate parameters according to Google Analytics API documentation.

Links and References

Discussion