Update: Google shut down Universal Analytics (UA) in July 2023, and UA properties no longer collect data. The steps below that involve a UA property describe the old interface. If you are setting up analytics today, start with Set Up a New GA4 Property.
GA4 is a web analytics platform that helps businesses see and adapt to user behavior on their websites and apps. GA4, formerly known as the Google App + Web property, is the updated version of older analytics programs such as Universal Analytics.
As a program, GA4 is a lot different than its predecessors in Google Analytics. Therefore, using the new version in conjunction with earlier versions may be the best strategy for getting used to the newer functions.
In this article, we break down how a business can add a GA4 property to a site or app that already uses analytics, or create a brand-new property for a business with no background in analytics. In both cases, you can use Google Tag Manager to make installing and setting up your new GA4 property easier.
How to Add a Google Analytics 4 Property to a Site or App That Already Uses Analytics
If you are looking to install and use GA4, chances are you may already have a working Google Analytics property. You and your team could be using Universal Analytics, for example. Even if you want to create a new property with GA4, you don’t need to immediately drop your other Analytics property. A common option, especially for those who still need time to get used to the new interface and functions of GA4, is to create a GA4 property that collects the same data as your other UA or Google Analytics property. These properties are linked with your website or app in order to collect data on user behavior.
The GA4 Setup Assistant is a tool within Google Analytics that can help you install and set up GA4 to match the data collection of your existing GA property. If you are using UA, you may have an “Upgrade to GA4” button available to you. If so, click it. If not, here is a step-by-step look at upgrading to GA4:

- Go to the Admin tab of your Google Analytics screen (the Admin tab should be visible in Universal Analytics too).
- Select your existing account from the “Account” column.
- In the “Property” column, select your existing Universal Analytics property.
- This is where the GA4 Setup Assistant comes into play – under the “Property” column, click the “GA4 Setup Assistant” option.
- Click the blue “Get started” button to begin the setup process.

- Select the “Tag Installation” option on the screen.

- Select your web data stream.

- Set up your web stream: enter your website URL and a stream name.

- Right below the “Tagging Instructions” option, select “Use existing on-page tag”.
- Select the “Google Tag Manager” button, which opens a drop-down menu. You should now see a guide to setting up a tag to track website data. This tag will collect data for your new GA4 property via Google Tag Manager.
- You will see your Measurement ID – you may want to write it down in your notes.

- In your Google Tag Manager account, click the “New Tag” link.
- Name your new tag. Because you are linking your GA properties, you might want to name the tag “GA4 Tracking.” You can add “all tags” to the end of the name too.
- Under “Tag Type,” select “Google Tag” (called “Google Analytics: GA4 Configuration” in older versions of Tag Manager).

- Enter the Measurement ID you noted earlier into the “Tag ID” box (labelled “Measurement ID” in older versions).

- Set the tag trigger so that it fires on all pages.
- Click “Save”.
- Click “Preview” in the upper-right area of your screen.
- The Preview Mode window should now open in a new browser tab. If it doesn’t open, your browser or an ad blocker may be blocking it.
- If you see your tag (for example, “GA4 Tracking – all tags”) under the “Tags Fired” section of the screen, your tag is firing properly.
- Go back to your Google Tag Manager account and click “Submit”.
- Name the current version, and when you are ready, click “Publish”.
- To test your account and tags, go to your website. Click a few buttons and navigate through different pages.
- Go back to your GA4 account and press the “+” button beside the “Web Stream details” button.
- Select “Realtime” to view your real-time report. You should see data being gathered in real time.
Note: If you make a new GA4 property from within an existing Google Analytics or Universal Analytics property, the new GA4 property becomes the new default option. If you create a new property this way, you can easily collect data in both GA4 and your previous analytics program, such as UA.
Set Up a New GA4 Property for a Website or App
To start using GA4 from scratch, you first need to create an account and property. Start by visiting the Google Marketing Platform. To create an account, click the “Get started today” option.
- Set up Analytics on your website and/or app.
- Enter the name of your account in the “Account Name” field. For now, you can leave all of the checkboxes checked (unless you need to restrict your account).
- Enter the name of your property under “Property Name”, then choose your time zone and local currency in the fields below.
- On the final setup page, you will be asked to specify the size of your business, as well as what you intend to use GA4 for.

