Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Alpha) - Property → Get Property

AI-generated

Overview

This node integrates with the Google Analytics API, specifically targeting the Admin (V1Alpha) resource for managing properties and related entities. The "Get Property" operation retrieves detailed information about a single Google Analytics property by its ID. This is useful for scenarios where you need to fetch configuration or metadata about a specific property within your Google Analytics account.

Practical examples include:

  • Retrieving property details to verify settings before running reports.
  • Fetching property metadata to synchronize with other systems.
  • Automating audits or compliance checks on Google Analytics properties.

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 properties (default true).
- Universal Analytics Property ID: UA property to look up connected GA4 property.
- Update Mask: List of fields to update (in snake case).

Output

The output is a JSON array containing the response from the Google Analytics API for the requested property. The structure corresponds directly to the API's property resource representation, including all available metadata and configuration details of the property.

No binary data output is involved in this operation.

Dependencies

  • Requires an OAuth2 API credential for Google Analytics API authentication.
  • The node makes HTTP requests to the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1alpha.
  • Proper permissions on the Google Analytics account are necessary to access property details.

Troubleshooting

  • Missing Credentials Error: If the node throws an error about missing credentials, ensure that a valid Google Analytics OAuth2 credential is configured in n8n.
  • Property ID Required: The operation requires a Property ID; if omitted, the node will throw an error indicating this requirement.
  • API Errors: Errors returned from the Google Analytics API (e.g., permission denied, not found) will be surfaced with descriptive messages. Verify that the Property ID exists and that the authenticated user has access rights.
  • Query Parameter Issues: Incorrect or unsupported query parameters may cause API errors. Use only supported parameters as documented.

Links and References

Discussion