- 05 Oct 2023
- 2 Minutes to read
- Print
- DarkLight
- PDF
Setup of Google Analytics 4 in Google Tag Manager
- Updated on 05 Oct 2023
- 2 Minutes to read
- Print
- DarkLight
- PDF
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
- Click Tags > New.
- Click Tag configuration.
- Select Google Analytics: GA4 Configuration.
- 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.
- Optional: Add any parameters you want to configure to the Fields to complete. Use the recommended event parameter names for best results.
- 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.
- Optional: Click Triggers and use the initialization trigger to ensure that the Google Analytics 4 configuration tag fires before other triggers.
- Click Triggers and select the events that will trigger the tag.
- Save the tag configuration and publish the container.
Google Analytics: GA4 event
Click Tags > New.
- Select Tag configuration.
- Select Google Analytics: GA4 event.
- Under Configuration tag, select the configuration tag you previously created.
- Under Event name, enter the name of the event. Use the recommended event parameter names for best results.
- 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.
- 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.
- Click Triggers and select the events that will trigger the tag.
- 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: