Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Alpha) - Key Event → Create Key Event

AI-generated

Overview

This node integrates with the Google Analytics API, specifically targeting the Admin (V1Alpha) resource for managing Key Events within a property. The "Create Key Event" operation allows users to create new key events associated with a specified Google Analytics property.

Typical use cases include automating the creation of key events in Google Analytics properties to track important user interactions or milestones on websites or apps. For example, a marketing team might use this node to programmatically add key events that correspond to campaign goals or conversion points without manual intervention.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property where the key event will be created.
Query Parameters Optional additional parameters to customize the API request, such as filters or pagination. Options include: Calculated Metric ID, Entity, Filter, Names, Page Size, Page Token, Show Deleted, Universal Analytics Property ID, Update Mask.
Request Body JSON object containing the details of the key event to create. This should follow the Google Analytics API schema for key events.

Output

The node outputs a JSON array where each item corresponds to the response from the Google Analytics API after creating a key event. The JSON structure reflects the created key event's data as returned by the API, including identifiers and any metadata.

No binary data output is produced by this node.

Dependencies

  • Requires an OAuth2 credential configured for Google Analytics API access.
  • The node uses the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1alpha.
  • Proper permissions on the Google Analytics property are necessary to create key events.

Troubleshooting

  • Missing Credentials Error: If the node throws an error about missing credentials, ensure that a valid Google Analytics OAuth2 credential is configured and selected.
  • Required Parameter Errors: The node requires the Property ID to be set; if omitted, it will throw an error indicating this requirement.
  • API Errors: Errors returned from the Google Analytics API (e.g., permission denied, invalid request body) will be surfaced with messages prefixed by "Error calling Google Analytics API". Review the API response for details.
  • Invalid JSON in Request Body: Ensure the JSON provided in the Request Body field is valid and matches the expected schema for a key event.

Links and References


This summary focuses on the "Admin (V1Alpha) - Key Event" resource and the "Create Key Event" operation as requested.

Discussion