Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Beta) - Property → Create 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 API versions (v1alpha, v1beta) and data APIs. It allows users to manage Google Analytics accounts, properties, access bindings, audiences, data streams, custom dimensions/metrics, and more.

For the Admin (V1Beta) - Property resource with the Create Property operation, the node enables creating a new property within a Google Analytics account. This is useful for organizations that want to programmatically set up new properties with specific configurations, streamlining the management of analytics tracking setups.

Common scenarios:

  • Automating the creation of new Google Analytics properties when onboarding new websites or apps.
  • Integrating property creation into larger workflows for digital marketing or analytics setup.
  • Managing multiple properties programmatically without manual intervention in the Google Analytics UI.

Properties

Name Meaning
Query Parameters A collection of optional query parameters to customize the request. Options include:
- Calculated Metric ID: The 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: 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).
Request Body JSON object containing the details of the property to create, including location and attributes.

Output

The node outputs an array of JSON objects representing the response from the Google Analytics API for the create property request. The structure corresponds to the API's response schema for a property resource, typically including fields such as:

  • Property identifiers
  • Configuration details
  • Metadata about the created property

No binary data output is involved.

Dependencies

  • Requires valid Google Analytics API OAuth2 credentials configured in n8n.
  • Uses the Google Analytics Admin API endpoints (https://analyticsadmin.googleapis.com/v1beta).
  • Network connectivity to Google Analytics API services.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that OAuth2 credentials are properly set up and linked in n8n.
  • Required Parameter Errors: The node validates required IDs like Property ID or Account ID depending on the operation. Missing these will cause errors; verify all mandatory inputs are provided.
  • API Request Failures: Errors returned by the Google Analytics API will be surfaced with messages prefixed by "Error calling Google Analytics API." Check the error message and stack trace for details.
  • JSON Parsing Issues: Ensure the Request Body JSON is well-formed; invalid JSON will cause parsing errors.

Links and References


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

Discussion