Google Analytics 4 setup
Google Analytics 4: Setup via the control panel
Google Analytics Universal stopped collecting data on July 1, 2023. Google Analytics 4 (abbreviated to GA4) is the current version. Here's how to set up GA4.
Setup at Acendy
In Acendy's control panel, you can set up GA4 as follows:
- Go to Configuration > Google.
- Select the module "Google Analytics (Statistics)" - (Remember to update the module if needed).
In the module, you will find a field labeled "GA4 ID". Here, enter your measurement ID from GA4, which you can find by logging into GA4 and navigating to Administrator > Data Streams, and then into the site's data stream.
We recommend following the configuration assistant in GA4 to ensure that you have all the important settings and links in place.
Google Analytics 4 - Setup via Google Tag Manager (advanced)
This article guides you through setting up Google Analytics 4 (GA4) using Google Tag Manager (GTM). This setup is recommended for advanced users familiar with GTM variables and parameters.
Google Analytics 4 with Google Tag Manager (advanced)
This method is suited for advanced users with knowledge of Google Tag Manager and the use of variables and parameters. The advantage of setting up in Google Tag Manager is that you can customize and change the solution continuously as needed.
To set up Google Analytics 4, you need to add two different tags:
- Google Analytics: Google-tag
- Google Analytics: GA4-event
Google Analytics: Google-tag
- Click Tags > New.
- Click Tag configuration.
- Select Google-Tag.
- Enter your measurement ID.
- Leave the "Send a page view event when this configuration loads" option checked so that page views are sent automatically.
- Optional: Check "Transfer data to the server container" so that all events associated with this GA4 configuration are sent to the specified server container url, so they can be used in a Tag Manager server container, instead of being sent directly to Google Analytics. Find out more about labeling on the server side.
- Optional: Add any parameters you want to configure in "Fields to be filled in". Use the recommended event parameter names for best results.
- Optional: Add any custom user properties you want to configure under "User properties". Note: Analytics automatically logs certain user properties. You can configure up to 25 additional user properties per Google Analytics 4 area.
- Optional: Click Triggers and use the initialization trigger to ensure that the Google Analytics 4 configuration tag is triggered 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.
- Select the configuration tag you created earlier under "Configuration tag".
- Under "Event name", enter the name of the event. Use the recommended event parameter names for best results.
- Optional: Specify event parameters. Use the recommended event parameter names for best possible result.
- Click Add row.
- Enter a parameter name.
- Enter a value.
- Repeat the steps above until you have added all the parameters you want.
- Optional: Add any custom user properties you want to configure under "User properties". Note: Analytics automatically logs certain user properties. You can configure up to 25 additional user properties per Google Analytics 4 area.
- Click Triggers and select the events that will trigger the tag.
- Save the tag configuration and publish the container.
You can find the parameter names inside Google Tag Manager when you are in preview mode.