Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Beta) - Measurement Protocol Secret → List Measurement Protocol Secrets

AI-generated

Overview

This node interacts with the Google Analytics API, specifically supporting various administrative and data operations across different versions (v1alpha, v1beta) of the API. For the selected resource "Admin (V1Beta) - Measurement Protocol Secret" and operation "List Measurement Protocol Secrets," it lists all measurement protocol secrets associated with a specified data stream within a property.

This functionality is useful for managing and auditing measurement protocol secrets that are used to send data to Google Analytics via the Measurement Protocol. For example, a user can retrieve all secrets for a particular data stream to verify or rotate them as part of security best practices.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property under which the data stream exists.
Data Stream ID The identifier of the data stream within the property for which to list measurement protocol secrets.
Query Parameters Optional additional parameters to filter or paginate the results. Includes:
- Calculated Metric ID: ID for calculated metrics (not typically relevant here).
- Entity: Level of data access report (property or account level).
- 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 items (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 node outputs a JSON array where each element represents a measurement protocol secret object retrieved from the Google Analytics API. Each secret includes details such as its unique ID, display name, creation time, and other metadata related to the secret.

No binary data output is involved in this operation.

Dependencies

  • Requires an OAuth2 credential configured for Google Analytics API access.
  • The node uses the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1beta.
  • Proper permissions on the Google Analytics account and property are necessary to list measurement protocol secrets.

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 requires both Property ID and Data Stream ID to be provided. Omitting these will cause errors indicating the missing parameter.
  • API Permission Errors: Insufficient permissions on the Google Analytics account or property may result in authorization errors. Verify that the OAuth2 token has the necessary scopes.
  • Pagination Handling: If many secrets exist, use the Page Size and Page Token query parameters to paginate through results properly.

Links and References

Discussion