Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Beta) - Property → Acknowledge User Data Collection

AI-generated

Overview

This node integrates with the Google Analytics API, specifically supporting a wide range of administrative and data management operations across different versions (V1Alpha, V1Beta) and data resources. The "Acknowledge User Data Collection" operation under the "Admin (V1Beta) - Property" resource allows users to acknowledge the terms of user data collection for a specified Google Analytics property.

This node is beneficial in scenarios where automated workflows need to manage Google Analytics properties programmatically, such as setting up new properties, managing access bindings, or complying with data collection policies by acknowledging user data collection terms.

Practical example:
You can use this node to automate the process of acknowledging user data collection terms for a newly created Google Analytics property, ensuring compliance without manual intervention.

Properties

Name Meaning
Property ID The unique identifier of the Google Analytics property for which the operation applies.
Query Parameters Optional parameters to filter or modify the request, including:
- Calculated Metric ID: ID for calculated metrics
- 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
- Page Token: Token for pagination
- Show Deleted: Include soft-deleted properties
- Universal Analytics Property ID: Lookup connected GA4 property
- Update Mask: Fields to update (snake case)
Request Body JSON object containing the request payload if required by the operation.

Output

The node outputs a JSON array containing the parsed response from the Google Analytics API call. The structure of the output depends on the specific operation invoked but generally reflects the API's response data for the requested resource and action.

For the "Acknowledge User Data Collection" operation, the output will confirm the acknowledgment status or provide details related to the property’s user data collection settings.

No binary data output is involved in this operation.

Dependencies

  • Requires an OAuth2 API credential configured for Google Analytics API access.
  • The node uses the Google Analytics Admin API endpoints (https://analyticsadmin.googleapis.com/v1beta) for the V1Beta version.
  • Proper permissions and scopes must be granted to the OAuth2 credential to perform administrative actions on Google Analytics properties.

Troubleshooting

  • Missing Credentials Error: If the node throws an error about missing credentials, ensure that a valid Google Analytics OAuth2 credential is configured and selected.
  • Required Parameter Errors: The node validates required parameters like Property ID. Omitting these will cause errors indicating which parameter is missing.
  • API Errors: Errors returned from the Google Analytics API (e.g., permission denied, invalid property ID) are wrapped and presented with the message prefix "Error calling Google Analytics API". Check the API response for detailed error information.
  • JSON Parsing Errors: If the request body JSON is malformed, the node will fail. Ensure the JSON input is valid.

Links and References


This summary focuses on the "Admin (V1Beta) - Property" resource and the "Acknowledge User Data Collection" operation as requested.

Discussion