Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions84

Overview

This node interacts with the Google Analytics API, specifically targeting administrative resources and operations related to BigQuery Links within Google Analytics properties. The "Delete BigQuery Link" operation allows users to remove an existing BigQuery link associated with a specified property.

Common scenarios for this node include managing integrations between Google Analytics properties and BigQuery datasets, such as cleaning up or removing obsolete BigQuery links to maintain data hygiene and control access.

For example, if a user wants to disconnect a BigQuery dataset from their Google Analytics property, they can use this node to delete the corresponding BigQuery link by specifying the property ID and the BigQuery link ID.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property where the BigQuery link exists.
BigQuery Link ID The identifier of the specific BigQuery link to be deleted from the property.
Query Parameters Optional parameters that can be used to filter or paginate results in other operations (not typically used for delete). Includes options like Calculated Metric ID, Entity, Filter, Names, Page Size, Page Token, Show Deleted, Universal Analytics Property ID, Update Mask.

Output

The output is a JSON array containing the response from the Google Analytics API after attempting to delete the specified BigQuery link. Typically, for a delete operation, the API returns an empty object or confirmation of deletion.

  • json: Contains the parsed JSON response from the API.
  • No binary data is involved in this operation.

Dependencies

  • Requires an OAuth2 API credential for Google Analytics to authenticate requests.
  • The node uses the Google Analytics Admin API endpoint: https://analyticsadmin.googleapis.com/v1alpha.
  • Proper permissions on the Google Analytics property are required to delete BigQuery links.

Troubleshooting

  • Missing Credentials: If the node throws an error about missing credentials, ensure that a valid Google Analytics OAuth2 credential is configured in n8n.
  • Missing Property ID or BigQuery Link ID: The node requires both Property ID and BigQuery Link ID to perform the deletion. Errors will occur if either is not provided.
  • API Errors: Errors returned from the Google Analytics API (e.g., insufficient permissions, invalid IDs) will be surfaced with messages prefixed by "Error calling Google Analytics API". Check the message and stack trace for details.
  • Network Issues: Ensure that the n8n instance has internet access and can reach the Google Analytics API endpoints.

Links and References

Discussion