Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Alpha) - Property → Get Property Attribution Settings

AI-generated

Overview

This node interacts with the Google Analytics API, specifically targeting the Admin (V1Alpha) resource for managing properties and their settings. The "Get Property Attribution Settings" operation retrieves the attribution settings of a specified Google Analytics property. This is useful for users who want to programmatically access how attribution is configured on their analytics properties, enabling them to audit or integrate these settings into automated workflows.

Common scenarios include:

  • Auditing attribution settings across multiple properties.
  • Integrating property attribution data into reporting dashboards.
  • Automating compliance checks or configuration backups.

Example: A marketing analyst wants to fetch the attribution model settings of a specific Google Analytics property to verify if it aligns with their campaign tracking strategy.

Properties

Name Meaning
Property ID The unique identifier of the Google Analytics property whose attribution settings are fetched.
Query Parameters Optional additional parameters to refine the request. Includes options like Calculated Metric ID, Entity, Filter, Names, Page Size, Page Token, Show Deleted, Universal Analytics Property ID, Update Mask.

The "Query Parameters" collection supports these fields:

  • Calculated Metric ID: ID for a 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.
  • Page Token: Token for pagination.
  • Show Deleted: Include soft-deleted properties.
  • Universal Analytics Property ID: UA property to look up connected GA4 property.
  • Update Mask: Fields to update (snake case).

Output

The output is a JSON array where each item corresponds to the response from the Google Analytics API for the requested operation. For the "Get Property Attribution Settings" operation, the JSON contains the attribution settings object of the specified property, detailing how attribution is configured.

No binary data output is involved in this operation.

Dependencies

  • Requires an OAuth2 API credential for Google Analytics API authentication.
  • The node makes HTTP requests to the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1alpha.
  • Proper permissions on the Google Analytics account/property are necessary to access attribution settings.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that valid OAuth2 credentials are configured in n8n for Google Analytics.
  • Required Parameter Errors: Errors like "Property ID is required" indicate that the mandatory property identifier was not provided. Make sure to specify the Property ID input.
  • API Request Failures: Errors returned from the Google Analytics API will be wrapped with "Error calling Google Analytics API" message. Check the error details for issues such as insufficient permissions, invalid IDs, or network problems.
  • Pagination Issues: When using query parameters like Page Token, ensure correct tokens are used to paginate through results.

Links and References


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

Discussion