ePrivacy and GPDR Cookie Consent by Cookie Consent Skip to main content

Loader Google Analytics 4 Audience

Google Analytics 4 Audience is a powerful tool that allows businesses to transfer segmented audiences from Google Analytics 4 (GA4) to various Google platforms. By leveraging GA4 Audience, businesses can optimize their campaigns and create tailored content that resonates with their intended audience, improving marketing effectiveness.

Business value in CDP

Integrating Google Analytics 4 Audience within a Customer Data Platform (CDP) unlocks substantial business value by providing an intricate understanding of user behavior and preferences. This enriched data enables businesses to create highly specific audience segments based on user properties, events, or combinations. The result is a more granular and personalized approach to audience targeting, ensuring that marketing campaigns are not only more relevant but also more impactful. 

Difference between Google loaders
Feature Comparison Google Ads Customer Match Audience Google Analytics Audience Google Analytics 4 Audience
Purpose Create custom audiences in Google Ads Audience segmentation Advanced audience creation
Audience Creation The audience is created using data from external data sources (e.g., email, phone numbers)

Audiences are based on website and app interactions, such as pages visited, events triggered, or acquisition sources.

Audiences can be created based on user properties, events, or combinations of both, allowing for more granular and specific targeting

Data Source External CSV table containing customer data Website and app data collected through the Google Analytics tracking code Website and app data collected through the GA4 tracking code
Use Cases for CDP Tailors advertisements for audience segments, making it an ideal tool for personalized ad campaigns using external customer data Informs marketing strategies based on user behavior, allowing businesses to understand and target specific segments in their audience for improved engagement Enables highly targeted and dynamic ads, leveraging the comprehensive user properties and events tracked in GA4. Ideal for businesses seeking advanced audience customization through a CDP

Steps for setting up Google Analytics 4 Audience

Follow this step-by-step guide to configure the component:

  1. The first step is to set up the loader within Meiro Integration by following the instructions given in this article.
  2. Set up the loader as a destination in CDP. Read here
  3. Continue with exporting your segmented customer profiles. Refer to this article.

Setting up the loader in MI

For setting Google Analytics 4 Audience as a destination within Meiro Integration, use the Google Analytics 4 Audience loader component. This loader is used for importing Google Client IDs to Google Analytics 4 accounts. 

Component process:

  1. The component will read the configuration.
  2. Parse data from the CSV file.
  3. The component will send data (each Google Client ID) to Google Analytics in 10 threads.

Learn more: about Google Analytics 4 measurement protocol API documentation here

Data In/ Data Out

Data In

The loader requires an export.csv file in the directory /data/in/tables/export.csv 


File structure: 


customer_entity_id,google_client_id_column_name,[optional_columns]

002ca22b2249514125f34a4caace2c8c,"[""1146720615.1594475259""]"

10278832e8dd78d0095bf0022b7cb77d,"[""328282852.1594253327"", ""343221314.1594879134""]"

  • Name of the google_client_id_column_name is configurable in the config.json file.
  • Google_client_id_column_name is required in the input file.
  • Data type: Array [string].
  • All additional columns and their values are sent as custom payload (key-value pairs) in the event ‘params’ property.

Data Out

N/A

Learn more: about the folder structure please go to this article.

Parameters 

Credentials

Знімок екрана 2024-01-19 о 13.16.47.png

Google Analytics 4 - Measurement ID (required)

The measurement ID that is associated with a stream. It can be found in the Google Analytics UI under: 

  • Admin > Data Streams > choose your stream > Measurement ID

Instructions on how to find Measurement ID and API secret credentials: How to find credential... | Meiro Docs

API Secret (required)

An API secret that is generated in the Google Analytics UI. To create a new secret, navigate to: 

  • Admin > Data Streams > choose your stream > measurement protocol > create
Instructions on how to find Measurement ID and API secret credentials: How to find credential... | Meiro Docs
Audience

Screenshot 2022-04-04 at 4.57.17 PM.png

Google Client ID - Column Name (required)

The name of the column with Google Client IDs (see Input file structure section).

  • Data type: string

Audience Name (required)

The name of the audience (parameter visible in Google Analytics 4 account).

  • Data type: string

Segment ID

(required)

The ID of the exported segment.

  • Data type: string
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"
    }
  }
}