Google Analytics 4 is a free service that lets you track how many people visit your site, where they come from, and which pages they view. It also helps you understand how visitors use your site, so you can improve your content and design.
Install Google Tag Manager
If you’re using WordPress as your CMS (content management system), the most reliable way to install GA4 is through Google Tag Manager. Google Tag Manager is a powerful tag management system (TMS) that allows you to quickly and easily add tags (small code fragments) that don’t require you to write your own code. Check out our article that walks you through setting GTM up on your site.
Google Analytics 4 Configuration Tag

In order to use Google Analytics 4, you need to first create a Configuration Tag. In your GTM container click “New” to bring up your new Tag and Trigger window.
Name your new tag “GA4 Configuration”.
Select Google Analytics GA4 Configuration.
Add Your Tag Details

Enter your measurement id from your Google Analytics 4 Data Stream. Ensure that “Send a page view event when this configuration loads.” is checked. This will send a pageview event every time this tag fires. Lastly, Select your trigger. Go ahead and choose the “All Pages” trigger.
Save and Preview Mode
Save your new tag. Now with every Google Tag Manager change you want to enter into Preview mode and check that your changes are doing what you expected them to do.
Enter the site URL that you are testing. Once it loads your Tag Assistant Preview tab will show all the Tags that have fired so far. Under the “Tags Fired” section you should find your new GA4 Configuration tag in that section.
If you don’t see it there, go back through the steps to make sure you completed everything correctly.
Download the free GTM recipe for GA4
"*" indicates required fields