Configuration GA4

Once you have created and configured your GTM Server container and your DNS settings, you are ready to start sending your first data to GA4

1) Creation and Configuration of "Clients" in Your Server Container

a) Client "GA4"

When creating your server container, a GA4 client is already created by default :

Client "GA4"

You must first configure this GA4 client and add your GA4 Measurement ID.

b) Client "GTM"

Add and configure the "GTM" client. You also need to add your client container ID :

Client "GTM"

2) Creation of the GA4 tag in your server container

a) GA4 Tag

Add the "Google Analytics: GA4" tag

Tag "Google Analytics: GA4"

b) Trigger "ClientNameGA4"

Add a trigger of type "Custom":

Trigger "ClientNameGA4"

In this trigger, add a new variable: "ClientName" of type "Client Name":

Variable "ClientName"

Then, add the condition that the variable "ClientName" equals "GA4" in your "ClientNameGA4" trigger :

Trigger "ClientNameGA4" with the variable "ClientName" equal to GA4

3) Configuration of the GA4 tag in your "client" container

Add the configuration parameter "server_container_url" to your Google GA4 tag, assigning it the value of your subdomain URL (host). For example: https://xyxxy.urldemonsite.fr

Configuration parameter "server_container_url"

Dernière mise à jour

Cet article vous a-t-il été utile ?