Sub topic 4
Making Sure Your Events and Page Data Produce Useful Nodes
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 preparing that data so Path exploration displays meaningful nodes.
What becomes a node
A node is one step in a path diagram. Its value comes from the node type you choose:
| Node type | Typical source | Example node |
|---|---|---|
| Event name | `event_name` | `sign_up` |
| Page title | Page-view data | `Pricing` |
| Page path | `page_location` or page path data | `/pricing` |
| Screen name | Screen-view data | `CheckoutScreen` |
GA4 stores each interaction as an event. A page view is usually a page_view event, and an app screen view is usually a screen_view event. Custom events, such as select_promotion or generate_lead, can also become nodes when you analyze event names.
A useful node is stable, descriptive, and specific enough to answer a question. A poor node contains changing details, inconsistent spelling, or too little context.
Create consistent event names
Use a controlled naming scheme. For example, use select_promotion for selecting a promotion every time. Do not send promotionSelected, promotion-selected, and select_promotion for the same action. GA4 treats those as different event names, which splits the path volume.
Recommended events use names defined by Google Analytics, such as sign_up, login, and purchase. Use them when their meaning matches the action. Add parameters for details that vary between occurrences.
gtag('event', 'select_promotion', {
promotion_name: 'Summer sale banner'
});
gtag('event', 'sign_up', {
method: 'Google'
});The event name identifies the action. Parameters describe the action. This separation keeps the event-name path readable while preserving useful detail for other analyses.
Avoid noisy event names
Do not put a product ID, user ID, timestamp, or page-specific value into the event name. For example, prefer view_item with an item_id parameter over event names such as view_item_48392. Dynamic names create thousands of separate nodes and make common paths difficult to see.
Use lowercase names with underscores, and document what each event means. Decide whether an event represents an attempt, a success, or both. For example, form_start and form_submit answer different questions.
Check page and screen data
For websites, confirm that page views are sent when the visible page changes. A single-page application must send a page view when client-side navigation changes the content, even though the browser does not perform a full reload. Otherwise, several screens may appear as one page in a path.
Use stable page titles and paths. Remove unnecessary query parameters from the values used for analysis when they contain campaign tokens or session-specific data. Keep meaningful content differences, such as /products and /checkout.
For apps, send a screen_view when the user enters a screen. Use a stable screen name such as Cart or ShippingAddress, rather than a generated view ID.
Validate before interpreting paths
Use DebugView or another test environment to confirm that events arrive with the expected names and parameters. Then inspect the data after processing. Check for duplicate page views, missing screen views, unexpected event names, and internal or test traffic.
A path can only be as reliable as its instrumentation. If a single-page application omits navigation events, the diagram may suggest that users remain on one page. If a purchase event fires twice, later nodes may receive twice the expected volume.
Exercise
Your data contains checkoutStarted, checkout_start, and checkout-start for the same action. What change makes the event-name nodes more useful?
Show answer
Choose one documented name, such as begin_checkout, update the instrumentation to use it consistently, and keep changing details in parameters instead of event names.