Sub topic 5
Choosing a node type
This chapter assumes you can open Explore in GA4 and create a blank exploration. It also assumes you know that GA4 records activity as events with parameters, and that you can tell users, sessions and events apart. Here you will learn what a node is, what the four node types show, and how to pick the one that matches your question.
What a node is
A Path exploration draws a tree. Each box in the tree is a node. A node is one value of the dimension you chose, such as an event name or a page title. Each column in the tree is one step. Lines between nodes show how many users moved from one value to the next.
The node type is the dimension that supplies those values. You pick it in the Variables column of the exploration, in the Node type setting. GA4 offers four options:
- Event name
- Page title and screen class
- Page path and screen class
- Page title and screen name
The exact labels can vary with the interface version. The idea stays the same. Two options are page-based and web-oriented, one is event-based, and one is built for app screens.
How GA4 fills each node type
Every node type reads a field that GA4 collects with its events. Whether a node type works for you depends on whether that field is populated.
| Node type | Field it reads | Typical values | Best for |
|---|---|---|---|
| Event name | `event_name` | `page_view`, `scroll`, `sign_up`, `purchase` | Behavior, not location. Works on web and app. |
| Page title and screen class | `page_title` on web, `screen_class` in apps | "Pricing - Acme", `MainActivity` | Readable page names for stakeholders. |
| Page path and screen class | `page_location` path on web, `screen_class` in apps | `/pricing`, `/blog/post-1` | Precise URLs and grouping by path. |
| Page title and screen name | `page_title` on web, `screen_name` in apps | "Pricing - Acme", `ProductDetail` | App analysis with meaningful screen names. |
In a web stream, the page-based types come from the page_view events. In an app stream, they come from screen_view events. A property with both streams mixes the two in one tree.
Event name nodes
With Event name, each node is an event such as page_view, click, scroll or add_to_cart. The tree shows the order in which users triggered events.
This is the right choice when your question is about actions. Examples are "What do users do right after add_to_cart?" or "What happens before sign_up?".
The catch is noise. Automatically collected and enhanced measurement events appear alongside your own. A typical early step looks like page_view followed by scroll, then user_engagement, then page_view again. These nodes can crowd out the steps you care about.
Custom and recommended events appear here as soon as they are sent. For example, these two calls create select_promotion and sign_up nodes:
gtag('event', 'select_promotion', {
promotion_name: 'Summer sale banner'
});
gtag('event', 'sign_up', {
method: 'Google'
});Event name nodes show only the event name. The parameters, promotion_name and method in this example, are not shown on the node. If two behaviors need to look different in the tree, give them different event names or use a different node type.
Page-based nodes
Page title and Page path nodes show where users were, not what they did. Each page_view moves the user to a new node.
Page title versus page path
Page title is easier to read. "Pricing - Acme" means more to a stakeholder than /pricing. The weakness is that titles are often duplicated or generic. If many pages share the title "Home" or the site name, GA4 merges them into one node.
Page path is more precise. Two pages with the same title but different paths stay separate. The weaknesses are length and query strings. A path with a session or tracking parameter can split what you think of as one page into many nodes. Check whether your property strips unwanted query parameters before you rely on this type.
A rule of thumb: use titles for presentations, and use paths when you need to find a specific URL or group pages by folder.
Screen nodes for apps
In an app, the equivalent of a page is a screen. screen_class is usually the name of the activity or view controller, such as MainActivity. In many apps one class hosts many screens, so a single node hides several different views. screen_name is set by the developer and tends to be more meaningful, for example ProductDetail. If your developers do not set screen_name, that node type will show (not set) or fall back to the class.
Choosing by question
Start from the question, then choose the node type that answers it.
| Question | Node type |
|---|---|
| Which pages do users visit after the landing page? | Page path and screen class |
| Which content do I show to executives in a screenshot? | Page title and screen class |
| What do users do before they purchase? | Event name |
| Which screens do app users open after login? | Page title and screen name |
| Where do users go after clicking a promotion? | Event name, then page-based |
The last row shows a common pattern. You can run the same starting point twice with different node types and compare. Event name tells you what happened, and a page-based type tells you where.
You can also change the node type on an existing exploration. The tree redraws, and your starting or ending point is cleared, because a point such as /pricing has no meaning in an event-name tree. Pick the node type before the starting point.
Common problems
- Too many nodes and a tangled tree. You probably used Event name on a busy property. Start from a specific event and read only a few steps. Filtering by segment can also help.
- A node that looks too big. Several pages may share one title. Switch to Page path to see if the node splits.
- Many
(not set)nodes. The field behind the node type is empty. For web, check thatpage_viewevents carrypage_title. For apps, check that developers setscreen_name. - Same page appearing in several nodes. Query strings or trailing slashes are the usual cause. Fix this in the site's URLs or in your data collection setup, not in the exploration.
- Page-based tree shows no events. That is by design. Page nodes track page and screen views only. Use Event name to see clicks, scrolls and conversions.
Interaction with other settings
The node type controls what every step means, so it affects the settings you pick next.
- Starting point or ending point. The list of values you can choose depends on the node type. With Event name you choose an event. With Page path you choose a path.
- Segments. Segments filter users or sessions, and the tree is built from the matching data, using whatever node type you chose.
- Repeated nodes. A user who reloads a page produces two consecutive
page_viewevents. In a page-based tree this can look like a loop. In an Event name tree it appears as repeatedpage_viewnodes.
The following chapters cover starting points and ending points in detail. For now, remember that you set the node type first.
Exercise
A stakeholder asks, "What do people do right after they click our Summer sale banner?" The banner sends a select_promotion event. Which node type do you use first, and why? Then name a second node type you would use to see where those users land.
Show answer
Use Event name first. The question is about an action, and select_promotion exists as an event node, so you can set it as the starting point and see which events follow. Then use Page path and screen class (or Page title and screen class) with a page-based starting point to see where users land. Switching the node type clears the starting point, so you must choose it again.
Exercise
Your Page title tree shows one very large node called "Home" that receives traffic from many different places. You suspect it combines several pages. What do you change, and what do you look for?
Show answer
Switch the node type to Page path and screen class. If the "Home" node splits into several distinct paths, such as /, /home and /en/, then several pages shared the same title. If it does not split, the node really is one page.