Skip to main content Skip to complementary content
Close announcements banner

Google Analytics 4 properties

Properties to configure to establish a connection to the Google Analytics 4 API.

Google Analytics 4 is unidirectional and can only be used as a source dataset in your pipeline.

Google Analytics 4 connection

Selection
Property Configuration
Selection Select or enter Google Analytics 4.
Configuration
Property Configuration
Engine Select your engine in the list.
Authentication method Service account key: Authenticate using a Google account that is associated with your Google Cloud Platform project.

To know more about the Google Cloud authentication process, read the Google Cloud documentation.

Google credentials Paste the content of the JSON file that contains your service account key. To know more about the Google Cloud authentication process, read the Google Cloud documentation.
Description
Property Configuration
Description Enter a display name (mandatory) and a description (optional) for the connection.

Google Analytics 4 dataset

Dataset configuration
Property Configuration
Dataset name Enter a display name for the dataset. This name will be used as a unique identifier of the dataset in all Talend Cloud apps.
Connection Select your connection in the list. If you are creating a dataset based on an existing connection, this field is read-only.
Main settings
Property Configuration
Property ID Select or enter the unique property ID for retrieving Analytics data. For more information, read the Google Analytics 4 documentation.
Date range Select or enter the start and end dates corresponding to the report you want to retrieve.
Dimensions

Select or enter the name of the dimensions you want to use.

Example: Page title(PageTitle)

For more information, read the Google Analytics 4 API documentation.

Metrics

Select or enter the name of the metrics you want to use.

Example: Sessions (sessions)

For more information, read the Google Analytics 4 API documentation.

Advanced settings
Property Configuration
Read timeout Enter the read timeout value in milliseconds. An exception will occur if the waiting time expires before there is data available to read.
Advanced metrics
  • Expression: Select or enter the expression corresponding to the metrics you want to use.

    Example: eventCount/sessions

  • Name: Specify a name for the previously defined expression. The name will help you reuse this expression in a filter clause.

    Example: eventCountPerSession

For more information, read the Google Analytics 4 API documentation.

Dimension filter clauses

Define your custom filter clause in JSON format. You can use the expression name defined previously in this clause.

For more information, read the Google Analytics 4 API documentation.

Metric filter clauses

Define your custom metric clause in JSON format. You can use the expression name defined previously in this clause.

For more information, read the Google Analytics 4 API documentation.

Google Analytics 4 source configuration

When Google Analytics 4 is used as a source dataset in your pipeline, you can select an additional option that will be performed while passing the data to the next step of the pipeline:
  • Keep empty rows: Enable this option to include in the response the rows where all metric values are zero.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!