Sub topic 1
Everything is an event: GA4's data model
Prerequisites
Assume you have a GA4 property with a web data stream that collects data. You should know how to open the GA4 interface and understand that a page view is a visit to a page. You do not need to know JavaScript. The code example is optional.
The event as the basic unit
GA4 represents user activity as events. An event is a record that says something happened at a particular time. Loading a page, starting a session, scrolling, playing a video, and submitting a form can all be represented as events.
Every event has an event name. The name identifies the action, such as page_view or file_download. An event can also have event parameters. A parameter is a key-value pair that adds context to the action.
For example, a file_download event might include:
| Part | Example | Meaning |
|---|---|---|
| Event name | `file_download` | The action that occurred |
| Parameter | `file_name` | The name of the downloaded file |
| Parameter value | `guide.pdf` | The value recorded for that parameter |
This model is more flexible than a fixed category-action-label structure. You choose an event name for the action and parameters for details that help explain it.
How events describe a visit
GA4 attaches collected events to a user and a data stream. It also records timing and other context. GA4 can then derive higher-level concepts from the event sequence, including sessions, page views, engagement, and users.
Consider a short visit:
flowchart TD
A[User opens the site] --> B[page_view]
B --> C[scroll]
C --> D[file_download]
D --> E[GA4 stores event names and parameters]
E --> F[Reports derive sessions and engagement]The events are the recorded observations. A report may group or calculate those observations in different ways. For example, the Events report groups records by event name, while a page report groups page-related events by page.
A page view is therefore not a special row outside the event model. It is an event named page_view, usually with parameters such as the page location and page title.
Sending event parameters
If a page already loads the Google tag (gtag.js), you can send a custom event with a parameter like this:
gtag('event', 'newsletter_signup', {
placement: 'footer'
});This sends one newsletter_signup event. Its placement parameter describes where the signup occurred. The parameter value can help you compare footer signups with signups from another placement.
Event names and parameter names are case-sensitive. newsletter_signup and Newsletter_Signup are different names. Use a consistent naming convention and avoid changing names after data collection begins. A renamed event creates a separate series in reports rather than updating old records.
Events and reportable fields
GA4 collects event data first. Reports expose selected event names, parameters, dimensions, and metrics. A dimension is a field used to describe or group data. A metric is a numeric measurement, such as event count.
A collected parameter is not automatically available as a reporting dimension in every report. When you need to analyze a custom parameter in standard reports, register it as a custom dimension in the property. Historical data might not be filled in after registration, so plan important custom fields before relying on them.
Practical model
When troubleshooting a report, work from the bottom up:
- Confirm that the event was sent.
- Check the exact event name and parameter names.
- Check the parameter values and timing.
- Confirm that the relevant report or custom dimension uses that field.
- Interpret derived metrics only after the underlying events are correct.
This order matters because a report cannot recover information that was never collected or was sent under an unexpected name.
Exercise
A signup event includes placement: "footer". Is footer a separate event?
Show answer
No. footer is the value of the placement parameter on the newsletter_signup event.