Once you set up your account, you can create tags and data streams for your account in order to monitor the activity of users on your business’s app or website.
Your Data Stream
GA4 properties collect user data from websites and apps through data streams. To make a data stream and link your website to GA, press the “Web” button in your GA4 window. After pressing “Web,” enter your website’s URL and an appropriate name for the data stream.
When you are ready, press the “Create Stream” option.
Once you have created your data stream, you must install it on your website to enable data collection. If you need help installing GA, Google Tag Manager can help you do so!
Installing GA4 with Google Tag Manager – an Option for New and Existing Analytics Users
If you have installed Universal Analytics through gtag.js, some data should automatically be transferred to your GA4 property. However, if you use Google Tag Manager (which I use as well), you still have a few steps to complete before you’re off and running.
- Under “Setup Assistant” in Google Analytics, select the “Tag Installation” option.
- Select the data stream you see – Google Analytics automatically generates this data stream when you upgrade from your UA property. This opens the web stream details window.
- In the upper-right corner of the screen, you should see your new property’s Measurement ID. Record this ID in your notes, then proceed.
- Go to your Google Tag Manager container, select “Tags”, then select “New.” Choose “Google Tag” (formerly “GA4 Configuration”).
- Enter the Measurement ID you recorded earlier into the “Tag ID” box.
- When your configuration loads, you will see a list of “Events.” If you want to monitor page views automatically, keep the “Send a page view” event enabled.
Note: it is usually fine to keep the “Send a page view” event enabled, but in certain cases you may want to disable the page view checkbox and instead make a separate configuration tag. - Under “Triggering,” select the “All Pages” option, then give the tag a unique name.
- To see if your new GA4 property is receiving data, enable Preview Mode and test your changes.
- In the Preview Mode window, you should see your new GA4 tag among the other tags that are firing.
- Return to your GA4 window and select “Realtime” in the sidebar on the left side of your screen.
- If you are clicking around your website, you should be able to see your own actions in the real-time reports.
A quick note: real-time reports may take a little time to start showing data. When I tested GA4 on my website, the GA4 configuration fired and the tag sent a page view. I could see the page view in the real-time report, but the user count still displayed “0.” After a few minutes, the real-time report showed me, and the number of users in the past 30 minutes went up to “1.” In another case, I waited around 15 minutes before GA4 started visibly collecting data. When you create a new property, you may need to give it some time before it starts working properly. Properties that are 1+ days old usually work fine. - Once you’re ready, publish. Having created your GA4 tag and tested it in real-time reports, select the “Submit” button in the upper-right corner of your Google Tag Manager window.
Congratulations, you now have a working GA4 property that is collecting data.
Note: GA4 runs “Enhanced Measurement” by default, meaning it records actions like link clicks, scrolling, site searches, and so forth. You may want to customize some of the features within “Enhanced Measurement,” so be sure to double-check it.
- Once you have your property, you can “Create Data Streams” for the streams you want to implement on your website.
- Once you create the stream, you will have your Measurement ID.
If you are finding the information too technical and complex, you can seek Google Analytics consultation from an experienced digital marketing company.
3 Ways to Add GA4 Tracking Code Without Google Tag Manager
1. Paste the GA4 tracking code into the <head> of your website
You can add GA4 by copying the tracking code script and pasting it into the <head> section of your website. Follow these steps:
- Click the “Admin” button in the bottom-left corner of your GA4 screen.
- Under Property, click “Data Streams”, then select “Web”. Next, click the arrow (>) to open the “Web Stream Details” page.


- A “Web stream details” panel slides open. Scroll down and click “View tag instructions” under Google Tag. In the next panel, under “Installation instructions”, choose “Install manually”.

- Follow Google’s instruction shown there: “Copy and paste it in the code of every page of your website, immediately after the
<head>element. Don’t add more than one Google tag to each page.”
- Within 1–2 days, you will see your website data flowing into GA4.
2. Connect your existing UA property to GA4 using the Measurement ID
Add the GA4 Measurement ID to the “Connected Site Tags” option under Property in the older version of Analytics (UA). Follow the steps below:
- Click “Admin” in the bottom-left corner.
- Click “Data Streams” and select “Web”.
- Click the arrow (>) under “Data Stream” to open the “Web Stream Details” page.
- Copy the GA4 Measurement ID shown in the top-right corner.

- Go to your existing UA property, then click Admin > Tracking Info (under Property) > Tracking Code.

- Scroll down and select “Connected Site Tags”.

- Paste the Measurement ID into “Enter ID of tag to connect” under Connected Tags.
- Click “Connect” to link your Universal Analytics property and GA4 property.

3. Add a second “config” directive to your existing gtag.js code
This is another popular method if you already have gtag.js analytics code on your website and want to add your GA4 Measurement ID to it. You do this by adding a second “config” directive to the existing analytics code:
- Go to the backend of your website, where you can make changes to the source code.
- Search for the Global Site Tag in the code.
- Add an additional “config” line with your GA4 Measurement ID just after the UA config line (line 12 in the example below) and before the closing
</script>tag.
In Conclusion
Using and navigating Google Analytics programs can be complicated. Ultimately though, they can help you get in-depth insights into the behaviors of your users and the effectiveness of your digital marketing. You may not want to jump right into GA4 without using the more complete, more familiar UA first. Or, if you do want to start using GA4, you might find some value in using both programs alongside each other first. If you need technical help navigating the new GA4 account or migrating your tags and data from UA to GA4, OpenSource Technologies, a leading digital marketing company with GA4 Certified Experts, is ready to help.


