Setup of Google Analytics 4 in Google Tag Manager
  • 05 Oct 2023
  • 2 Minutes to read
  • Dark
    Light
  • PDF

Setup of Google Analytics 4 in Google Tag Manager

  • Dark
    Light
  • PDF

Article Summary

We recommend setting up GA4 via our control panel integration. If you would prefer setting up GA4 in Google Tag Manager then we have put together a guide for implementation.

Les hvordan du setter opp integrasjonen i ditt kontrollpanel

Google Analytics 4 on setup in Google Tag Manager (Advanced)

This is usually for the more advanced user who is familiar with Google Tag Manager and the use of variables and parameters. The advantage of setup in Google Tag Manager is that you can tailor and change the solution continuously as needed. 

To set up Google Analytics 4, you need to add two different tags: 

  • Google Analytics: GA4 configuration
  • Google Analytics: GA4 event

Google Analytics: GA4 configuration

  1. Click Tags > New.
  2. Click Tag configuration.
  3. Select Google Analytics: GA4 Configuration.
  4. Enter your measurement ID.
  • Leave the Send a page view event when this configuration loads check box selected so that page views are sent automatically.
  • Optional: Select the Transfer data to server container check box so that all events associated with this GA4 configuration are sent to the specified URL of the server container for use in a Tag Manager server container instead of being sent directly to Google Analytics. Learn more about server-side tagging.
  1. Optional: Add any parameters you want to configure to the Fields to complete. Use the recommended event parameter names for best results.
  2. Optional: Under User properties, add any custom user properties that you want to configure. Note: Analytics logs certain user properties automatically. You can configure up to 25 additional user properties per Google Analytics 4 property.
  3. Optional: Click Triggers and use the initialization trigger to ensure that the Google Analytics 4 configuration tag fires before other triggers.
  4. Click Triggers and select the events that will trigger the tag.
  5. Save the tag configuration and publish the container.

Google Analytics: GA4 event

Click Tags > New.

  1. Select Tag configuration.
  2. Select Google Analytics: GA4 event.
  3. Under Configuration tag, select the configuration tag you previously created.
  4. Under Event name, enter the name of the event. Use the recommended event parameter names for best results.
  5. Optional: Set event parameters. Use the recommended event parameter namesfor best results.
    • Click Add Row.
    • Type a Parameter name.
    • Enter a value.
    • Repeat the procedure above until you have added all the parameters you want.
  6. Optional: Under User properties, add any custom user properties that you want to configure. Note: Analytics logs certain user properties automatically. You can configure up to 25 additional user properties per Google Analytics 4 property.
  7. Click Triggers and select the events that will trigger the tag.
  8. Save the tag configuration and publish the container.

The parameter names can be found inside Google Tag Manager when in preview mode.

You can also contact us and we can set up your eCommerce tracking for a small fee.

Read more about the Google Analytics Universal shutdown from Google support:

https://support.google.com/analytics/answer/11583528

Get to know the benefits of Google Analytics 4:

Blog - Why Google Analytics 4


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses