Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Beta) - Account → Udapte Account

AI-generated

Overview

This node integrates with the Google Analytics API, specifically targeting the Admin (V1Beta) Account resource to update account information. It allows users to modify properties of a Google Analytics account by sending update requests with specified fields and values. This is useful for automating account management tasks such as changing account settings or metadata without manual intervention.

Practical examples include:

  • Updating account display names or descriptions.
  • Modifying data sharing settings or other configurable account attributes.
  • Automating bulk updates across multiple accounts in workflows.

Properties

Name Meaning
Account ID The unique identifier of the Google Analytics account to update.
Query Parameters Optional parameters to refine the request, including:
- Calculated Metric ID: ID for calculated metrics.
- Entity: Level of data access report (property or account).
- 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 (boolean, default true).
- Universal Analytics Property ID: UA property to look up connected GA4 property.
- Update Mask: Comma-separated list of snake_case field names to update.
Request Body JSON object containing the fields and values to update on the account.

Output

The node outputs a JSON array where each element corresponds to the response from the Google Analytics API for the update operation. The JSON structure reflects the updated account resource as returned by the API, typically including updated fields and metadata.

If the API returns binary data (not typical for this operation), it would be included accordingly, but this node primarily deals with JSON responses representing account data.

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 perform account updates.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that a valid OAuth2 credential is configured and selected.
  • Required Parameter Errors: Errors like "Account ID is required" indicate missing mandatory input; verify that the Account ID is provided.
  • API Errors: Errors returned from the Google Analytics API will be wrapped and shown with the message prefix "Error calling Google Analytics API." Check the error details for issues such as insufficient permissions, invalid update masks, or malformed request bodies.
  • Invalid JSON in Request Body: Ensure the JSON provided in the Request Body is well-formed and matches the expected schema for the account update.

Links and References

Discussion