To add a new website to Google Analytics 4 (GA4), follow these steps:
Sign in to your Google Analytics account: Go to https://analytics.google.com/ and sign in with your Google account.
Create a new Google Analytics 4 property:
Click on the “Admin” icon (gear icon) in the bottom left corner.
Under the “Property” column, click on the drop-down menu and select “Create Property.”
Choose “GA4” as the property type.
Provide property details:
Enter a name for your new property. Choose a descriptive name that will help you easily identify the website.
Select the appropriate time zone for your property.
Choose your currency if applicable.
Choose data-sharing settings (optional):
On the same page, you will have the option to choose data-sharing settings based on your preferences. Make your selections and proceed.
Set up data stream for the new website:
After creating the property, you’ll be prompted to set up a data stream. A data stream represents a source of data (e.g., a website or an app) that you want to track in GA4.
Choose “Web” as the data stream type for tracking the new website.
Configure data stream settings:
Provide the website URL for the data stream.
Choose an appropriate data stream name. This should be something that helps you identify the specific data stream if you have multiple websites tracked in the same property.
If you have specific user ID tracking requirements, you can enable it at this stage.
Install the GA4 tracking code on your website:
Once you’ve completed the data stream configuration, you’ll be provided with a Measurement ID (a unique identifier for your property).
Copy the Measurement ID provided in the data stream setup.
Add the GA4 tracking code to your website:
Go to your website’s source code and locate the </head> section of the HTML code.
Paste the GA4 tracking code snippet just above the closing </head> tag.
Save the changes and publish the updated code on your website.
Verify the tracking code installation:
After installing the tracking code, return to Google Analytics and navigate to the “Realtime” reports section.
Open your website in a new tab to trigger a visit and check if the tracking data is being received in GA4.
It may take a few minutes for data to appear in the reports.
Congratulations! You’ve successfully added a new website to Google Analytics 4, and it should start tracking visitor data and events on your site. Remember that data may take some time to populate in the reports, especially if you have low traffic initially.