Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Alpha) - Expanded Data Set → Delete Expanded Data Set

AI-generated

Overview

This node interacts with the Google Analytics API, specifically supporting a wide range of administrative and data management operations across different resource types and API versions. For the selected Resource "Admin (V1Alpha) - Expanded Data Set" and Operation "Delete Expanded Data Set," the node deletes an expanded data set within a specified Google Analytics property.

Use cases include managing Google Analytics properties programmatically, such as cleaning up or removing expanded data sets that are no longer needed. This is useful for administrators automating their analytics configuration and maintenance workflows.

Example: Automatically deleting an obsolete expanded data set from a property to keep the analytics environment clean and up-to-date.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property where the expanded data set exists.
Expanded Data Set ID The identifier of the expanded data set to delete within the specified property.
Query Parameters Optional additional parameters for the request, including filters, pagination, etc.

The "Query Parameters" collection can include:

  • Calculated Metric ID
  • Entity (property or account level)
  • Filter expression
  • Names (access bindings)
  • Page Size (max number of results)
  • Page Token (pagination token)
  • Show Deleted (include soft-deleted items)
  • Universal Analytics Property ID
  • Update Mask (fields to update)

Output

The output is a JSON array containing the response from the Google Analytics API after attempting to delete the expanded data set. Typically, for a delete operation, the response may be empty or contain confirmation details depending on the API's behavior.

No binary data output is produced by this operation.

Dependencies

  • Requires valid Google Analytics API OAuth2 credentials configured in n8n.
  • The node uses the Google Analytics Admin API v1alpha endpoint (https://analyticsadmin.googleapis.com/v1alpha).
  • Proper permissions on the Google Analytics account/property to perform deletion of expanded data sets.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that OAuth2 credentials for Google Analytics API are properly set up in n8n.
  • Required Parameter Missing: Errors like "Property ID is required" or "Expanded Data Set ID is required" indicate missing mandatory inputs; verify these fields are correctly filled.
  • API Permission Denied: If the API returns permission errors, check that the authenticated user has sufficient rights to delete expanded data sets in the target property.
  • Invalid IDs: Using incorrect or non-existent Property ID or Expanded Data Set ID will cause API errors; confirm IDs are accurate.
  • Network or API Errors: General API call failures might be due to network issues or Google API service disruptions; retry or check service status.

Links and References

Discussion