Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

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

AI-generated

Overview

This node integrates with the Google Analytics API, specifically supporting a wide range of administrative and data management operations across different versions (v1alpha, v1beta) and data sets. For the selected resource "Admin (V1Alpha) - Expanded Data Set" and operation "Create Expanded Data Set," the node allows users to create an expanded data set within a specified Google Analytics property.

Use cases include automating the creation and management of expanded data sets in Google Analytics properties, which can be useful for advanced data analysis, reporting, or integration workflows where enriched data sets are required.

Example: Automatically creating an expanded data set for a property to enhance data granularity and enable more detailed analytics reports.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property where the expanded data set will be created.
Query Parameters Optional parameters to customize the request, including:
- Calculated Metric ID: ID for a calculated metric
- 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: Continuation token for pagination
- Show Deleted: Whether to include soft-deleted properties
- Universal Analytics Property ID: UA property linked to GA4
- Update Mask: List of fields to update (snake case)
Request Body JSON object containing the details of the expanded data set to create. This should follow the API's expected schema for an expanded data set creation request.

Output

The node outputs a JSON array where each element corresponds to the response from the Google Analytics API for the create expanded data set operation. The JSON structure reflects the created expanded data set resource as returned by the API, typically including identifiers, configuration details, and metadata about the new expanded data set.

No binary data output is produced by this node.

Dependencies

  • Requires valid Google Analytics API credentials with OAuth2 authentication.
  • The node uses the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1alpha.
  • Proper permissions on the Google Analytics property are necessary to create expanded data sets.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that OAuth2 credentials for Google Analytics API are configured correctly in n8n.
  • Required Parameter Errors: Errors like "Property ID is required" indicate missing mandatory input; verify that the Property ID is provided.
  • API Errors: Any error returned by the Google Analytics API will be wrapped and shown with the message prefix "Error calling Google Analytics API." Check the API response for details such as permission issues, invalid request body, or quota limits.
  • Invalid JSON in Request Body: Ensure the JSON provided in the Request Body field is well-formed and matches the expected schema for creating an expanded data set.

Links and References


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

Discussion