Sub topic 4
Making sure your events and page data produce useful nodes
This chapter assumes you know the basics of the GA4 interface and reports. It also assumes you know GA4 records activity as events with parameters, and that you can tell users, sessions and events apart. A Path exploration can only show what your data contains, so this chapter covers how to check and fix that data before you build the diagram.
Why instrumentation decides the quality of a path
A Path exploration is a tree of nodes. Each node is a value taken from your data: an event name, a page title, a page path or a screen name. If the values are inconsistent, too numerous or too vague, the tree will be too.
These are the most common symptoms:
- Hundreds of near-duplicate nodes, each with a tiny share of traffic.
- One node, such as "Home", that mixes several different pages.
- Nodes that say nothing about intent, such as
clickrepeated everywhere. - Missing steps, because an interaction was never sent as an event.
All of these come from how the data was collected, not from the exploration settings.
Which field becomes which node
Each node type reads a different field from your events. Knowing which field it reads tells you what to fix.
| Node type | Field it reads | What you control |
|---|---|---|
| Event name | `event_name` | The names you give events in code or in Google Tag Manager |
| Page title and screen name | `page_title` on web, the screen name on apps | The HTML `<title>` and the screen names your app reports |
| Page path and screen class | The path of `page_location` on web, the screen class on apps | Your URL structure and the app's screen class names |
Parameters other than these fields are not node types. If you send button_name: 'pricing_cta' as a parameter of a generic click event, a path with the Event name node type shows only click. The distinction between buttons is hidden from the diagram. When you need it in a path, put it into the event name or the page data.
Step 1: Check the automatic and enhanced measurement events
A web data stream collects some events without any code. With Enhanced measurement turned on, it also collects events such as scroll, click (outbound links), file_download, form_start, form_submit, video_start and view_search_results. Check these in the stream settings:
- Open Admin, then Data streams, then select your web stream.
- Open Enhanced measurement and review which toggles are on.
- Turn off events that add noise but no analysis value, such as
scrollif you never use it.
A noisy event is a problem in Event name paths. If scroll fires on most pages, it can sit between nearly every pair of meaningful steps and push the interesting steps further down the tree.
Step 2: Make sure page views are recorded correctly
Page-based nodes depend on the page_view event and its page_title and page_location parameters.
Check these points:
- Single-page applications. The browser does not reload the page when the route changes, so the standard snippet records only the first
page_view. Enhanced measurement can record page changes from browser history events. If your framework does not use history events in the usual way, sendpage_viewyourself from the router or through Google Tag Manager. - Titles that are unique enough. If every page has the title "My Store", a Page title path shows one huge node. Give each page type a descriptive title, such as "Pricing" or "Checkout: Payment".
- Titles that are not too unique. If the title includes an order number or a username, you get a different node for every user. Remove variable data from titles.
- URLs with identifiers. Paths such as
/orders/84721create one node per order. Use a consistent structure such as/orders/plus a parameter held elsewhere, or choose the Page title node type instead. - Query strings. Parameters such as
?utm_source=...are part ofpage_location. Page path nodes drop the query string in the standard reports, but check what you see in your own property. Use the data before you rely on it.
For apps, the same rule applies to screen_view. Firebase can send screen names and class names automatically. Class names such as MainActivity hide every screen that shares one activity. In that case, set screen names yourself so that the Screen name node type is readable.
Step 3: Add events for the steps that matter
Path exploration cannot show a step you never recorded. If you want to see whether people click a promotion before signing up, both interactions must be events.
Prefer recommended events when one fits. Google defines their names and parameters, so they are consistent across properties and match the built-in reports. Two examples:
gtag('event', 'select_promotion', {
promotion_name: 'Summer sale banner'
});
gtag('event', 'sign_up', {
method: 'Google'
});In an Event name path, these two calls produce nodes called select_promotion and sign_up. The values Summer sale banner and Google are parameters. They do not become nodes, but you can use them to filter or segment in other reports.
This snippet assumes the Google tag (gtag.js) is already loaded on the page. If you use Google Tag Manager, send the same events from a GA4 Event tag instead.
If no recommended event fits, create a custom event. Follow these naming rules:
- Names are case-sensitive, so
Sign_Upandsign_upare two different nodes. - Use letters, numbers and underscores, and start with a letter.
- Stay within the length limit for event names, which is 40 characters.
- Avoid the reserved prefixes
ga_,google_andfirebase_. - Use one convention everywhere, such as
verb_nounin lowercase:start_trial,view_pricing.
Step 4: Keep event names low in cardinality
Cardinality is the number of distinct values a field has. A path diagram works when each node represents a meaningful, repeated action.
A poor pattern puts data into the name:
// Avoid: every product creates a new event name and a new node.
gtag('event', 'click_product_' + productId);A better pattern uses one name with a parameter:
// Prefer: one event name, and the product goes in a parameter.
gtag('event', 'select_item', {
item_list_name: 'Search results'
});The first version also risks hitting the limit on distinct event names in a property. Standard properties allow a limited number of distinct event names, which is 500 per property. Reaching it stops new names from being collected.
If a path needs the distinction, choose it deliberately. For example, if signup_started and signup_completed are separate stages you want to see, make them separate events. Do not turn every attribute into a name.
Step 5: Verify before you build
Test the data before you spend time on the exploration.
- Turn on DebugView (in Admin, under Data display) and trigger the interaction on your site or app.
- Confirm that the event name, spelling and case match your naming convention.
- Confirm that
page_viewevents carry the expectedpage_titleandpage_location. - Wait for the data to be processed. Explorations can lag behind real time, so do not judge a fresh change from an exploration made minutes later.
- Build a short Path exploration over a few days of data and check that the top nodes look like real, named steps.
A quick diagnostic table
| What you see in the diagram | Likely cause | Fix |
|---|---|---|
| One giant node for most steps | Every page has the same title | Set distinct page titles, or use Page path |
| Thousands of tiny nodes | IDs in titles, paths or event names | Remove identifiers, move them to parameters |
| The same step appears under two names | Inconsistent case or spelling | Standardize event names |
| `scroll` or similar fills every step | Noisy automatic event | Turn it off, or use a different node type |
| Path ends after the first page | Router does not send `page_view` | Send `page_view` on route changes |
| App screens all read "MainActivity" | Screen class used, not screen name | Set screen names explicitly |
Exercise
A retail site sends gtag('event', 'click_banner_' + bannerId) for every promotion banner. A Path exploration using the Event name node type shows dozens of small click_banner_... nodes. What would you change in the instrumentation, and what do you lose by changing it?
Show answer
Send one event name, for example select_promotion, and move the banner identifier into a parameter such as promotion_name. This reduces the node count so the diagram groups all banner clicks into one readable step. You lose the ability to see each banner as its own node in an Event name path. If one banner matters on its own, give it a separate event name on purpose, or look at the parameter in another report or in BigQuery. Old data keeps the old names, so the paths show both versions around the date of the change.
Exercise
Your single-page app's Page title path shows only one node, "Home", followed by the end of the path, even though users clearly visit many views. Name two things to check.
Show answer
First, check whether page_view is sent when the route changes. The standard snippet only records the first load unless history-based page changes are enabled or you send page_view yourself. Second, check whether each view sets a distinct page_title. If the title is not updated when the view changes, every page_view carries "Home". DebugView will show both problems.