Skip to main content Skip to complementary content

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

Select Google Analytics 4 in the list and configure the connection.

Configuration

Select your engine from the list and set the main and advanced settings.

Main settings
Property Configuration
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.

After configuring the connection, give it a display name (mandatory) and a description (optional).

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 – please let us know!