Sub topic 1
How GA4 data is structured: events and parameters
This chapter assumes you have Viewer access to a GA4 property, have used the standard reports, and know what a website or app event is. It covers how GA4 stores data, how that data maps to dimensions and metrics, and how to start a Free-form exploration.
Prerequisites
- A GA4 property with at least Viewer permissions
- Familiarity with the standard reports in the Reports section
- A working understanding of website or app events
- Comfort reading pivot tables or spreadsheets
Events and parameters
GA4 records everything as an event. An event is a single user action, such as a page view, a scroll, or a purchase. Each event can carry parameters, which are key-value details about that action.
gtag('event', 'purchase', {
value: 25.00,
currency: 'USD',
payment_type: 'card'
});In this example, purchase is the event name, and value, currency and payment_type are parameters.
Dimensions and metrics: the building blocks
A dimension is a text attribute that describes data, such as deviceCategory or sessionDefaultChannelGroup. A metric is a number you count or sum, such as sessions or totalUsers. Explorations combine dimensions as row labels and metrics as values.
Scopes and why some fields cannot be combined
Each dimension and metric has a scope that sets the level it describes.
| Scope | Describes | Example field |
|---|---|---|
| Event | One action | Event name |
| Session | One visit | Session source |
| User | One person | First user source |
| Item | One product | Item name |
GA4 blocks some combinations because the fields belong to incompatible scopes. When a field is greyed out or shows a warning, remove the conflicting field and try again.
Finding your way around the Explore workspace
- Open Explore from the left navigation.
- Choose a template or start a blank exploration.
- Use the Variables column to find segments, dimensions and metrics.
- Use the Tab Settings column to place fields into rows, columns and values.
Creating a Free-form exploration
- Open Explore and select the Free-form template.
- Click the plus sign in the Variables column and import dimensions and metrics.
- Drag
Session default channel groupinto Rows andSessionsinto Values. - Check that the table fills with data before you add more fields.
Exercise
A dimension named Device category has the value mobile. Which scope does it describe, and why does this matter when you combine fields?
Show answer
It describes each session or user's device type, depending on how it is used. If you combine it with an event-scoped field, GA4 may block the pairing, so check compatibility before building the table.