Sub topic 3
What a path exploration shows and what it does not
This chapter assumes you know the GA4 interface and standard reports. It also assumes you know that GA4 records activity as events with parameters, and that you can tell users, sessions and events apart. The chapter builds the working model of a Path exploration and lists the errors people make when they read one.
What a Path exploration is
A Path exploration is one technique in the Explore section of GA4. It draws a tree diagram. You pick one point in the user journey, and the tree shows what users did after it (a forward path) or before it (a backward path).
Each box in the tree is a node. A node stands for one value of the item you are tracking, such as an event name or a page path. Lines between nodes carry user counts. The tree grows to the right as you expand nodes, one step at a time.
The technique answers one kind of question: "From here, where did people go next?" or "Before this, where did people come from?" It does not answer "Why did they go there?" or "How many people finished the journey?"
The working model
Three ideas explain most of what you see.
- The data source is the event stream. GA4 stores each interaction as an event with a name, a timestamp, a user identifier and parameters. A path is built by ordering those events (or the page and screen values attached to them) in time for each user.
- A node is a value, not a page visit. With the node type set to Event name, the node
page_viewcovers everypage_viewevent. With the node type set to Page path, the node/pricingcovers every view of that path. - A step is a position in the sequence. Step 1 is the starting point (or the ending point in a backward path). Step 2 is the next node, and so on. The numbers on a node show how many users reached that node at that step.
The diagram below shows how raw events become a path.
Setting up a first path exploration
In GA4, open Explore, then choose Path exploration from the template gallery. The template opens with two panels. The Variables panel on the left holds the date range, segments and node types. The Tab Settings panel holds the technique settings and the starting or ending point.
The steps are:
- Choose the date range in Variables.
- Choose a node type, such as Event name or Page path and screen class. Chapter "Choosing a node type" covers this choice in detail.
- Select a starting point or an ending point by clicking a node in the diagram. This decides whether the path runs forward or backward.
- Click nodes in the tree to expand the next step.
If you start with no selection, GA4 shows a default tree that begins with the most common starting events. It is a quick way to see what the data contains, but it rarely answers a specific question.
What the diagram shows
A Path exploration shows the following.
- Ordered sequences. You can see that users who reached
view_itemmost often went on toadd_to_cartnext. - Relative volume. Each node carries a user count, and the lines between nodes are scaled to those counts. You can compare branches at the same step.
- Drop-off at a step. A branch that ends without further nodes, or a node with a smaller count than its parent, shows where users stopped or left the set of nodes that GA4 displays.
- Unexpected routes. You may find that many users go from a campaign landing page to a support page, a step your design did not plan for.
Because the tree is built from your own events, it is only as meaningful as your event design. A property that sends only automatic events produces a tree full of page_view, scroll and user_engagement. A property with well-named custom events produces a tree you can read.
What the diagram does not show
This is the part that causes most errors.
| You might assume | What is actually true |
|---|---|
| Each node is a distinct page visit | A node counts users (or events, depending on the metric shown) for one value. A user who returns to a node may appear in more than one place. |
| The tree is a complete funnel | A path exploration has no required steps and no fixed order. A funnel exploration defines the steps. |
| Every user appears at every step | Users appear at a step only if they performed a further event. Users who stop simply do not continue the branch. |
| The path is a single session | Paths can span sessions, because they follow events over the date range. A path is not limited to one visit. |
| Low branches do not exist | GA4 shows only the most common nodes at each step and groups the rest, so rare branches can be hidden. |
| Order shows cause | Seeing that B follows A says nothing about whether A led to B. |
Two items from the table need more explanation.
Sequences can span sessions
A user can view a product on Monday and purchase on Wednesday. Path exploration does not treat these as unrelated, because it orders the events it finds for that user. If you want to know what happens within a single visit, apply a segment or a condition that limits the analysis to sessions. A segment limited to one session is covered in a later chapter. Do not assume the tree is session-bound.
Automatic events fill the tree
Events such as scroll, user_engagement and first_visit occur automatically or through enhanced measurement. When the node type is Event name, they can take up many of the positions in each step. This makes it harder to see meaningful actions. The usual fixes are to use a page-based node type, or to choose a starting point that is a meaningful event and look at what follows.
Reading a small example
Suppose you send these recommended events from your site:
gtag('event', 'select_promotion', {
promotion_name: 'Summer sale banner'
});
gtag('event', 'sign_up', {
method: 'Google'
});You set the node type to Event name and select select_promotion as the starting point. Step 1 shows select_promotion. Step 2 might show these nodes.
| Step 2 node | Users |
|---|---|
| page_view | 820 |
| view_item | 310 |
| sign_up | 45 |
| scroll | 160 |
The correct reading is: of the users who selected the promotion, 45 went on to sign_up as their next recorded event. The incorrect reading is "5% of promotion clicks led to sign-ups". The 45 count is only the next step. Users who viewed an item first and signed up later are counted under view_item at step 2, and they show up as sign_up only if you expand that branch. The tree gives you the immediate next step, not the final outcome.
Common errors
- Reading step 2 as the outcome. Expand further steps before claiming how many users reached a goal.
- Comparing counts across steps as conversion rates. The tree is not a funnel, so a drop between steps is not a conversion rate.
- Ignoring the node type. Event name, page title, page path and screen class give different trees from the same data. State which one you used when you share results.
- Forgetting the date range. A changed range changes which sequences exist. Two analysts with different ranges will disagree.
- Treating hidden branches as zero. A small branch that does not appear is not necessarily absent.
- Using it on poorly instrumented properties. If key actions are not sent as events, they cannot become nodes.
Where it fits among techniques
| Question | Better technique |
|---|---|
| What do users do after reaching X? | Path exploration (forward) |
| What did users do before reaching X? | Path exploration (backward) |
| What share of users complete steps A, B and C in order? | Funnel exploration |
| How do two segments differ on a metric? | Free form exploration |
| How many users come back after their first visit? | Cohort exploration |
Use Path exploration to generate questions and find routes you did not plan. Use a funnel exploration to measure a route you already defined.
Checking your understanding
Exercise
A colleague opens a Path exploration with node type Event name, starts at add_to_cart, and sees purchase at step 2 with 120 users. They report "120 users bought after adding to cart, so the add-to-cart conversion rate is 120 divided by the number of addtocart users." Name two reasons this conclusion may be wrong.
Show answer
First, step 2 shows only users whose very next recorded event was purchase. Users who did other events in between (such as view_cart or begin_checkout) and purchased later appear under those branches, so 120 understates purchasers. Second, the tree is not a funnel and can span sessions and the full date range, and hidden low-volume branches are not shown, so the figure cannot be used as a conversion rate. A Funnel exploration with defined steps is the right tool for the rate.
Exercise
Your tree is dominated by scroll and user_engagement nodes and you cannot see what users do. Give two ways to make the tree more useful.
Show answer
Change the node type to Page path and screen class (or Page title) so the nodes describe where users are rather than automatic events. Alternatively, keep Event name but pick a meaningful starting event, such as select_promotion, and read what follows it. Sending well-named custom events for key actions also helps.