This node queries a connected Google Analytics 4 property using the Google Analytics Data API v1.
The node supports building a Report by specifying metrics, dimensions, and date ranges.
In order to find available metrics and dimensions, you can use the GA4 Dimensions & Metrics Explorer offered by Google.
Note: This node can only be used to connect with Google Analytics 4 properties and is not compatible with Universal Analytics. To migrate a website using Universal Analytics to Google Analytics 4, you can find more information in the official migration guide.
Metrics are quantitative measurements of event data for your Google Analytics property.
Specify at least one and up to ten metrics to include in your query. Metrics can be specified by name and either be built-in metrics or custom metrics defined in your property.
Built-in metrics can be seen in the list of metrics under the column "API Name".
Dimensions are attributes of the event data and their values are always strings.
Specify up to nine dimensions by name. Available dimension names can be seen in the list of dimensions under the column "API Name".
A date range specifies the range of dates for which to request event data from Google Analytics.
Specify at least one and up to four date ranges for which event data will be requested. The custom name given to a date range replaces the date range name which is auto-generated by Google Analytics.
dateRange
is valued.
If no name is given, Google Analytics automatically names each date range based on their index:
date_range_0
, date_range_1
, etc.
Note: The custom name must not start with "date_range_" or "RESERVED_".
Include a column containing date range names. If a date range is not given a name explicitly, Google Analytics will auto-generate a unique name for each date range.
Data can be filtered by comparing dimension values to strings or based on list inclusion.
Each filter criterion can be negated to invert its results, for example to exclude results whose dimension values are in the specified list. The dimension filter can be configured such that all criteria must match for a result to be returned, or such that any criterion must match.
Specify the currency code to use for currency returning metrics, to be stated in three letter ISO-4217 format. If it is left empty, the report uses the property's default currency.
If enabled, outputs response metadata from the Google Analytics API as flow variables.
In particular, the following fields are returned: dataLossFromOtherRow
,
currencyCode
, timeZone
, emptyReason
, subjectToThresholding
.
The format of the flow variable name follows the pattern analytics.response.$FIELD
,
where $FIELD
specifies the field name.
More information can be obtained from the API documentation.
If enabled, outputs the Google Analytics property quotas as flow variables.
Each quota will indicate the "consumed" and "remaining" tokens after the last API request made by the node.
The format of the flow variable name follows the pattern
analytics.quota.$QUOTA.$TYPE
, where $QUOTA
specifies the quota and $TYPE
is either "consumed" or "remaining".
Available quotas can be seen in the API documentation.
Note: Retrieving a lot of data (many rows, many columns, or long date ranges) or specifying complex filter criteria may be responsible for consumption of many tokens per node execution.
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension KNIME Google Cloud Storage Connection from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com, follow @NodePit on Twitter or botsin.space/@nodepit on Mastodon.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.