Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Beta) - Measurement Protocol Secret → Delete Measurement Protocol Secret

AI-generated

Overview

This node interacts with the Google Analytics API, specifically supporting a wide range of administrative and data operations across different versions (v1alpha, v1beta) and data APIs. For the selected resource "Admin (V1Beta) - Measurement Protocol Secret" and operation "Delete Measurement Protocol Secret," the node deletes a specified measurement protocol secret associated with a Google Analytics data stream.

Use cases:

  • Removing obsolete or compromised measurement protocol secrets from a data stream to maintain security.
  • Managing measurement protocol secrets programmatically as part of automated workflows for Google Analytics administration.
  • Cleaning up measurement protocol secrets when decommissioning or restructuring data streams.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property that contains the data stream.
Data Stream ID The identifier of the data stream within the property where the measurement protocol secret exists.
Measurement Protocol Secret ID The identifier of the specific measurement protocol secret to delete. This is a sensitive value and treated as a password.

Output

The output JSON array contains the response from the Google Analytics API after attempting to delete the measurement protocol secret. Typically, a successful deletion returns an empty object or confirmation message indicating the secret was deleted.

No binary data output is involved in this operation.

Dependencies

  • Requires valid Google Analytics API OAuth2 credentials configured in n8n.
  • The node uses the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1beta.
  • Proper permissions on the Google Analytics account/property are necessary to delete measurement protocol secrets.

Troubleshooting

  • Missing Credentials Error: If the node throws an error about missing credentials, ensure that the Google Analytics OAuth2 API credentials are properly set up and connected.
  • Required Parameter Errors: The node requires Property ID, Data Stream ID, and Measurement Protocol Secret ID. Omitting any will cause an error indicating which parameter is missing.
  • API Permission Errors: Insufficient permissions on the Google Analytics account or property may result in authorization errors. Verify that the authenticated user has admin rights.
  • Invalid IDs: Providing incorrect or non-existent IDs for property, data stream, or secret will cause API errors. Double-check these values.
  • Network or API Errors: Transient network issues or API rate limits can cause failures. Retry or check Google API status if persistent.

Links and References


If you need details on other operations or resources, please provide their names.

Discussion