cdp menu

Customerlabs CDP Documentation

CustomerLabs + Google Analytics (GA4) Integration

You are here:

CustomerLabs + Google Analytics (GA4) Integration

Google Analytics helps you to identify patterns and trends in how visitors engage with your website. With CustomerLabs integration, you can use the details to understand goal conversions, funnel, attribution and to build your audience and plan your campaigns.

Browser Side

1. Log in to your Google Analytics Account

2. Select the account to be integrated

3. Under Admin in the account, Create new Property

Create New property in GA4

4. After creating new Property, click “Data Stream” under that

5. Click “Add stream” -> Select “Web”

Add new data stream

6. Open the recently added Data stream & Copy the “Measurement ID”

Copy Measurement ID

7. Log in to your CustomerLabs Account

8. Navigate to the “Destinations” page from the Menu

9. Search and select Google Analytics gtag

Select Google Analytics gtag

10. Click on “Subscribe” and then on “Configuration Settings”

11. Paste the “Measurement ID” copied in the “Website Tracking ID” box

Paste the Tracking ID

Server Side

1. In your Google Analytics account, Click the new Data stream and then Go to “Measurement Protocol API Secrets” screen

2. Create a secret by clicking on the “Create” button and give a nickname to it

3. Copy the “Secret value” generated

Copy the secret value API

4. Go to your CustomerLabs Account

5. Turn on the toggle for “Enable GA4 Measurement Protocol” under Advanced Settings in the GA4 configuration settings

6. Paste the secret value copied in the “API Secret” box below

Enable Measurement Protocol

User ID Tracking

1. To enable CustomerLabs to assign User ID for all the users which helps to unify the details of the user, Turn on the toggle for “Enable User-ID Tracking for anonymous users” in the Advanced Settings for GA4 Configuration

2. Set “Default” under “User Identify ID”

Enable user ID tracking

3. Click on “Save Changes” and then return back to Google Analytics gtag Customization screen

Enhanced Ecommerce

Enabling Enhanced Ecommerce lets you sync additional information for default e-commerce events on GA4 to generate detailed reports and gain valuable insights.

Note: You have to enable this initially while authenticating your GA4 account. If you want to enable this at a later stage, you need to re-authenticate your GA4 account and then turn this toggle on.

Event Workflow Setup

1. Click “Setup Event Workflow” from the Google Analytics gtag Customization screen

Setup event workflow

2. Turn on the toggle for all the “added_to_segment” events in the server-side callbacks.

Note: Make sure you don’t turn on the toggle for any event on both Server-side and Client-side callbacks since Google does not de-duplicate the data.

Event tracking

3. Once “added_to_segment” is switched on, this event is refreshed in Google Analytics every time the audience created in CustomerLabs refreshes.

4. Click on “Save Changes” once you are done.

5. You have now integrated Google Analytics with your CustomerLabs account. 

If you’re still facing issues, get in touch with our team by clicking on the chat icon in the lower right corner. We will set up all your events for free

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
How Can We Improve This Article?
Table of Contents
CustomerLabs gives freedom, flexibility and wings to digital marketers.
Sign Up
© 2023, Customer Labs Inc. All rights reserved.

Schedule a 1-1 Demo