Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Alpha) - Property → Delete Connected Site Tag

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 types. The "Delete Connected Site Tag" operation under the "Admin (V1Alpha) - Property" resource allows users to delete a connected site tag associated with a Universal Analytics property.

Common scenarios for this node include managing Google Analytics accounts, properties, access bindings, audiences, data streams, and other related resources programmatically within n8n workflows. For example, automating the deletion of obsolete connected site tags from properties to maintain clean analytics configurations.

Practical example: A marketing team uses this node to automatically remove connected site tags from properties that are no longer in use, triggered by an external event or schedule, ensuring their Google Analytics setup remains up-to-date without manual intervention.

Properties

Name Meaning
Query Parameters Collection of optional query parameters to customize the request, including:
- Calculated Metric ID: ID for 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: Max number of report tasks to return (default 10)
- Page Token: Continuation token for pagination
- Show Deleted: Include soft-deleted ("trashed") properties (boolean, 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 for request body payload; used for operations requiring a body (not typically needed for delete connected site tag)

Note: For the "Delete Connected Site Tag" operation, the key input is the Property ID identifying the property from which the connected site tag will be deleted.

Output

The node outputs the JSON response returned by the Google Analytics API after performing the requested operation. For the "Delete Connected Site Tag" operation, the output will typically confirm the deletion or provide details about the deleted tag.

The output is structured as an array of JSON objects, each representing the API response for one input item processed.

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 endpoints (v1alpha and others depending on resource).
  • Network connectivity to https://analyticsadmin.googleapis.com/ is required.
  • Proper permissions/scopes in the OAuth2 credential to perform delete operations on connected site tags.

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 and selected.
  • Required Parameter Missing: Errors like "Property ID is required" indicate that mandatory inputs were not provided. Verify all required IDs are correctly set.
  • API Permission Denied: Insufficient OAuth scopes or user permissions can cause authorization errors. Confirm the OAuth2 token has necessary scopes for admin operations.
  • Invalid Resource or Operation: Selecting unsupported combinations may cause errors. Double-check the resource and operation selections.
  • Malformed Request Body: For operations requiring a JSON body, invalid JSON syntax will cause failures. Validate JSON input carefully.

Links and References


This summary focuses on the "Delete Connected Site Tag" operation under the "Admin (V1Alpha) - Property" resource, describing its purpose, inputs, outputs, dependencies, and common troubleshooting points based on static analysis of the node's source code and provided property definitions.

Discussion