If you're using Universal Analytics with your website and want to upgrade to Google Analytics 4, follow the steps below.
Step 1: Create Your Google Analytics 4 Property
Sign in to your Google Analytics account.
Click the Admin icon at the bottom left of the page.
Select GA4 Setup Assistant under Property.
Click Get Started under I want to create a new Google Analytics 4 property.
Click Create property.
Click Go to your GA4 property under Explore and set up your GA4 property.
Select Data Streams.
Select your stream under Data Streams.
Click the Settings icon under Enhanced measurement.
Click Show advanced settings under Page views.
Deselect the Page changes based on browser history events checkbox.
Disable the Site search toggle.
Step 2: Add Your Google Analytics 4 Property to Your FMG Website
Add your new Google Analytics 4 (GA4) property to Google Analytics in your FMG Dashboard to complete the upgrade.
Add Your GA4 Property to Your FMG Dashboard:
Copy your Measurement ID under Web stream details in your Google Analytics account.
In your FMG admin, go to Website >> SEO.
At the top of the page, you will see a Google Analytics section. Paste your Measurement ID here, and click Publish.
Once your changes have been published, Google will begin tracking your website traffic. Please allow 24 to 48 hours for data to be compiled and displayed in your Google Analytics account. You may use the Realtime report to confirm that you're successfully collecting data.