Configure the variables

You need to configure some user-related varibles. These variables starts with user_ prefix. At this moment the only variable you need to config is user_GA4_ID. You need to set value of this varible to your Google Analytics 4 ID.

First you need to find your GA4 ID.

Open your Google Analytics4 account and navigate to the Admin section:

Google Analytics 4 dashboard

Now you need to select Data Streams in the admin dashboard

Google Analytics 4 Admin dashboard

And then select your DataStream by clicking on it

Data Streams - Google Analytics 4 admin

Now you can see your GA4 ID on the opened page

Stream details - Google Analytics 4 admin

Copy the value of your Measurement ID (GA4 ID) to the clipboard.

Now you need modify the GTM variable value:

  1. In your Google Tag Manager navigate to Variables section.

  2. Find user_GA4_ID variable in the list

  3. Click on the variable name

  4. Click on the Varible Configuration section

  5. Paste your GA4 ID in the Value field

  6. Click Save button at the right top corner of the page

Last updated