Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Alpha) - Property → Create Rollup Property

AI-generated

Overview

This node integrates with the Google Analytics API, specifically supporting a wide range of administrative and data-related operations across different versions (v1alpha, v1beta) and resource types. The "Create Rollup Property" operation under the "Admin (V1Alpha) - Property" resource allows users to create a roll-up property along with all associated roll-up property source links in Google Analytics.

This node is beneficial for automating management tasks within Google Analytics accounts and properties, such as creating properties, managing access bindings, running reports, and more. For example, using the "Create Rollup Property" operation, an analytics administrator can programmatically set up aggregated properties that consolidate data from multiple sources, streamlining reporting and analysis workflows.

Properties

Name Meaning
Query Parameters A collection of optional parameters to customize the request, including:
- Calculated Metric ID: ID for a calculated metric
- Entity: Level of data access report (property or account level)
- 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: Continuation token for pagination
- 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 field names)
Request Body JSON object representing the body of the request. This contains the details needed to create the rollup property and its source links.

Output

The node outputs a JSON array where each element corresponds to the parsed JSON response from the Google Analytics API for each input item processed. For the "Create Rollup Property" operation, the output JSON will contain the details of the newly created roll-up property and its associated source links as returned by the API.

No binary data output is produced by this node.

Dependencies

  • Requires valid Google Analytics API OAuth2 credentials configured in n8n.
  • The node uses the Google Analytics Admin API endpoints (https://analyticsadmin.googleapis.com/v1alpha) for the "Create Rollup Property" operation.
  • Proper permissions on the Google Analytics account are necessary to perform property creation and related administrative actions.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that OAuth2 credentials for Google Analytics API are properly set up and selected.
  • Required Parameter Errors: The node validates required IDs such as Property ID for this operation. Missing these will cause errors like "Property ID is required." Make sure to provide all mandatory identifiers.
  • API Errors: Errors returned from the Google Analytics API are wrapped and presented with messages like "Error calling Google Analytics API: [error message]." Check the error details for issues such as permission problems, invalid request bodies, or quota limits.
  • JSON Parsing Errors: Ensure the Request Body JSON is well-formed; otherwise, parsing errors may occur.

Links and References


This summary focuses on the "Create Rollup Property" operation under the "Admin (V1Alpha) - Property" resource, describing its inputs, outputs, and usage context based on static code analysis.

Discussion