Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Alpha) - Expanded Data Set → Get Expanded Data Set

AI-generated

Overview

This node interacts with the Google Analytics API, specifically supporting a wide range of administrative and data-related operations across different versions (v1alpha, v1beta) and data sets. The "Get Expanded Data Set" operation under the "Admin (V1Alpha) - Expanded Data Set" resource allows users to retrieve detailed information about an expanded data set within a specified Google Analytics property.

Common scenarios for this node include managing Google Analytics accounts, properties, audiences, links, metrics, and other configurations programmatically. It is beneficial for automating analytics administration tasks, integrating Google Analytics data into workflows, or building custom reporting and management solutions.

For example, using the "Get Expanded Data Set" operation, a user can fetch comprehensive data related to a specific expanded data set in their Google Analytics property, which might be used for advanced analysis or integration with other systems.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property where the expanded data set resides.
Expanded Data Set ID The unique identifier of the expanded data set to retrieve details for.
Query Parameters Optional parameters to refine or filter the request. Includes:
- Calculated Metric ID: ID for a calculated metric to use.
- 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.
- Page Token: Token for fetching next page of results.
- Show Deleted: Whether to include soft-deleted properties.
- Universal Analytics Property ID: UA property to look up connected GA4 property.
- Update Mask: List of fields to update (snake case).

Output

The output is a JSON array containing the response from the Google Analytics API for the requested expanded data set. The structure corresponds directly to the API's response schema for an expanded data set resource, typically including metadata and configuration details of that data set.

No binary data output is involved in this operation.

Dependencies

  • Requires valid Google Analytics API OAuth2 credentials configured in n8n.
  • The node makes authenticated HTTP requests to Google Analytics Admin API endpoints.
  • No additional external dependencies beyond the Google Analytics API and OAuth2 credential setup.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that OAuth2 credentials for Google Analytics are properly configured in n8n.
  • Required Parameter Errors: Errors like "Property ID is required" or "Expanded Data Set ID is required" indicate missing mandatory inputs. Verify that these IDs are provided.
  • API Request Failures: Errors returned from the Google Analytics API will be wrapped and shown as "Error calling Google Analytics API" with details. Check the API quota, permissions, and validity of IDs.
  • Pagination Issues: When using query parameters like pageToken and pageSize, ensure correct handling of tokens to paginate through large result sets.

Links and References


This summary focuses on the "Admin (V1Alpha) - Expanded Data Set" resource and its "Get Expanded Data Set" operation as requested.

Discussion