Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Beta) - Account → Get Account

AI-generated

Overview

This node interacts with the Google Analytics Admin API (v1beta) to manage and retrieve information about Google Analytics accounts. Specifically, the "Get Account" operation under the "Admin (V1Beta) - Account" resource allows users to fetch detailed information about a single Google Analytics account by its ID.

Common scenarios where this node is beneficial include:

  • Retrieving account details for reporting or auditing purposes.
  • Integrating Google Analytics account data into workflows for automated processing.
  • Validating account existence or fetching metadata before performing further operations.

Example use case:

  • A marketing automation workflow that fetches account details to customize reports or dashboards based on account-specific settings.

Properties

Name Meaning
Account ID The unique identifier of the Google Analytics account to retrieve.
Query Parameters Optional parameters to refine or filter the request. Includes:
- Calculated Metric ID ID for a calculated metric (string).
- Entity Level of data access report: property or account level (string).
- Filter Expression to filter results (string).
- Names Names of access bindings to retrieve (string).
- Page Size Maximum number of report tasks to return (number, default 10).
- Page Token Continuation token for pagination (string, password type).
- Show Deleted Whether to include soft-deleted ("trashed") properties (boolean, default true).
- Universal Analytics Property ID UA property ID to look up connected GA4 property (string).
- Update Mask List of fields to update in snake case (string).

Output

The node outputs a JSON array containing the response from the Google Analytics Admin API for the requested account. The structure corresponds directly to the API's account resource representation, typically including fields such as:

  • Account name and ID
  • Creation and update timestamps
  • Account-level settings and configurations

No binary data output is involved.

Dependencies

  • Requires an OAuth2 credential configured for Google Analytics API access.
  • The node uses the Google Analytics Admin API endpoints, specifically the v1beta version for accounts.
  • Proper permissions/scopes must be granted to the OAuth2 credential to read account information.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that a valid OAuth2 credential with appropriate scopes is configured and selected.
  • Account ID Required: The operation requires the "Account ID" property; omitting it will cause an error.
  • API Errors: Errors returned from the Google Analytics API are wrapped and presented with messages like "Error calling Google Analytics API: ...". Check the message for details such as invalid IDs or permission issues.
  • Pagination Issues: When using query parameters like pageToken, ensure tokens are valid and used correctly to avoid empty or incomplete responses.

Links and References

Discussion