Articles on: Server Side

Set up a GA4 tag on your sGTM container

From the web container, the Google Tag sends data to the GA4 client on the server container. The GA4 Tag then picks up this data and sends it from the server to the channels (tags). In this article, I will explain how to correctly set up the GA4 Tag on the server container. I assume you are using the DataLayer user object from AdPage Tagging. These are installed by default if you follow the steps from AdPage correctly.

Go to the tags on the server container and create a new tag. Select ‘Google Analytics: GA4’ as the tag configuration.

Enable Google Signals and enter your GA4 Measurement ID.



For the trigger, choose a ‘custom trigger’ for all events with the Client Name that matches GA4. If you are using the Purchase webhooks, it is important to exclude the Purchase Event Name.



Purchase excluden als je gebruik maakt van Webhooks

NOTE! Are you using Webhooks? Don’t forget to add the Augment event to the GA4 tags. This ensures that the standard parameters client_id, ga_sessions_id, and ga_session_number are replaced with the Event Data parameters retrieved from the webhook.

To do this, create an “augment” event and ensure that the parameters clientId, sessionId, and session_count are assigned to client_id, ga_session_id, and ga_session_number respectively.

After setting this up, ensure the GA4 tag is added. The Affected tags should be filtered on “some”.

Augment event aanmaken

Instelling van Affect tags van Augment Event

Updated on: 16/08/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!