Loader Google Analytics 4 Audience
This loader is used for importing Google Client IDs to Google Analytics 4 accounts.
Learn more: about Google Analytics 4 measurement protocol API documentation here
Component process
- The component will read the configuration.
- Parse data from the CSV file.
- The component will send data (each Google Client ID) to Google Analytics in 10 threads.
Data In/ Data Out
Data In |
The loader requires an export.csv file in the directory /data/in/tables/export.csv File structure:
|
Data Out |
N/A |
Learn more: about the folder structure please go to this article.
Configuration
Credentials
#api_secret (required) |
An API secret that is generated in the Google Analytics UI. To create a new secret, navigate to:
|
measurement_id (required) |
The measurement ID is associated with a stream. It can be found in the Google Analytics UI under:
|
Audience
google_client_id_column_name (required) |
The name of the column with Google Client IDs (see Input file structure section).
|
audience_name (required) |
The name of the audience (parameter visible in Google Analytics 4 account).
|
segment_id (required) |
The ID of the exported segment.
|
Example
Example
{
"parameters": {
"credentials": {
"measurement_id": "G-XXXXXXXXXX",
"#api_secret": "###"
},
"audience": {
"google_client_id_column_name": "me_google_id_all",
"audience_name": "most valuable customers",
"segment_id": "42"
}
}
}