Sign Into Google Analytics
Sign in to your Analytics account attached to your website. Navigate to the Universal Analytics property of your website by clicking the "Admin" button and, on the property column, selecting the Universal Analytics property of your site from the property dropdown.
Upgrade To GA4
For some properties, an option to upgrade to GA4 is available under the Property column. If you have that option available, click the "Upgrade to GA4" and follow the prompts. If your property does not have the "Upgrade to GA4" option, you can create a new property. In doing this, you'll automatically create a GA4 property for your website.
Enable Event Tracking And Data Collection
After creating a GA4 property, the setup assistance activates enhanced measurement automatically, allowing you to collect the same data that UA collects. GA4 works automatically with gtags.js, and the setup assistant will give you an option to enable data collection using existing tags. You can also enable data collection by creating new tags and adding them to your website in a similar fashion to the old UA.
Add Data Streams
Add "Data Streams" by going to the property column and selecting Data Streams. After that, click "Add Data" to start tracking the type of data you want to track. Then enter the domain and name the data stream. Finally, click "Create stream."