Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Alpha) - Rollup Property Source Link → List Rollup Property Source Links

AI-generated

Overview

This node integrates with the Google Analytics API, specifically targeting the Admin (V1Alpha) resource for managing Rollup Property Source Links. The "List Rollup Property Source Links" operation retrieves a list of rollup property source links associated with a specified Google Analytics property.

This node is beneficial when you need to programmatically access and manage rollup property source links within your Google Analytics properties, such as for auditing, reporting, or automating configuration tasks.

Practical example:
You want to fetch all rollup property source links for a particular property to analyze how data from multiple source properties is aggregated into a rollup property. This can help in understanding data lineage and ensuring correct setup of rollup properties.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property for which to list rollup property source links. This is required to specify the target property.
Query Parameters Optional parameters to filter or paginate the results. Includes:
- Calculated Metric ID: ID for a calculated metric to filter by.
- 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 results 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 output is a JSON array where each item represents a rollup property source link object retrieved from the Google Analytics API. Each object contains details about a rollup property source link associated with the specified property.

The exact structure of each rollup property source link object follows the Google Analytics API schema for rollup property source links, typically including identifiers, linked property information, and metadata.

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 rollup property source links.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that valid OAuth2 credentials for Google Analytics are configured in n8n.
  • Required Property ID Missing: The node requires the Property ID to be set; otherwise, it will throw an error indicating that the Property ID is required.
  • 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 API response for details such as permission issues or invalid IDs.
  • Pagination: If many rollup property source links exist, use the "Page Size" and "Page Token" query parameters to paginate through results.

Links and References

Discussion