Sub topic 1
Start with a GA4 Property and a Web Data Stream
Before you install the Google tag, you need a destination for the data. In Google Analytics 4 (GA4), that destination is a property. A property is the container that stores reports, settings, users, and collected data for an organization, app, or website.
A web data stream is the connection between a website and a GA4 property. It identifies the website that will send events, such as page_view, scroll, and click. Each web stream has a Measurement ID, which tells the Google tag where to send the events.
This chapter assumes that you understand the basic purpose of users, sessions, and events. You also need a Google account and permission to create or manage a GA4 property.
Prerequisites
You need:
- A Google account that can access Google Analytics.
- The public URL of the website, including
https://when available. - The website's display name.
- An approximate time zone for reporting.
- The currency used for business reporting.
- Access to the website's HTML, a website platform integration, or Google Tag Manager for a later chapter.
Understand the account, property, and stream
GA4 organizes data in levels:
- An Analytics account is the top-level container. An agency might use one account for several clients.
- A property contains the data and configuration for one business, product, or measurement setup.
- A data stream is a source of data inside the property. A property can contain web, iOS app, and Android app streams.
For a simple website, one GA4 property and one web stream are usually enough. If the same business has a website and mobile apps, those sources can share a property while using separate streams.
The property and stream have different jobs. The property is the reporting destination. The stream describes the source and supplies the identifier used by the tag.
Create the GA4 property
In Google Analytics, open the Admin area and choose the account where the property should live. Select Create property, then provide a property name.
Choose the reporting time zone and currency carefully. The time zone controls when each reporting day starts and ends. The currency affects monetary reports and conversions. Changing these settings later may affect how historical data is interpreted, so use the values that match the business's reporting process.
During setup, GA4 may ask about business details and reporting objectives. These choices can affect suggested reports and setup guidance, but they do not replace the data collection configuration.
After the property is created, open its data collection or data stream setup and choose Web.
Create the web data stream
Enter the website URL and a stream name. Use the site's canonical public address. For example, choose https://shop.example.com if that is the address visitors use. Do not add a path such as /checkout unless you intentionally want a stream for a separate site area.
When you create the stream, GA4 displays its Measurement ID. It has the format G-XXXXXXXXXX. The exact value is unique to the stream.
| Setting | What it controls | Example |
|---|---|---|
| Stream name | How you recognize the source in Analytics | Main website |
| Website URL | Which website the stream describes | `https://www.example.com` |
| Measurement ID | Where the Google tag sends web events | `G-ABC1234567` |
| Enhanced measurement | Automatic collection of selected web interactions | Enabled |
Copy the Measurement ID into a secure project note or deployment system. It is not a password, but it must match the intended property and stream. A tag with the wrong ID can collect data successfully while sending it to another property's reports.
Review enhanced measurement
GA4's enhanced measurement can automatically collect selected interactions without separate event code. Depending on the settings, these may include page views, scrolls, outbound clicks, site searches, video engagement, and file downloads.
Review each option before publishing the tag. Automatic events are useful, but they can overlap with custom tracking already implemented by your site or Tag Manager. For example, a custom outbound-click event and an enhanced-measurement outbound-click event could count the same interaction twice.
Exercise
Exercise
A company has one public website and an Android app. Should it create two GA4 properties or one property with two streams?
Show answer
Start with one GA4 property containing one web stream for the website and one Android app stream. Use separate properties only when the business needs independent ownership, reporting, access, or data policies.