Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions84

Overview

This node interacts with the Google Analytics API, specifically supporting a wide range of administrative and data operations. For the selected resource "Admin (V1Alpha) - Event Create Rule" and operation "Delete Event Create Rule," the node deletes an event creation rule within a specified data stream of a Google Analytics property.

Use cases include managing event creation rules that automate or customize how events are created in Google Analytics data streams. Deleting an event create rule is useful when you want to remove obsolete or incorrect event creation logic from your analytics setup.

Example scenario: You have a data stream with several event create rules configured to track user interactions. One of these rules is no longer needed or was created by mistake. Using this node operation, you can delete that specific event create rule by providing the property ID, data stream ID, and event create rule ID.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property containing the data stream.
Data Stream ID The identifier of the data stream within the property where the event create rule exists.
Event Create Rule ID The identifier of the specific event create rule to delete.
Query Parameters Optional additional parameters for the API request (not typically required for deletion).

Output

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

No binary data is output by this node 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 and property to manage event create rules are necessary.

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 in n8n.
  • Required Parameter Missing: Errors like "Property ID is required", "Data Stream ID is required", or "Event Create Rule ID is required" indicate that one or more mandatory input fields are not provided. Make sure all required IDs are correctly filled.
  • API Permission Denied: If the API returns permission errors, verify that the authenticated user has sufficient rights to delete event create rules in the specified property and data stream.
  • Invalid IDs: Providing incorrect or non-existent IDs will cause the API to return errors. Double-check the IDs for accuracy.
  • Network or API Errors: General API call failures may be due to network issues or temporary API problems. Retry after some time or check connectivity.

Links and References


If you need details on other operations or resources, feel free to ask!

Discussion