Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions84

Overview

This node interacts with the Google Analytics API, specifically supporting a wide range of administrative and data operations. For the selected resource "Admin (V1Alpha) - Data Stream" and operation "List Data Streams," it lists all data streams associated with a specified Google Analytics property.

This functionality is useful for users who want to retrieve and manage data streams within their Google Analytics properties, such as web or app data streams. For example, a user might list data streams to audit existing streams, verify configurations, or prepare for further updates or analysis.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property whose data streams you want to list.
Query Parameters Optional parameters to filter or paginate the results. Includes:
- Calculated Metric ID: Filter by calculated metric ID.
- Entity: Specify data access report level (property or account).
- Filter: Expression to filter results.
- Names: Names of access bindings to retrieve.
- Page Size: Maximum number of data streams 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 represents a data stream object retrieved from the Google Analytics API. Each data stream object contains details about a specific data stream under the given property, such as its ID, type, name, and configuration settings.

No binary data output is involved in this operation.

Dependencies

  • Requires an OAuth2 API credential for Google Analytics API authentication.
  • The node uses the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1alpha.
  • Proper permissions on the Google Analytics account/property are necessary to list data streams.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that valid OAuth2 credentials are configured and selected.
  • Required Parameter Errors: Errors like "Property ID is required" indicate that the mandatory property ID input was not provided. Make sure to specify the correct property ID.
  • API Request Failures: Errors returned from the Google Analytics API will be wrapped with messages like "Error calling Google Analytics API." Check the error message and stack trace for details. Common issues include insufficient permissions, invalid IDs, or network problems.
  • Pagination Handling: If many data streams exist, use the "Page Token" query parameter to fetch subsequent pages.

Links and References


If you need details on other operations or resources, please provide their names.

Discussion