Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Beta) - Property → Get Property

AI-generated

Overview

This node interacts with the Google Analytics API, specifically supporting a wide range of administrative and data management operations across different versions (V1Alpha, V1Beta) and data APIs. The "Admin (V1Beta) - Property" resource with the "Get Property" operation allows users to retrieve detailed information about a specific Google Analytics property.

Common scenarios for this node include:

  • Retrieving configuration details of a Google Analytics property.
  • Managing properties within an account programmatically.
  • Integrating Google Analytics property data into automated workflows or dashboards.

For example, a user might use this node to fetch property settings before updating them or to audit property configurations across multiple accounts.

Properties

Name Meaning
Property ID The unique identifier of the Google Analytics property to retrieve information for.
Query Parameters Optional parameters to refine or filter the request. Includes:
- 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 (default 10).
- Page Token: Token for fetching next page of results.
- Show Deleted: Whether to include soft-deleted ("trashed") properties (boolean).
- 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 JSON data representing the response from the Google Analytics API for the requested property. This typically includes all available details about the property such as its name, settings, identifiers, and other metadata.

If the API supports binary data for any operation, it would be summarized accordingly, but for the "Get Property" operation, the output is purely JSON.

Dependencies

  • Requires valid Google Analytics API credentials with OAuth2 authentication.
  • The node uses the googleAnalyticsOAuth2Api credential type (an OAuth2 API key credential).
  • Network access to Google Analytics API endpoints (https://analyticsadmin.googleapis.com/v1beta).

Troubleshooting

  • Missing Credentials: If the node throws an error about missing credentials, ensure that a valid Google Analytics OAuth2 API credential is configured in n8n.
  • Required IDs Missing: Errors like "Property ID is required" indicate that the necessary input parameter was not provided. Make sure to specify the Property ID when using this operation.
  • API Errors: Errors 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 or invalid IDs.
  • Pagination Issues: When using query parameters like pageToken, ensure tokens are correctly passed to paginate through large result sets.

Links and References


This summary focuses on the "Admin (V1Beta) - Property" resource and the "Get Property" operation as requested.

Discussion