Sub topic 5
Choosing a Node Type
Assume you know the GA4 interface, that GA4 records activity as events with parameters, and that users, sessions, and events are different measures. This chapter focuses on choosing the value that each node in a Path exploration represents.
A node is one item in the path diagram. Depending on your choice, a node can represent an event name, a page title, a page path, or a screen. The same user journey can look very different under each choice.
The available node types
GA4 commonly offers these node types:
| Node type | What one node represents | Useful question |
|---|---|---|
| Event name | An event such as `view_item` or `purchase` | What actions happen next? |
| Page title and screen name | The visible title of a web page or the name of an app screen | Which content or screens do users visit? |
| Page path and screen class | A URL path on a website or a technical screen class in an app | Which routes or app classes do users follow? |
Event name is usually the best choice when you are analyzing behavior. It shows actions such as searches, video starts, form submissions, and purchases. It does not show the page where an action happened unless your event data includes that information elsewhere.
Page title and screen name is easier for stakeholders to recognize. A node might read “Pricing” or “Checkout”. This option works well when people think about content or screens rather than URLs.
Page path and screen class is more technical. A web node might be /pricing or /checkout. This choice avoids problems caused by duplicate or changing page titles, but it can be harder to explain to nontechnical readers.
Match the node type to the question
Choose the node type before selecting a starting or ending point. Use the following rule:
- Choose Event name to study actions and conversions.
- Choose Page title and screen name to study the content or screens people see.
- Choose Page path and screen class to study URL routes, templates, or app implementation paths.
For example, “What do users do after viewing a product?” requires Event name if the next step might be add_to_cart. “Which pages do users visit before checkout?” requires a page-based node type.
The choice affects both the labels and the counts in the diagram. A single page view can contain many events. An event-based path may therefore have more steps than a page-based path.
Make event names useful
Event nodes are only as useful as your event instrumentation. Instrumentation is the tracking code or configuration that records activity. Use consistent, meaningful event names and parameters.
gtag('event', 'select_promotion', {
promotion_name: 'Summer sale banner'
});
gtag('event', 'sign_up', {
method: 'Google'
});The event names select_promotion and sign_up can appear as nodes. The parameter values, such as promotion_name, are not automatically separate nodes. You may need an event-scoped dimension or a filter to analyze them.
Avoid using many nearly identical custom event names, such as button1, button2, and button3. They make the path difficult to interpret. Prefer a stable event name with parameters that describe the variation.
Understand page and screen data
Page-based nodes depend on page-view and screen-view data. On websites, GA4 normally collects page views with values such as page location and page title. In apps, screen views use screen names and screen classes.
Titles can change without changing the URL. For example, several localized pages might share a path but have different titles. Conversely, different URLs might use the same title. Compare the two page-based node types when labels or routes appear inconsistent.
Common selection errors
A frequent error is choosing Page title when the question concerns a conversion action. The resulting path may show content changes but hide the important event sequence.
Another error is mixing website and app data without checking the labels. A screen class and a page path may represent different kinds of activity. Use a consistent node type when comparing groups.
If the diagram contains (not set), investigate the underlying collection. It may indicate missing parameters, late-arriving data, or activity that does not contain the dimension required by the selected node type.
Exercise
You want to know whether users go from a product page to adding an item to their cart. Which node type should you choose, and why?
Show answer
Choose Event name. It can show events such as view_item and add_to_cart, which represent the actions in the question. Use a page-based node type instead if you want to compare the pages users visit between those actions.