Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions84

Overview

This node integrates with the Google Analytics API, specifically supporting a wide range of administrative and data operations. For the selected resource "Admin (V1Alpha) - Data Stream" and operation "Create Data Stream," it allows users to create a new data stream within a specified Google Analytics property.

Use cases include automating the creation of data streams for tracking website or app data in Google Analytics properties, which is useful for digital marketing teams, analysts, or developers managing multiple properties programmatically.

Example: Automatically creating a new web data stream for a property when onboarding a new website, enabling immediate data collection without manual setup in the Google Analytics UI.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property under which the data stream will be created.
Query Parameters Optional additional parameters to customize the request. Options include:
- Calculated Metric ID
- Entity (property or account level)
- Filter expression
- Names of access bindings
- Page Size (number)
- Page Token (for pagination)
- Show Deleted (boolean)
- Universal Analytics Property ID
- Update Mask (fields to update)
Request Body JSON object containing the details of the data stream to create, such as stream type, name, and configuration settings.

Output

The node outputs a JSON array where each element corresponds to the response from the Google Analytics API for the create data stream request. The JSON structure matches the API's data stream resource representation, typically including fields like:

  • name: The resource name of the data stream.
  • type: Type of the data stream (e.g., web, iOS, Android).
  • displayName: User-friendly name of the data stream.
  • Other configuration details relevant to the data stream.

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 account/property are necessary to create data streams.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that a valid OAuth2 credential for Google Analytics is configured and selected.
  • Required Parameter Errors: Errors like "Property ID is required" indicate missing mandatory inputs; verify that the Property ID is provided.
  • API Errors: Any error returned by the Google Analytics API will be wrapped and shown with the message prefix "Error calling Google Analytics API." Check the API error details for issues such as permission denied, invalid request body, or quota limits.
  • Invalid JSON in Request Body: Ensure the JSON entered in the Request Body field is well-formed and matches the expected schema for creating a data stream.

Links and References

Discussion