Sub topic 7
Backward Paths: What Leads to an Ending Point
This chapter assumes you know the GA4 interface and reports, that GA4 records activity as events with parameters, and that you can tell users, sessions and events apart. It also assumes you have seen the Path exploration template and the node types covered in the previous chapter.
A forward path starts at a point and shows what happens next. A backward path reverses the question. You pick an ending point and GA4 shows the steps users took immediately before reaching it. This chapter explains how to set one up, how to read it, and where it misleads.
When to choose a backward path
Use a backward path when you know the outcome you care about but not the route to it. Typical outcomes are a purchase, a sign-up, a lead form submission, or a support-contact page view. Use a forward path when you know where users begin, such as a landing page or a campaign entry, and want to see where they go.
| Question | Direction | Anchor |
|---|---|---|
| What do people do after they land on the pricing page? | Forward | Starting point: `/pricing` |
| What did people do just before they signed up? | Backward | Ending point: `sign_up` |
| Where do users go after the home page? | Forward | Starting point: `page_view` on `/` |
| Which pages precede a visit to the contact page? | Backward | Ending point: contact page path |
A backward path starts from a smaller, more relevant set of users. Everyone in a forward path from a landing page is included, whether or not they convert. Everyone in a backward path from purchase did convert. That is useful for finding common routes to success. It is also the source of its biggest limit, covered below.
Setting up a backward path
- In GA4, open Explore and start a new exploration.
- Choose the Path exploration technique. The default template opens with a starting point.
- In the diagram area, choose Start over to clear the current anchor.
- Choose the Ending point option instead of Starting point. It sits in the Variables column or on the diagram, depending on interface version.
- In the Node type setting in the Variables column, choose Event name, Page title and screen class, Page path and screen class, or another available type.
- Select a value for the ending node, such as
purchasefor Event name or/thank-youfor a page path.
The diagram now shows your chosen node on the right edge. Steps that came before it extend leftward, with the step immediately before the ending point closest to it.
The exact labels in the interface change from time to time. If a control is not where this chapter describes it, look in the Variables column first, then the diagram header.
Match the node type to the ending point
The ending point must be a value of the node type you chose. If the node type is Event name, you can pick purchase but not /thank-you. If you choose Page path and screen class, the reverse holds.
Events you send yourself appear as nodes under Event name. For example, these calls with gtag.js create select_promotion and sign_up nodes:
gtag('event', 'select_promotion', {
promotion_name: 'Summer sale banner'
});
gtag('event', 'sign_up', {
method: 'Google'
});With the node type set to Event name, you can select sign_up as the ending point and see what preceded it. Event parameters such as method do not become nodes. Only the event name does. If you need to separate sign-ups by method, apply a segment or build a custom event name.
Reading a backward diagram
The diagram is a tree, drawn from right to left in a backward path. The ending point is the root. Each column to its left is one step earlier.
Each node shows a user count. In a backward path, that count is the number of users who took that step immediately before the node to its right. Node counts in one column do not necessarily sum to the count of the node they feed. Reasons include:
- Only the largest branches are shown at first. Smaller ones are grouped or hidden.
- A user can appear in more than one branch if they reached the ending point more than once.
- Some users have no earlier step, because the ending point was their first recorded event.
Expanding nodes
Clicking a node expands it into the steps before that node. Repeat this to trace a full route backward. The first column to the left of the ending point is the most reliable. Each further step splits the users into smaller groups, so numbers get small and noisy quickly. Stop expanding when counts are too low to support a conclusion.
You can also click a node to exclude it or to make it the new anchor. Making a node the new anchor is a quick way to ask a follow-up question without rebuilding the exploration.
Reading the left edge
The leftmost nodes in a backward path often show (entrance) or a similar marker. It means no earlier step was recorded in that session. A large (entrance) share next to your ending point tells you many users arrived directly at the destination. This happens when users bookmark a page, follow an email link straight to a checkout, or return from an external payment provider.
Worked example: what leads to a purchase
Suppose a shop wants to know how buyers reach purchase.
- Create a Path exploration with node type Event name and ending point
purchase. - Read the first column. You see
begin_checkoutbefore most purchases, as expected, andadd_payment_infobefore many. - Expand
begin_checkout. Before it, you seeview_cartandadd_to_cart. - Switch the node type to Page path and screen class, keeping the ending point as the confirmation page path.
- Compare. The page view shows which product and category pages were visited just before checkout.
The event view tells you what actions led to purchase. The page view tells you where those actions happened. Neither is complete alone, so switch node types and compare.
A caution on step 2: several events fire for every page, such as page_view, scroll and user_engagement. If they are included, they can occupy most of the first column and hide meaningful steps. Exclude them by clicking a node and choosing to exclude it, or switch to a page-based node type.
Edge cases and data caveats
- Survivorship. A backward path from
purchaseincludes only people who bought. It shows the common route among buyers, not the likelihood that someone on that route buys. A route taken by 80% of buyers might also be taken by 80% of non-buyers. To measure conversion likelihood, compare with a forward path from the same step or use a funnel exploration. - Session boundaries. Paths are built from events in a user's recorded activity, and the first step in a session can be
(entrance). A user who researched across three sessions and bought in a fourth will look like a direct entrance. Do not treat(entrance)as meaning no prior history. - Repeated events. If an event fires multiple times in a row, such as repeated
scrollevents, the path may show it as a single node or as a long chain. Check your instrumentation if one event dominates. - Event name versus page. An event such as
purchaseoften fires on the same page as a page view. Which one comes first depends on timestamps. Events with identical timestamps can appear in an order that does not match what the user saw. - Sampling and thresholds. Explorations can be affected by data thresholds and, for large properties, sampling. A banner near the exploration name indicates when this applies. Small branches may be hidden.
- Unmatched values. If you pick an ending point that does not exist in the date range, the diagram will be empty. Widen the date range or verify the event name in DebugView or the Events report.
Reproducing a backward path in BigQuery
When you need unlimited steps, custom filters, or exact counts, use the BigQuery export. The query below counts how often one event immediately precedes another within a session. To make it backward, filter to_event to your ending point.
WITH ordered AS (
SELECT
user_pseudo_id,
(SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS session_id,
event_name,
event_timestamp
FROM `my_project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20260101' AND '20260131'
),
paired AS (
SELECT
event_name AS from_event,
LEAD(event_name) OVER (
PARTITION BY user_pseudo_id, session_id
ORDER BY event_timestamp
) AS to_event
FROM ordered
)
SELECT from_event, to_event, COUNT(*) AS transitions
FROM paired
WHERE to_event = 'purchase'
GROUP BY from_event, to_event
ORDER BY transitions DESC
LIMIT 20;The only change from a general transition count is WHERE to_event = 'purchase'. The result lists the events that come immediately before purchase, which matches the first column of the backward diagram. Two differences remain. The query counts transitions, while the Path exploration counts users. The query also does not hide small branches or apply data thresholds.
Summary of decisions
| Situation | Approach |
|---|---|
| You know the outcome, not the route | Backward path from the outcome |
| You know the entry point, not the outcome | Forward path from the entry point |
| You need conversion rates per step | Funnel exploration |
| You need more than a few steps or exact counts | BigQuery |
| Noise events fill the first column | Exclude them or change node type |
Exercise
A backward path from the generate_lead event shows that 75% of users had a view_item event in the step just before it. A colleague concludes that viewing an item makes users likely to submit a lead. What is wrong with this conclusion, and what would you do next?
Show answer
A backward path includes only users who reached generate_lead, so it cannot show how many users who viewed an item did not submit a lead. The 75% may be just as common among non-converters. To test the claim, run a forward path from view_item and see how many users reach generate_lead, or build a funnel exploration with view_item and generate_lead as steps to get a conversion rate.
Exercise
You set an ending point of purchase with node type Page path and screen class, but the event cannot be selected. Why, and how do you fix it?
Show answer
purchase is an event name, not a page path. With a page-based node type you can only select page values. Either switch the node type to Event name, or choose the confirmation page path as the ending point.