Sub topic 1
What GA4 collects: properties, data streams, and events
Every link in this tutorial connects a GA4 property to another Google product. Before you set up a link, you need to know what the property holds, because that decides what the link can send or receive. This chapter covers the data model: the account, the property, the data stream, the event, and the event parameter.
Prerequisites
This chapter assumes you have:
- Basic familiarity with the GA4 interface: you can open a property, find Admin, and read a standard report.
- A rough idea of what a tag or SDK does, meaning the code that sends data from a site or app.
- A general idea of what Google Ads campaigns and Search Console do.
- Basic SQL (SELECT, WHERE, GROUP BY), needed only in later chapters.
You do not need to have created a link before.
The hierarchy: account, property, data stream
GA4 organizes data in three levels.
- An account is the top-level container. It holds one or more properties and is where you manage users and settings shared across them.
- A property is the unit of reporting. All data in a property is processed together, and it has one time zone, one currency, and one set of settings such as data retention and attribution.
- A data stream is a source that sends data into a property. A stream is one of three types: web, iOS app, or Android app.
A property can have several streams. A retailer might have one web stream for the site and two app streams for its iOS and Android apps. Data from all three streams lands in the same property and can be reported together.
Why links attach to properties
Product links are created at the property level. A link between GA4 and Google Ads, Search Console, or BigQuery connects the whole property, not one stream. Two consequences follow.
- If you have separate properties for separate sites, each needs its own link.
- Some links still depend on stream-level details. The Search Console link, for example, associates a Search Console property with a specific web data stream.
Identifiers you will see again
| Identifier | Looks like | Where you use it |
|---|---|---|
| Property ID | `123456789` | Linking, API calls, and the BigQuery dataset name (`analytics_123456789`) |
| Measurement ID | `G-XXXXXXXXXX` | The web tag that sends data |
| Stream ID | a numeric ID | Identifying one stream in Admin |
| Firebase app ID | a long string | App streams, which are backed by Firebase |
Keep the property ID in mind. In the BigQuery chapters, it appears in the dataset name.
Events: the unit of collection
GA4 uses an event-based model. Every interaction is recorded as an event, including a page view, a click, a purchase, and the start of a session. There is no separate "pageview hit" type as there was in Universal Analytics.
Each event has:
- An event name, such as
page_vieworpurchase. - Zero or more event parameters, which are key-value pairs that describe the event, such as
page_locationorvalue. - A timestamp, the stream it came from, and device and geography fields that GA4 adds.
Events fall into four groups.
- Automatically collected events. The tag or SDK sends these without extra setup. Examples are
session_start,first_visit, anduser_engagement. - Enhanced measurement events. For web streams, you can switch these on or off in the stream settings. They include
scroll,click(outbound clicks),file_download,video_start, andview_search_results. - Recommended events. Google defines the names and parameters, but you implement them. Examples are
purchase,login, andgenerate_lead. Using the recommended names unlocks built-in reports and features. - Custom events. You define the name and parameters. Use these only when no recommended event fits.
Sending an event
On a web stream, the global site tag (gtag.js) exposes the gtag() function. This example sends a recommended purchase event with parameters:
gtag('event', 'purchase', {
transaction_id: 'T-10042',
value: 59.90,
currency: 'EUR',
items: [
{ item_id: 'SKU-1', item_name: 'Trail shoes', price: 59.90, quantity: 1 }
]
});Sending currency with value matters. Revenue without a currency is hard to use in reports and in Google Ads imports.
Event parameters and how they become reportable
A parameter sent with an event is collected, but it does not automatically appear as a dimension in reports. To use a custom parameter in standard reports and Explorations, register it as a custom dimension (for text) or custom metric (for numbers) in Admin. Registration is not retroactive. It applies from the time you register it.
This difference matters for later chapters.
- In GA4 reports, an unregistered parameter is invisible.
- In the BigQuery export, every parameter you send is present in the
event_paramsfield, registered or not.
That is a main reason people use BigQuery for analysis that the GA4 interface cannot do.
User properties
A user property describes a user instead of an action, such as plan_tier = 'premium'. Like event parameters, user properties must be registered as custom dimensions before they appear in reports.
Key events
A key event is an event you mark as important to your business. You mark an event as a key event in Admin, and it then appears in key event reports and can be used by linked products. Google Ads import, covered later, relies on this marking.
Marking is also not retroactive. Past occurrences of the event are not counted as key events.
Limits that shape later decisions
Standard GA4 properties have limits that affect what you can link and export. Check the current documentation, since Google changes these.
| Item | Standard property limit |
|---|---|
| Distinct event names | 500 per property (web streams) |
| Parameters per event | 25 |
| Event name length | 40 characters |
| Parameter name length | 40 characters |
| Parameter value length | 100 characters |
| Custom dimensions, event-scoped | 50 |
Events or parameters that exceed these limits are dropped or truncated. A truncated or missing parameter then also looks truncated or missing in every linked product.
Data retention is not the same as export
GA4 stores event-level data for a limited period for Explorations and some other features. The default is two months, and you can raise it to 14 months in Admin. Standard aggregated reports are not affected by this setting.
The BigQuery export is a separate copy that you control. Data already exported stays in your dataset for as long as your table settings allow. It is not removed when the GA4 retention window ends.
How this connects to the links
The model above explains what each link does.
- Google Ads reads key events and audiences from the property, and it writes click identifiers into the data through auto-tagging.
- Search Console adds search query and landing-page data to the property, tied to a web stream.
- BigQuery receives every event with all of its parameters, as raw rows.
If the events are wrong, every link carries wrong data. Fix collection before you link.
Exercise
A team sends a custom parameter named plan_tier with its sign_up event but never registers it as a custom dimension. Will plan_tier appear in GA4 standard reports? Will it appear in the BigQuery export?
Show answer
It will not appear in standard reports or Explorations, because unregistered parameters are not reportable as dimensions. It will appear in the BigQuery export, inside the event_params field of each sign_up row, because the export includes every parameter that was sent.
Exercise
You have one website and one iOS app, and you want both to report into the same GA4 property so that one link to Google Ads covers both. How many properties and how many data streams do you need?
Show answer
One property with two data streams: one web stream and one iOS app stream. Links attach to the property, so a single Google Ads link covers both streams.