Skip to content

Conversion paths: the channel sequences that end in a purchase

GA4 conversion paths are the ordered channel sequences people follow before a purchase. The interface report caps paths at 20 touchpoints and hides the paths that never convert. Rebuilt in SQL on Google's public sample, 1,115 purchases of January 2021 follow 181 distinct sequences. The method extends our guide to marketing attribution with GA4.

What does the GA4 conversion paths report show, and where does it stop?

GA4's conversion paths report lists the top channel sequences before a key event, for one chosen period. Google Analytics 4 (GA4) now calls it the key events attribution paths report. Each row is one sequence, with its key events, days to key event, and touchpoints to key event. A chart splits credit into early, mid, and late touchpoints: first 25%, middle 50%, last 25%.

The report answers one question well: which sequences are frequent among people who converted. Four limits stop it there. It displays paths up to 20 touchpoints. It excludes paths without a key event, so stalled journeys never appear. Rare rows can fold into an "(other)" line when cardinality limits apply. And its data starts on June 14, 2021, according to Google's documentation.

PointNative reportRaw export in SQL
Paths shownPaths ending in a key eventConverting and stalled paths
Path lengthUp to 20 touchpointsNo cap
PositionsEarly, mid, and late groupsEvery position, in order
Rare sequencesCan fold into "(other)"Every distinct sequence kept
HistoryFrom June 14, 2021From the export's first day
GroupingChannel group, source, medium, or campaignAny CASE you write and version

The period is the other constraint: a sequence table read in March describes March. Rebuilt in SQL, the same table becomes a query you rerun on any date range, with any filter.

How do you rebuild conversion paths from sessions with STRING_AGG?

Conversion paths are rebuilt in three steps: sessions with a channel, a join on the person, then STRING_AGG.

A touchpoint is a session attributed to one channel and placed on a person's timeline by its first event. It is eligible for credit if it falls inside the lookback window of a later conversion. A conversion path is the ordered list of a person's touchpoints that precede one conversion within the window, the converting session included.

First, each session gets one channel: the first medium seen in its events. Sessions with no medium count as Direct, and Direct stays in the path as a touchpoint. Last non-direct click, the rule GA4 applies, drops direct from the credit; the path keeps it. Last click attribution limits: incomplete, not wrong shows what that rule leaves unpaid. Second, each January 2021 purchase session joins the same user_pseudo_id's sessions of the previous 14 days. The data window therefore starts on December 18, 2020. Third, STRING_AGG with an ORDER BY inside the call writes the sequence as one string.

WITH e AS (
  SELECT user_pseudo_id, event_timestamp, event_name,
    (SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS sid,
    (SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'medium') AS medium
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20201218' AND '20210131'
),
s AS (
  SELECT user_pseudo_id, sid, MIN(event_timestamp) AS started,
    LOGICAL_OR(event_name = 'purchase') AS converted,
    CASE COALESCE(ARRAY_AGG(medium IGNORE NULLS ORDER BY event_timestamp LIMIT 1)[SAFE_OFFSET(0)], '(none)')
      WHEN '(none)' THEN 'Direct' WHEN 'organic' THEN 'Organic Search'
      WHEN 'cpc' THEN 'Paid Search' WHEN 'referral' THEN 'Referral'
      WHEN 'email' THEN 'Email' WHEN 'affiliate' THEN 'Affiliate' ELSE 'Other' END AS channel
  FROM e WHERE sid IS NOT NULL GROUP BY 1, 2
),
paths AS (
  SELECT c.user_pseudo_id, c.sid,
    STRING_AGG(t.channel, ' > ' ORDER BY t.started) AS path,
    COUNT(*) AS touchpoints
  FROM s AS c JOIN s AS t
    ON t.user_pseudo_id = c.user_pseudo_id
   AND t.started BETWEEN c.started - 14 * 86400000000 AND c.started
  WHERE c.converted AND c.started >= UNIX_MICROS(TIMESTAMP '2021-01-01')
  GROUP BY 1, 2
)
SELECT path, ANY_VALUE(touchpoints) AS touchpoints, COUNT(*) AS conversions,
  ROUND(100 * COUNT(*) / SUM(COUNT(*)) OVER (), 1) AS share_pct,
  COUNT(DISTINCT path) OVER () AS distinct_paths
FROM paths GROUP BY path ORDER BY conversions DESC, path LIMIT 10
PathTouchpointsConversionsShare
Referral126824.0%
Organic Search125222.6%
Referral > Referral2837.4%
Organic Search > Referral2504.5%
Referral > Referral > Referral3433.9%
Direct1262.3%
Organic Search > Organic Search2262.3%
Other1252.2%
Direct > Referral2201.8%
Organic Search > Referral > Referral3191.7%

Computed on 2026-10-15 on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data). The distinct_paths column returns 181 on every row.

The ten most frequent sequences cover 812 of 1,115 purchases, or 72.8%. The same join feeds every attribution model: Building multi-touch attribution on the GA4 export in SQL applies the model rules to these paths.

Path length: why read the distribution, not the average?

Path length needs a distribution because its average blends single-session buyers with multi-session ones. On the public sample, the average path has 2.05 touchpoints. Yet 579 of 1,115 purchases, 51.9%, have exactly one. No real path has 2.05 touchpoints: the average describes nobody. The useful cut is the entry channel, the first touchpoint of the path.

WITH e AS (
  SELECT user_pseudo_id, event_timestamp, event_name,
    (SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS sid,
    (SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'medium') AS medium
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20201218' AND '20210131'
),
s AS (
  SELECT user_pseudo_id, sid, MIN(event_timestamp) AS started,
    LOGICAL_OR(event_name = 'purchase') AS converted,
    CASE COALESCE(ARRAY_AGG(medium IGNORE NULLS ORDER BY event_timestamp LIMIT 1)[SAFE_OFFSET(0)], '(none)')
      WHEN '(none)' THEN 'Direct' WHEN 'organic' THEN 'Organic Search'
      WHEN 'cpc' THEN 'Paid Search' WHEN 'referral' THEN 'Referral'
      WHEN 'email' THEN 'Email' WHEN 'affiliate' THEN 'Affiliate' ELSE 'Other' END AS channel
  FROM e WHERE sid IS NOT NULL GROUP BY 1, 2
),
paths AS (
  SELECT ARRAY_AGG(t.channel ORDER BY t.started) AS ch
  FROM s AS c JOIN s AS t
    ON t.user_pseudo_id = c.user_pseudo_id
   AND t.started BETWEEN c.started - 14 * 86400000000 AND c.started
  WHERE c.converted AND c.started >= UNIX_MICROS(TIMESTAMP '2021-01-01')
  GROUP BY c.user_pseudo_id, c.sid
),
shaped AS (
  SELECT ch[OFFSET(0)] AS entry_channel, ARRAY_LENGTH(ch) AS n,
    (SELECT COUNT(DISTINCT x) FROM UNNEST(ch) AS x) AS channels,
    (SELECT COUNTIF(ch[OFFSET(i)] IS DISTINCT FROM ch[SAFE_OFFSET(i - 1)]) FROM UNNEST(GENERATE_ARRAY(0, ARRAY_LENGTH(ch) - 1)) AS i) AS runs
  FROM paths
)
SELECT entry_channel, COUNT(*) AS conversions,
  COUNTIF(n = 1) AS one_touch, COUNTIF(n = 2) AS two, COUNTIF(n BETWEEN 3 AND 5) AS three_to_five, COUNTIF(n >= 6) AS six_plus,
  ROUND(AVG(n), 2) AS avg_touchpoints,
  COUNTIF(n >= 2 AND channels = 1) AS same_channel_repeats,
  COUNTIF(runs > channels) AS loops
FROM shaped GROUP BY ROLLUP(entry_channel) ORDER BY conversions DESC
Entry channelConversions1 touchpoint23 to 56 or moreAverage touchpointsSame-channel repeatsLoops
All channels1,115579238256422.0518897
Referral488268105105101.8715231
Organic Search4472528791171.992841
Direct10526323892.85614
Other6125121952.4329
Paid Search1152312.5502
Email220001.0000
Affiliate110001.0000

Computed on 2026-10-15 on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data).

The entry channel predicts the shape of the path. Paths opened by direct average 2.85 touchpoints, and only 26 of 105 end at once. Paths opened by referral average 1.87, and 152 of their 220 multi-touch paths repeat referral only. That is the sample's self-referral, not a marketing sequence.

A looping path is a conversion path in which a channel returns after a different channel has appeared, such as organic search, referral, then organic search again. It signals comparison shopping, or a tracking defect that splits one visit. The SQL test compares the number of channel runs with the number of distinct channels.

On the sample, 97 of 536 multi-touch paths loop, or 18.1%, and 188 repeat a single channel. Two-session paths take 2.3 days on average, and paths of six sessions or more take 6.0. Time to conversion: how many days and sessions before a purchase splits those delays by channel and device.

Which conversion paths never end in a purchase?

Stalled paths are the sequences of January 2021 visitors who never bought, and the native report omits them.

A stalled path is the ordered list of a person's touchpoints within the lookback window before their last session of the period, when none of their sessions in that period contains a purchase. It is the non-converting twin of a conversion path, built with the same channel and window rules.

Each person without a January purchase contributes one stalled path, ending at their last January session.

WITH e AS (
  SELECT user_pseudo_id, event_timestamp, event_name,
    (SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS sid
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20201218' AND '20210131'
),
s AS (
  SELECT user_pseudo_id, sid, MIN(event_timestamp) AS started,
    LOGICAL_OR(event_name = 'purchase') AS converted
  FROM e WHERE sid IS NOT NULL GROUP BY 1, 2
),
ends AS (
  -- converting paths end at a January purchase session; stalled paths end at the last January session of a person who never bought
  SELECT user_pseudo_id, sid, started, converted FROM s
  WHERE started >= UNIX_MICROS(TIMESTAMP '2021-01-01')
  QUALIFY converted OR (
    NOT LOGICAL_OR(converted) OVER (PARTITION BY user_pseudo_id)
    AND started = MAX(started) OVER (PARTITION BY user_pseudo_id))
),
paths AS (
  SELECT c.user_pseudo_id, c.sid, c.converted, COUNT(*) AS n
  FROM ends AS c JOIN s AS t
    ON t.user_pseudo_id = c.user_pseudo_id
   AND t.started BETWEEN c.started - 14 * 86400000000 AND c.started
  GROUP BY 1, 2, 3
)
SELECT
  CASE WHEN n = 1 THEN '1 session' WHEN n = 2 THEN '2 sessions'
       WHEN n BETWEEN 3 AND 5 THEN '3 to 5 sessions' ELSE '6 sessions or more' END AS path_length,
  COUNTIF(converted) AS converting_paths,
  COUNTIF(NOT converted) AS stalled_paths,
  ROUND(100 * COUNTIF(converted) / COUNT(*), 2) AS converting_share_pct
FROM paths GROUP BY 1 ORDER BY MIN(n)
Sessions in the pathConverting pathsStalled pathsConverting share
1 session57980,5680.71%
2 sessions2388,9472.59%
3 to 5 sessions2563,6636.53%
6 sessions or more425417.20%

Computed on 2026-10-15 on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data).

Stalled paths outnumber converting paths by far: 93,719 against 1,115, summing the four rows. 86.0% of stalled paths are a single session, against 51.9% of converting paths. The converting share climbs from 0.71% for one session to 7.20% for six or more. Converting paths count purchase sessions and stalled paths count people. The share is therefore a path-level ratio, not a session conversion rate.

The decision lies in the middle rows. 13,151 people returned at least once within 14 days and still did not buy. They are the audience a retargeting or email sequence is built for.

What changes when you filter conversion paths by country?

A country filter mostly confirms the global pattern; the exceptions are what a path table is for. The country here is read from the purchase session, one value per path.

WITH e AS (
  SELECT user_pseudo_id, event_timestamp, event_name, geo.country AS country,
    (SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS sid,
    (SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'medium') AS medium
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20201218' AND '20210131'
),
s AS (
  SELECT user_pseudo_id, sid, MIN(event_timestamp) AS started,
    LOGICAL_OR(event_name = 'purchase') AS converted, ANY_VALUE(country) AS country,
    CASE COALESCE(ARRAY_AGG(medium IGNORE NULLS ORDER BY event_timestamp LIMIT 1)[SAFE_OFFSET(0)], '(none)')
      WHEN '(none)' THEN 'Direct' WHEN 'organic' THEN 'Organic Search'
      WHEN 'cpc' THEN 'Paid Search' WHEN 'referral' THEN 'Referral'
      WHEN 'email' THEN 'Email' WHEN 'affiliate' THEN 'Affiliate' ELSE 'Other' END AS channel
  FROM e WHERE sid IS NOT NULL GROUP BY 1, 2
),
paths AS (
  SELECT c.country, STRING_AGG(t.channel, ' > ' ORDER BY t.started) AS path, COUNT(*) AS n
  FROM s AS c JOIN s AS t
    ON t.user_pseudo_id = c.user_pseudo_id
   AND t.started BETWEEN c.started - 14 * 86400000000 AND c.started
  WHERE c.converted AND c.started >= UNIX_MICROS(TIMESTAMP '2021-01-01')
  GROUP BY c.user_pseudo_id, c.sid, c.country
)
SELECT country, COUNT(*) AS conversions,
  ROUND(100 * COUNTIF(n = 1) / COUNT(*), 1) AS single_touch_pct,
  ROUND(AVG(n), 2) AS avg_touchpoints,
  COUNTIF(path = 'Organic Search > Referral') AS organic_then_referral
FROM paths GROUP BY country ORDER BY conversions DESC LIMIT 6
CountryConversionsSingle-touch shareAverage touchpointsOrganic Search > Referral
United States48053.5%1.9824
Canada9754.6%1.943
India7554.7%2.040
United Kingdom3455.9%1.714
Spain2737.0%3.301
Taiwan2653.8%2.080

Computed on 2026-10-15 on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data).

Five of the six countries stay between 53.5% and 55.9% single-touch. Spain breaks the pattern: 37.0% single-touch and 3.30 touchpoints on average. Those figures rest on 27 purchases, too few to conclude. They are enough to send one precise question to the team running Spain. The organic search to referral handoff is mostly American: 24 of its 50 purchases. Filtering on the first session's country gives a different table. State the rule next to the result.

The ten sequences of the public sample, commented

The ten most frequent sequences on the sample fall into three shapes: single touch, repeat, and handoff.

ShapeSequences in the top tenPurchasesReading
Single touchReferral; Organic Search; Direct; Other571Every attribution model agrees; the channel grouping matters more than the model
Same-channel repeatReferral > Referral; Referral > Referral > Referral; Organic Search > Organic Search152Mostly referral restarting sessions, a tracking signal before a marketing one
HandoffOrganic Search > Referral; Direct > Referral; Organic Search > Referral > Referral89First click and last click disagree on every purchase

Referral accounts for 126 of the 152 repeat purchases. On this sample, referral includes the store's own checkout domain, a tracking defect common on real properties. Referral also closes all three handoffs. Handoffs are where the budget question sits: one channel opens, another collects the credit. Direct > Referral, 20 purchases, starts with a visitor who already knew the address. Outside the top ten, 171 sequences share the remaining 303 purchases.

Page-level sequences show where referral restarts the session. Journey analysis with the GA4 export: rebuilding page sequences in SQL applies the same STRING_AGG to pages. The sample is old and obfuscated: these shapes illustrate the method, not a benchmark.

FAQ

Why don't my BigQuery conversion paths match the GA4 report?

BigQuery paths and the GA4 report differ because they apply different rules to the same visits. The report uses its own lookback window and displays paths up to 20 touchpoints. Your SQL defines the session channel, the window, and the handling of direct. Align the window first, then compare the share of single-touch paths.

Should direct be removed from conversion paths?

No, direct should stay in conversion paths, because it records a real visit. Last non-direct click removes direct from the credit, not from the path. On the public sample, January 2021, direct opens 105 of 1,115 purchase paths. Those paths average 2.85 touchpoints.

Can conversion paths use campaigns instead of channels?

Yes, replacing the channel CASE with the campaign event parameter gives campaign-level paths, where your tagging sets it. Distinct sequences then multiply, because campaigns far outnumber channels. Group rare campaigns under one label and version that grouping with the query, so months stay comparable.

How many purchases do you need to read a conversion path table?

A path table needs no minimum to be exact, because it counts real sequences. It needs volume to compare segments. In January 2021, Spain has 27 purchases on the sample: enough for a question, not a conclusion. Print the count next to every share.

Conversion paths share their joins and windows with the models in Marketing attribution with GA4: the guide after the retired models. To read these sequences on your own export, by country and device, Book a diagnostic.

Sources