How to Create a Google Analytics 4 Account
Open analytics.google.com and click Start Measuring
Add your account name and click "Next".
Add the Property name, select the country and click "Next".
Select the Business details and click "Next".
Choose the Business Objectives and click "Create".
Confirm the Google Analytics Terms of Service Agreement.
On the next page, select "Web" app:
Add your website URL and Stream name and click "Create Stream"
The next window means that the Google Analytics account was created successfully. Click on "Install Manually" button:
Copy the code that was generated:
How to Create a Google Analytics code to Divi
Add the copied code to Divi > Theme Options > Integrations > Head section and save the changes:
The Data Collection can take up to 48 hours.
To see the data and verify that Google Analytics is working, open this page https://analytics.google.com/analytics/web. If the website was visited, the visits will be shown on the right side: