Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Public data

A web funnel by traffic source, rebuilt from a public GA4 export

In Google's obfuscated GA4 sample, 89% of the sessions in referral, the large channel with the highest purchase rate, name the store's own website, a check added after the first results.

The store's own hosts hold 1,428 of referral's 1,511 buying sessions, so referral's rate is mostly theirs. Outside sites hold the other 83, too mixed to rate as one group: four sites hold 70 of them.

Sessions reaching a purchase, as exported, by large channel (at least 1,000 sessions), with the store's own hosts inside referral

Sessions reaching a purchase by channel, with referral split into the store's own hosts and outside sites0%1%2%3%Referral, as reported: 63,378 sessions, 2.38% reach a purchase as exported (95% interval 2.26 to 2.51%). 89% of these sessions name the store's own hosts, and the other 11% name outside sites.Referral, as reported2.38%The store's own hosts: 56,491 of the referral sessions, 1,428 reaching a purchase, 2.53%, which is 94.5% of referral's buying sessions. A store-host session names no outside source.of which the store's own hosts2.53%Organic search: 94,452 sessions, 1.63% reach a purchase as exported (95% interval 1.55 to 1.70%).Organic search1.63%Unknown: 155,315 sessions, 0.92% reach a purchase as exported (95% interval 0.87 to 0.96%).Unknown0.92%Direct: 37,786 sessions, 0.81% reach a purchase as exported (95% interval 0.72 to 0.90%).Direct0.81%Paid search: 7,672 sessions, 0.61% reach a purchase as exported (95% interval 0.43 to 0.79%).Paid search0.61%Other tagged: 1,329 sessions, 0.15% reach a purchase as exported (95% interval 0.00 to 0.38%).Other tagged0.15%

Main limitation The publisher obfuscated this sample and warns its internal consistency may be limited, so each problem found describes the sample, never how the store itself is tagged. A store-host session names no outside source, and 47% of them follow no earlier visit by the same user, so the export cannot say where those buyers came from.

What a team should do List your own domains, payment pages included, as referrals to ignore in the tag settings, add a check for sessions whose source is your own site, split referral into outside sites and your own hosts, and read outside referrers one by one before ranking them.

The same chart, with a table of every referral source, is in the funnel, read twice; every channel with intervals in the funnel chart.

Google publishes an obfuscated sample of the GA4 event export of its merchandise store: 4,295,584 events from 270,154 users over 92 days. This study rebuilds sessions, channels, the funnel and attribution from those raw events, runs schema checks declared before they ran, reads the funnel with and without the events they flag, tries a month-ahead order forecast, and breaks the tagging on purpose to see what shows up.

Referral's buyers on the store's own hosts94.5%of referral's 1,511 buying sessions (1,428), so referral's 2.4% purchase rate is mostly the store's own pages, at 2.5%. Outside sites hold 83 buyers, 70 of them from four sites, too mixed to rate as one group. Added laterNo source or medium at all26%of 360,129 sessions, which GA4 reports usually count as direct, though this sample also marks 10% of sessions as direct outright; another 17% carry a stand-in or a blank in place of the source, the medium or bothCheckouts with no cart, tags settled24%of checkout sessions from 29 November on (17% to 33% by week), against 46% over the whole period, which takes in two weeks when the add to cart event barely fired. Added laterOrder credit moved by a planted fault15 and 20points of order share, moved by a session id lost on phones and by a payment page that becomes a referrer, while orders and revenue stay unchanged; a self-test on faults the study planted, whose rates set the size

Added after the first results, and marked added later where used: the store-host check, referral by source, the weekly split and the split of sessions with no source; each is described in Method.

In plain words

A marketing lead asks where each traffic source loses buyers, and how many orders next month's traffic will bring. The answer usually comes from a report built on event data, and it assumes the tags sent the right events with the right values. So the honest first question is how much of a drop is customers leaving, and how much is tracking.

The answer here: large parts of such a report are set by the export itself. Referral has the highest purchase rate of any large channel, 2.4%, but 89% of its sessions name the store's own website, a check added after the first results, and those sessions hold 1,428 of its 1,511 buying sessions. The outside referral sites are too mixed to rank as one channel: one source, analytics.google.com, sends half their sessions and 1 buyer, and four sites hold 70 of their 83 buyers. Of all sessions, 26% carry no source or medium on any event, which a usual query of this export counts as direct, though this sample also writes (direct) explicitly on 10% of sessions. Another 17% carry only a placeholder or one of the two values on the event the source rule reads, 16% a placeholder, <Other> or (data deleted), and 1% a medium and no source, a split added after the first results; together that is the 43% of sessions the declared rule gives no channel. With the 16% of sessions that credit the store's own website, 59% of sessions cannot be tied to an outside source. The publisher says its obfuscated sample contains placeholder values, NULL among them, so a placeholder and a missing source alike could be tracking or obfuscation, and this sample cannot tell them apart. And 46% of checkout sessions hold no add to cart event over the whole period. Read week by week, a split added after the first results, the add to cart event fires 4 times in the first two weeks, the transaction id column holds placeholders at both ends of the period, and checkout events lose their items until late November. From 29 November on, once the tags settle, 24% of checkout sessions still hold no cart, 17% to 33% by week. A check added after the first results finds that a cart from the same visitor's earlier visit can account for at most 1 in 6 of the checkouts with no cart before them from 29 November to 23 January; whether the rest are carts not recorded, tagging or obfuscation, the export cannot say. The rate I would use by channel is session to purchase, and step rates only inside the stable window, 29 November to 23 January, counted over the same sessions, and only for a step that passes its order check. A month-ahead forecast could not be tested properly on three months of data, and every method missed by 25% or more on at least 4 of the 6 starts.

The data is real in shape but obfuscated by its publisher, which replaces some values with placeholders and warns that internal consistency may be limited. So this is a study of a method on a real schema, and it says nothing about how Google's store is tagged.

Event
One row of the export: a page view, a product view, a purchase, with its parameters.
Parameter
A named value on an event, such as the session id, the source or the transaction id.
Session
One visit, rebuilt here as a user id plus a session id parameter.
Source and medium
Where a visit came from (google) and how (organic, cpc, referral).
Channel
A group of sources and mediums: this study's own simple rule, listed in Method.
Placeholder
A stand-in value such as <Other>, (data deleted) or (not set).
Self-referral
A session whose source is the site itself, which hides where the visitor really came from.
Reads
As exported uses every event. Flagged removed drops the events the schema checks flag; sessions stay.
Session scope
Credit an order to the source of its session.
User first touch
Credit it to the source that first brought the user.
Last non-direct
Credit the session, or if that was direct or unknown, the user's latest known source in the previous 30 days.
Naive forecast
Assume the next period repeats the last one. A forecast has to beat this to earn its keep.

The evidence

What the schema checks found

Each check was written before it ran, and each has a planted fault on a small made-up export that makes it fire. Session ids and page parameters are always present. The damage sits in sources, items and transaction ids.

Two checks flag over 40% of their rows over the 92 days: sessions with no usable source and checkout sessions with no add to cart. The others that flag most are product views and checkouts with empty items, users with no usable first source, and item totals that differ from revenue.

Share of the rows each check reads that it flags (sessions, events, users or purchases): the six highest

The six declared checks that flag the largest share of their rows0%10%20%30%40%50%Checkout session with no add to cart: 5,145 of 11,106, 46.3%, over the 92 days. In the first two weeks, which hold almost no cart events, 1,910 of 1,911; from 29 November on, once the tags settle, 24.0%, a split by week added after the first results.Checkout session with no add to cart46%Session with no usable source or medium: 155,315 of 360,129, 43.1%, over the 92 days. Source and medium are taken from one event, as declared; 42.3% when each is taken from a different event.Session with no usable source or medium43%Product view with empty items: 144,192 of 386,068, 37.3%, over the 92 days.Product view with empty items37%User with no usable first source: 83,959 of 270,154, 31.1%, over the 92 days.User with no usable first source31%Items total differs from revenue by over 1%: 1,036 of 5,242, 19.8%, over the 92 days. Tax, shipping and coupons are not separated, so this marks purchases to look at, not faults.Items total differs from revenue by over 1%20%Begin checkout with empty items: 6,766 of 38,757, 17.5%, over the 92 days.Begin checkout with empty items17%
Every declared check, with its parts

The 13 declared checks, with every part they report: the source check split in two, empty items per event, the purchase fields one by one, the funnel order per step, and outages per event, counted in days.

CheckFlaggedOut ofShare
Event with no session id04,295,5840.0%
Event with no session number04,295,5840.0%
Event with no page location04,295,5840.0%
Session with no session start5,272360,1291.5%
Session with no usable source or medium155,315360,12943.1%
of which no source or medium on any event94,553360,12926.3%
of which a placeholder, or one of the two missing, on the event read60,762360,12916.9%
User with no usable first source83,959270,15431.1%
Product view with empty items144,192386,06837.3%
Add to cart with empty items058,5430.0%
Begin checkout with empty items6,76638,75717.5%
Purchase with empty items25,6920.0%
Purchase with no transaction id9065,69215.9%
Purchase repeating a transaction id3355,6925.9%
Purchase with no value4505,6927.9%
Purchase with no currency05,6920.0%
Purchase with no revenue4505,6927.9%
Items total differs from revenue by over 1%1,0365,24219.8%
Purchase session with no checkout event34,8480.1%
Checkout session with no add to cart5,14511,10646.3%
Add to cart session with no product view1515,1880.1%
Outage day, product views (under 10% of the previous 14 days' median)0780.0%
Outage day, add to cart0780.0%
Outage day, begin checkout0780.0%
Outage day, purchase0780.0%

Rebuilt three ways, sessions agree within 1.4%: 360,129 from user and session id, 354,970 from session start events, 355,601 from a 30-minute inactivity gap that ignores the session id. So session counts are not the problem.

The items-total check compares the sum of item price times quantity with revenue and nothing else. It does not separate tax, shipping or coupons, though purchases carry a tax parameter on 5,242 events, a shipping tier on 4,159 and a coupon on 3,075, so its 20% marks purchases to look at, not faults.

Two of the checks get a closer look, both added after the first results. The 43% of sessions with no usable source is 26% of sessions with no source or medium on any event, the split declared with the check, plus 16% with a placeholder, <Other> or (data deleted), on the event the source rule reads, and 1% with a medium there and no source. Cut instead by what the event still carries, two figures computed later from the stored counts, 8% carry a usable medium under a placeholder or missing source and 9% carry nothing usable in either. The checkout check looks inside one session, so a shopper who added to cart on an earlier visit and checks out on a later one trips it. From 15 November on, 365 of the 3,235 checkout sessions with no cart (11%) follow an add to cart by the same user in another session in the previous 30 days, and 2,870 do not. That period takes in two weeks still settling, when 76% and 63% of checkout sessions hold no cart and the 30-day look back reaches into the weeks with almost no cart events. Inside the stable window, 302 of the 1,879 checkouts its order check flags (16%) follow an earlier cart. So a cart from an earlier visit, as recorded here, can account for at most about 1 in 9 of them, or 1 in 6 inside the window. The check cannot say which of the rest are shoppers whose cart was not recorded, on another device for one, tagging or the publisher's obfuscation, and an earlier cart does not show that it fed the checkout. Checkout sessions that do hold a cart follow an earlier one more often (21%, and 24% in the window), which says nothing about the cause either way. An expectation written down before this check ran, that fewer than half would follow an earlier cart, held, but with a bar that loose it was a safe bet.

How the export stores events and parameters

Added after the first results, as a description: no check or prediction rests on it. Each row is one event. Its columns hold the user, the device, the user's first source and the ecommerce totals; nearly everything else a funnel needs sits in a list of named parameters, each with a string, an integer and a decimal slot. Here that is 4,295,584 events under 17 event names and 34 parameter keys. Session id, session number and page location are on every event; source and medium carry a value on only 33% of events, which is why a session's source has to come from whichever of its events carries one.

The slot can change within one key, and that is where the purchase fields go wrong. Purchase value is an integer on 1,832 purchases and a decimal on 3,410, so a query that reads one slot loses 35% or more of the values. The transaction id parameter is a string on 4,786 purchases and an integer on 456, all of those between 1 and 12 November. The ecommerce transaction id column, which the declared check reads, holds the end of the string id on 4,786 of 4,786 purchases and a placeholder wherever the parameter is an integer or absent. So 456 of the 906 purchases the check flags still carry an id, 452 distinct orders; the other 450 carry neither a transaction id nor a value. Four keys (all_data, gclid, gclsrc and dclid) arrive with every slot empty, on up to 2,828,174 events.

Every parameter key
Parameter keyEventsEvent namesStringIntegerDecimalEvery slot empty
ga_session_id4,295,5841704,295,58400
ga_session_number4,295,5841704,295,58400
page_location4,295,584174,295,584000
page_title4,276,104174,274,636001,468
engaged_session_event4,116,2371704,116,23700
session_engaged3,996,312173,682,921313,39100
debug_mode3,682,9911503,682,99100
page_referrer3,206,512171,127,778002,078,734
all_data2,828,174150002,828,174
clean_event2,828,040142,828,040000
engagement_time_msec2,431,8181402,431,81800
medium1,439,214151,439,214000
campaign1,439,167151,439,167000
source1,428,080151,428,080000
percent_scrolled493,07210493,07200
term338,70412338,704000
entrances332,17910332,17900
gclid118,48110000118,481
gclsrc116,84610000116,846
currency39,313339,313000
search_term26,172126,172000
unique_search_term20,9671020,96700
dclid15,701800015,701
payment_type5,24215,242000
tax5,242104554,7870
transaction_id5,24214,78645600
value5,242101,8323,4100
shipping_tier4,15914,159000
coupon3,07513,075000
promotion_name2,27012,270000
link_domain1,44611,446000
link_url1,44611,446000
outbound1,44611,446000
link_classes616000

The tags change during the period

Added after the first results: the rates split by week. Three changes show up. Add to cart fires 4 times before 15 November. Checkout events carry no items until late November. The ecommerce column holds placeholder transaction ids before 12 November, while the parameter still holds them as integers, and mostly placeholders again after 25 January. Whether the store or the obfuscation caused them, the export cannot say; a report over the whole period averages all of them.

Show every week
Week fromSessionsAdd to cart eventsCheckout sessions, no cartCheckouts, no itemsProduct views, no itemsPurchasesPurchases, no transaction id
2020-11-0125,4534100%100%46%273100%
2020-11-0822,4580100%100%48%37549%
2020-11-1525,4401,44376%100%46%5264%
2020-11-2227,2143,64963%23%43%6884%
2020-11-2931,0149,60517%0%39%6544%
2020-12-0638,35710,73522%0%37%8333%
2020-12-1333,82210,17425%0%30%7403%
2020-12-2022,6944,87827%0%27%2574%
2020-12-2720,3363,13227%0%26%17010%
2021-01-0328,8123,37333%0%29%1705%
2021-01-1027,7213,87026%0%28%2547%
2021-01-1727,4984,01827%0%30%3738%
2021-01-2426,4693,36730%0%32%36062%
2021-01-31 (one day)2,84129521%0%33%19100%

The funnel, read twice

Removing flagged events, as declared, cuts orders by 22% and each channel's session purchase rate by up to 20%: removing events can only lower a session's purchase rate. Organic search stays above direct in both reads. "Referral" leads mostly on the store's own website: 89% of its sessions name it, a check added after the first results. Also found after the first results: 456 dropped purchases (452 distinct orders) carry an id in a second field, and keeping them makes the cut 14%.

Sessions reaching a purchase, as exported (hollow) and without flagged events (filled). Every channel with at least 1,000 sessions.

Sessions reaching a purchase by channel, as exported and without flagged events0%1%2%3%Referral: 63,378 sessions. As exported 2.38% reach a purchase (95% interval 2.26 to 2.51%); without flagged events 1.96% (1.86 to 2.08%). 89% of these sessions name the store's own hosts, a check added after the first results.Referral63,378 sessions2.38%then 1.96%Organic search: 94,452 sessions. As exported 1.63% reach a purchase (95% interval 1.55 to 1.70%); without flagged events 1.37% (1.30 to 1.45%).Organic search94,452 sessions1.63%then 1.37%Unknown: 155,315 sessions. As exported 0.92% reach a purchase (95% interval 0.87 to 0.96%); without flagged events 0.76% (0.72 to 0.81%).Unknown155,315 sessions0.92%then 0.76%Direct: 37,786 sessions. As exported 0.81% reach a purchase (95% interval 0.72 to 0.90%); without flagged events 0.65% (0.56 to 0.73%).Direct37,786 sessions0.81%then 0.65%Paid search: 7,672 sessions. As exported 0.61% reach a purchase (95% interval 0.43 to 0.79%); without flagged events 0.55% (0.38 to 0.72%).Paid search7,672 sessions0.61%then 0.55%Other tagged: 1,329 sessions. As exported 0.15% reach a purchase (95% interval 0.00 to 0.38%); without flagged events 0.15% (0.00 to 0.38%).Other tagged1,329 sessions0.15%then 0.15%
Show the data
ChannelSessionsProduct viewAdd to cartBegin checkoutPurchase, as exported95% intervalPurchase, flagged removed95% interval
All sessions360,12921.4%4.2%3.1%1.35%1.31 to 1.39%1.12%1.09 to 1.16%
Referral63,37829.8%6.5%4.3%2.38%2.26 to 2.51%1.96%1.86 to 2.08%
Organic search94,45226.2%5.0%4.2%1.63%1.55 to 1.70%1.37%1.30 to 1.45%
Unknown155,31514.7%2.8%2.0%0.92%0.87 to 0.96%0.76%0.72 to 0.81%
Direct37,78622.8%4.2%3.0%0.81%0.72 to 0.90%0.65%0.56 to 0.73%
Paid search7,67221.6%3.5%2.3%0.61%0.43 to 0.79%0.55%0.38 to 0.72%
Other tagged1,32913.2%2.5%1.7%0.15%0.00 to 0.38%0.15%0.00 to 0.38%

Intervals: 95%, Poisson bootstrap over users, 1,000 replicates, so a user's several sessions count as one unit of evidence. Email has 197 sessions, under the 200 needed for a reading.

Organic search sits above direct with intervals apart in both reads. Direct and paid search overlap, so they are not ranked here. A check added after the first results: excluding the store's own hosts, outside referral sites reach purchase at 1.2% on 6,887 sessions, not the 2.4% the channel shows. That pooled figure ranks nothing: analytics.google.com sends 3,412 of those sessions and 1 buyer, and four sites (sites.google.com, mail.google.com, perksatwork.com, moma.corp.google.com) hold 70 of the 83 buyers on 873 sessions, a split by source added later. Outside sources buy at very different rates, so no outside group is rated here.

The store's own hosts hold 1,428 of referral's 1,511 buying sessions, so referral's rate is mostly theirs. Outside sites hold the other 83, too mixed to rate as one group: four sites hold 70 of them.

Sessions reaching a purchase, as exported, by large channel (at least 1,000 sessions), with the store's own hosts inside referral

Sessions reaching a purchase by channel, with referral split into the store's own hosts and outside sites0%1%2%3%Referral, as reported: 63,378 sessions, 2.38% reach a purchase as exported (95% interval 2.26 to 2.51%). 89% of these sessions name the store's own hosts, and the other 11% name outside sites.Referral, as reported2.38%The store's own hosts: 56,491 of the referral sessions, 1,428 reaching a purchase, 2.53%, which is 94.5% of referral's buying sessions. A store-host session names no outside source.of which the store's own hosts2.53%Organic search: 94,452 sessions, 1.63% reach a purchase as exported (95% interval 1.55 to 1.70%).Organic search1.63%Unknown: 155,315 sessions, 0.92% reach a purchase as exported (95% interval 0.87 to 0.96%).Unknown0.92%Direct: 37,786 sessions, 0.81% reach a purchase as exported (95% interval 0.72 to 0.90%).Direct0.81%Paid search: 7,672 sessions, 0.61% reach a purchase as exported (95% interval 0.43 to 0.79%).Paid search0.61%Other tagged: 1,329 sessions, 0.15% reach a purchase as exported (95% interval 0.00 to 0.38%).Other tagged0.15%
Every referral source with its counts

The twelve referral sources with the most sessions, as exported, and the rest of each group. Counts only: intervals by source need the raw events, which this page does not re-read. A rate is given from 200 sessions, as in the main table.

SourceGroupSessionsBuying sessionsReach a purchase
shop.googlemerchandisestore.comthe store's own host52,3901,3322.54%
googlemerchandisestore.comthe store's own host4,095952.32%
analytics.google.comoutside3,41210.03%
creatoracademy.youtube.comoutside88620.23%
sites.google.comoutside417286.71%
support.google.comoutside36020.56%
perksatwork.comoutside226114.87%
coursera.orgoutside20700.00%
mail.google.comoutside15422under 200 sessions
googleads.g.doubleclick.netoutside1220under 200 sessions
l.facebook.comoutside1111under 200 sessions
moma.corp.google.comoutside769under 200 sessions
other store hoststhe store's own host61under 200 sessions
other outside sitesoutside91670.76%

Store-host sessions buy at 2.5%, about twice the site's 1.35%. Two readings added after the first results, each with its rule written down before it ran, ask whether they take purchases from the channel a buyer came from. The first merges a store-host session into the same user's previous session when it starts within 30 minutes of that session's last event, a visit split in two. Only 1,597 of the 56,491 store-host sessions (3%) qualify, and the merge moves organic search and direct by under 0.02 points. But 53% of store-host sessions follow an earlier session of the same user, against 25% of all sessions: 28,222 (50%) start more than 30 minutes after their previous session ends, which a 30-minute rule cannot test, 27,836 (49%) of them within 30 days of it. The second reading credits each store-host session to the channel of the same user's latest earlier session in the previous 30 days that is known, not direct and not a store host. 12,821 sessions have one and move, 10,947 of them to organic search, which then reaches purchase at 1.88% (1.79 to 1.97%). This rule never moves a session to direct, so it can only add to organic search and cannot test the gap between them. 47% of store-host sessions have no earlier session of the same user in the export at all, so where those visitors came from is not in the data. A bound added after the first results shows how much that matters: if all 43,670 store-host sessions with no outside source in the previous 30 days had come in direct, direct would reach purchase at 1.51% as exported and 1.21% with flagged events removed, against organic search's 1.63% and 1.37%. Organic search would still read higher, but by about 1.1 times as exported instead of 2.0, so the size of the gap rests on where those visitors came from. The channel rates describe only part of the buying: 59% of buying sessions are credited to the store's own website or to no usable source.

Show the funnel with store-host sessions merged, and with them credited to the earlier channel

Merged into the visit they continue, within 30 minutes:

ChannelVisitsPurchase, as exported95% intervalPurchase, flagged removed95% interval
Organic search94,4521.64%1.56 to 1.72%1.38%1.31 to 1.46%
Outside referral sites6,8871.21%0.97 to 1.49%1.00%0.78 to 1.25%
The store's own hosts, not merged54,8942.53%2.40 to 2.67%2.08%1.96 to 2.21%
Direct37,7860.82%0.73 to 0.91%0.65%0.57 to 0.73%
Paid search7,6720.61%0.43 to 0.79%0.55%0.38 to 0.72%
Other tagged1,3290.15%0.00 to 0.38%0.15%0.00 to 0.38%
Unknown155,3150.93%0.88 to 0.98%0.77%0.73 to 0.82%

Credited to the earlier channel, within 30 days:

ChannelSessionsPurchase, as exported95% intervalPurchase, flagged removed95% interval
Organic search105,3991.88%1.79 to 1.97%1.60%1.52 to 1.68%
Outside referral sites7,8151.38%1.14 to 1.64%1.18%0.96 to 1.41%
The store's own hosts, no earlier channel43,6702.12%1.98 to 2.25%1.69%1.57 to 1.81%
Direct37,7860.81%0.72 to 0.90%0.65%0.56 to 0.73%
Paid search8,4130.84%0.66 to 1.03%0.73%0.55 to 0.90%
Other tagged1,4960.13%0.00 to 0.33%0.13%0.00 to 0.33%
Unknown155,3150.92%0.87 to 0.96%0.76%0.72 to 0.81%

Both tables show every channel with at least 1,000 sessions, as the main table does. Email is left out: 197 visits merged, 11.68% reaching a purchase as exported; 235 sessions credited, 12.34% (8.60 to 16.38%) on 29 buying sessions.

Desktop and mobile cannot be told apart: 1.32% against 1.39%, and the interval on the difference runs from −0.16 to +0.01 points.

Show the devices
DeviceSessionsAs exported95% intervalFlagged removed95% interval
Desktop208,9421.32%1.27 to 1.37%1.10%1.05 to 1.14%
Mobile143,1851.39%1.33 to 1.46%1.16%1.10 to 1.21%
Tablet8,0021.30%1.04 to 1.58%1.02%0.79 to 1.27%

Over the whole period the declared step rates depend on which events you trust. Each divides the sessions reaching one stage by the sessions reaching the stage before, so a checkout session with no cart still counts in the cart-to-checkout rate.

Show the whole-period steps (ratios of stage totals, as declared)
StepAs exported95% intervalFlagged removed95% interval
Session to product view21.4%21.2 to 21.5%16.6%16.5 to 16.7%
Product view to add to cart19.7%19.4 to 20.0%25.4%25.0 to 25.8%
Add to cart to begin checkout73.1%71.8 to 74.6%51.7%50.8 to 52.7%
Begin checkout to purchase43.7%42.7 to 44.6%51.3%50.1 to 52.5%

Add to cart to checkout is 73% as exported and 52% with flagged events removed, and neither is a fact about customers: 46% of checkout sessions have no cart event at all. So here is the funnel inside the stable window, 29 November to 23 January, chosen after the first results, as exported with 95% intervals. Each step follows the same sessions, a reading added after the first results: of the sessions holding a cart, the share holding a checkout at or after their first cart, and so on. The last row gives each step's order check: the share of sessions at the later stage with no earlier-stage event at or before it.

ChannelSessionsSession to product viewProduct view to add to cartAdd to cart to checkoutCheckout to purchaseSession to purchase
All sessions230,26320.0% (19.9 to 20.2)27.0% (26.5 to 27.5)35% (34 to 36)49% (48 to 50)1.33%
Organic search58,49724.4% (24.0 to 24.7)27% (26 to 28)40% (39 to 42)43% (41 to 45)1.64%
Referral36,34629% (29 to 30)30% (29 to 31)32% (31 to 34)60% (58 to 63)2.53%
Direct25,31722% (22 to 23)25% (24 to 26)28% (26 to 31)33% (29 to 37)0.79%
Paid search5,17720% (19 to 21)23% (20 to 25)24% (19 to 30)43% (33 to 53)0.73%
Unknown104,31713.8% (13.6 to 14.1)25% (25 to 26)35% (33 to 36)53% (51 to 55)0.89%
Order check0.1%30.1%, fails0.03%

This is the closest thing to an answer on where each source loses buyers. Across the window, 49% of checkout sessions go on to buy in the same session. Direct loses more at the last step than organic search (33% of checkout sessions buy against 43%): the intervals are apart and the step passes its order check. Paid search looks weaker from cart to checkout (24% against 40%), but that step fails its order check: 30% of checkout sessions in the window hold no cart event at or before the checkout, so it cannot be read as a finding about buyers. Even here 33% of product views carry no items, so read these as the best this export allows, not as a benchmark.

Sessions and channels, rebuilt from raw events

The same 4,451 orders (flagged removed), credited three ways as declared. Added after the first results: referral split into outside sites and the store's own hosts, and a fourth rule that treats store-host sessions like direct. None is claimed to match any report: the publisher says the sample cannot be compared with the store's demo account.

ChannelSession scopeUser first touchDifference, points (95%)Last non-directDifference, points (95%)Store hosts treated like direct, added after the first resultsDifference, points (95%)
Direct6.2%21.7%+15.5 (+14.3 to +16.8)3.5%−2.6 (−3.5 to −2.0)4.0%−2.1 (−3.0 to −1.5)
Organic search31.8%25.9%−5.9 (−7.6 to −4.1)38.4%+6.6 (+5.6 to +7.8)50.9%+19.1 (+17.6 to +20.6)
Referral, as declared31.4%12.5%−18.9 (−20.6 to −17.1)37.2%+5.9 (+5.1 to +6.8)20.6%−10.8 (−12.0 to −9.6)
of which outside referral sites1.6%0.0%−1.6 (−2.0 to −1.3)1.8%+0.1 (+0.0 to +0.3)2.6%+0.9 (+0.5 to +1.4)
of which the store's own hosts29.7%12.5%−17.2 (−19.0 to −15.5)35.5%+5.7 (+4.9 to +6.6)18.0%−11.7 (−12.9 to −10.4)
Paid search1.0%2.9%+2.0 (+1.6 to +2.4)1.3%+0.3 (+0.1 to +0.5)1.8%+0.9 (+0.6 to +1.2)
Email0.4%0.0%−0.4 (−0.7 to −0.3)0.5%+0.0 (0.0 to +0.1)0.7%+0.2 (+0.1 to +0.4)
Unknown29.2%36.9%+7.8 (+5.9 to +9.7)19.0%−10.2 (−11.3 to −9.1)21.9%−7.3 (−8.3 to −6.3)

The rule moves credit by more than most channel gaps a report would highlight. First touch gives referral 19 points less than session scope and direct 16 more, which fits the self-referral finding: people first arrive some other way and then return through a store host. Last non-direct cuts unknown by 10 points, because earlier sessions often hold a source, but it also gives the store's own hosts 5.7 points more: it looks back only from direct or unknown sessions, and the earlier session it finds can itself be a store host. The fourth rule moves 11.7 points away from the store's own hosts and gives organic search 19.1 points more than session scope. No rule recovers what the export does not hold: unknown keeps 19.0% of orders or more under every rule.

A month-ahead forecast

Orders over the next 28 days, from six starts a week apart. At most two of the six windows can be chosen without overlap, so this is about two independent tests. Sessions by source multiplies each channel's last 7 days of sessions by four and applies its order rate over the last 28 days. Each cell is the forecast and its miss.

28 days fromActual ordersSame as last 28 days4 times last 7 daysSessions by sourceLargest part of the miss
2020-11-292,3661,075 (−55%)2,052 (−13%)1,166 (−51%)Unknown, conversion, +350 orders
2020-12-061,8951,693 (−11%)2,472 (+30%)1,979 (+4%)Referral, traffic, −144 orders
2020-12-131,2562,300 (+83%)3,184 (+154%)2,880 (+129%)Referral, traffic, −380 orders
2020-12-207792,635 (+238%)2,832 (+264%)2,707 (+248%)Unknown, conversion, −438 orders
2020-12-278742,366 (+171%)976 (+12%)1,662 (+90%)Unknown, conversion, −421 orders
2021-01-038631,895 (+120%)588 (−32%)1,273 (+48%)Organic search, conversion, −379 orders

Sessions by source beat repeating the last 28 days on 4 of 6 starts and 4 times the last 7 days on 3 of 6; on orders as exported, a reading added after the first results, on 3 and 1 of 6. So traffic by source shows no clear edge. Week ahead, on 9 weeks that do not overlap, it beat last week's orders 3 times (sign test p = 0.51): cannot tell, and not encouraging. The 9 weeks are not independent either, since all of them ride the same holiday fall. The largest misses start when the horizon leaves the holiday peak, as weekly orders fall from 833 to 170. For the start on 20 December the bridge splits the miss into −1,132 orders from a lower order rate and −796 from less traffic. The bridge closes by construction, so it only names where to look.

The forecast uses flagged-removed orders, as declared. Those are zero on 1 to 10 November, when 421 orders were exported, because the declared transaction id check reads only the ecommerce column (see how the export stores events, above). They are thin again after 25 January, when the column holds placeholders again. So the order rates behind the first two starts are too low, and the 6 December start's miss of 4% on this series is a measurement accident: on orders as exported it misses by 31%. On this series sessions by source missed by 4 to 248%; with every purchase event as exported, a reading added after the first results, by 16 to 252%, and the mean misses are 92%, 102% and 81% for sessions by source, the 28-day repeat and the 7-day run rate, against 95%, 113% and 84% on the declared series. Each mean averages six overlapping starts, so it ranks nothing. Week ahead on that series it beat last week's orders once in 9 weeks (sign test p = 0.04). What holds on both series: traffic by source did not beat the orders run rate, and every method missed by 25% or more on at least 4 of the 6 starts. Three months cannot separate a traffic signal from the season; that takes at least a year of history.

What breaks when tagging is wrong

Nine declared faults, each applied to a copy of the real events, then the same checks and reports. One author wrote faults and checks, so the count below is a self-test.

FaultOrdersRevenueSessionsSession to purchase, pointsLargest move in order share, pointsChecks that fired
A redirect strips campaign values (half of paid search sessions)0%0%0%0.000.5 (paid search)none
The purchase tag fires twice (20% of purchases)+19%+19%0%0.000.7 (referral)repeated transaction ids
The transaction id is lost (30% of purchases)0%0%0%0.000.0 (direct)purchases with no transaction id
Value is sent as a string (30% of purchases)0%−31%0%0.000.0 (direct)purchases with no value; purchases with no revenue
The session id is lost on phones (half of phone events)0%0%−2%−0.2414.8 (unknown)events with no session id; sessions with no session start; purchases with no checkout; carts with no product view
The payment page becomes a referrer (30% of purchases)0%0%+0%+0.1020.2 (referral)purchases with no checkout
The add to cart tag is gone on phones (every phone add to cart)0%0%0%0.000.0 (direct)checkouts with no cart
Product views lose their items (30% of product views)0%0%0%0.000.0 (direct)product views with empty items
A consent banner delays tags (20% of sessions, first 10 seconds)−0%0%−9%+0.133.4 (referral)sessions with no session start

The checks fired on 8 of 9. The two large moves in credit come from a session id lost on phones and a payment page that becomes a referrer: order credit moves 15 and 20 points while orders and revenue stay unchanged, so a revenue reconciliation sees nothing. A value sent as a string leaves orders unchanged and takes 31% off revenue. The lost add to cart tag fired its check only because the check still had room to rise: 46% to 68%.

Worked example: the fault no schema check sees

A redirect strips the campaign values from half of paid search sessions. The rows stay valid: source (direct), medium (none). Every check stays quiet, and orders and revenue do not change. Only the credit moves.

ChannelShare of orders, as exportedWith the campaign values strippedChange, points
Organic search32.0%32.0%0.0
Referral31.4%31.4%0.0
Unknown29.1%29.1%0.0
Direct6.1%6.6%+0.5
Paid search0.9%0.4%−0.5

Paid search is a small channel in this sample, so the move is 0.5 points. But that is about half of paid search's orders vanishing from its report, enough to cut a campaign that works. Catching it takes something other than a schema check: a tagged test visit before release, like the scripted sessions of the pre-release contract in the event contracts study, or monitoring of channel shares.

What went wrong or was missed

What I would use when

SituationUseWhy
Before a release changes a tag or the data layerA pre-release contract check with scripted test sessionsIt stops a break before any wrong data exists. The event contracts study measures that on a synthetic app; this page starts where it stops, at the export.
You already have a raw event exportSchema checks in SQL on the export, each with a planted faultReports hide these flaws. Here 24% of checkout sessions lack a cart event even after the tags settle, and a plain rate table would just show a big number.
Comparing channels in a funnel you have not checkedSession to purchase, with intervals over usersIt needs no assumption about the order of the steps between, and organic search stayed above direct in both reads. It says nothing about the 59% of buying sessions with no outside source.
Choosing an attribution ruleShow the shares under at least two rules, side by sideA single rule hides how much credit depends on the rule.
A campaign value might be strippedA daily check of channel shares against their recent range, plus a tagged test visitA stripped campaign leaves a valid direct session, so a schema check cannot see it.
Forecasting orders from trafficA naive baseline first, and at least a year of history before any seasonal modelThree months cannot separate a traffic signal from the holiday peak and its fall.

On tools: everything here is SQL on DuckDB and a little Python over the export's nested event parameters; the same checks run in any warehouse. A monitoring product or a data-observability tool can schedule them, but the list of what must be true of a purchase event still has to be written by someone who knows the funnel.

How I would roll this out with a team

  1. Write what must be true of each funnel event. Analytics engineering owns the list, marketing and product sign it: required parameters, allowed placeholders, the order of the steps.
  2. Run the checks on the export every day. Each check has a planted fault in its test, so a check that cannot fire is found before it is trusted. Failures open a ticket for the team that owns the tag.
  3. Mark each funnel step as trusted or not. A step whose order check fails carries a visible note in the report until it passes. A marketing lead should see that note before the number.
  4. Add channel-share monitoring and a test visit. Paid sessions tagged on purpose confirm the campaign values survive redirects, the one fault here no schema check could see.
  5. Tell the executive early. "Our checkout step cannot be read yet: many checkouts hold no cart event, and few of those carry a cart from an earlier visit. The end-to-end rate can, and here it is." One line, with the owner and the fix date, beats a corrected number later.
  6. Add a forecast last. Start with the naive baseline and publish its miss. A traffic model replaces it only after it beats the baseline over at least a year.

A build of about 3 weeks at US$4,000 a week (US$12,000) is the declared assumption, with about 6 hours a month to review failures. The software here is free.

What it is worth

From declared assumptions, none of them from the export: a paid budget of US$600,000 a year, part of which follows order credit. The declared share is the largest plausible one, where a point of order credit moves 1% of the budget, US$6,000 a year. Added after the first results, the same figures are also priced at half and a quarter of that share, US$3,000 and US$1,500 a point.

Choosing first touch instead of session scope moves 19 points of credit from referral here: about US$113,000 a year at the declared share, US$57,000 at half and US$28,000 at a quarter. But referral is not a bought channel, and most of that credit sits on the store's own hosts, so this sizes the rule choice more than money a team would move. The paid move this study measures is the stripped campaign: it takes 0.5 points of order share from paid search, about US$2,800, US$1,400 or US$700 a year at the three shares, small because paid search holds about 1% of orders in this sample.

Against a build of US$12,000, the checks pay back if they stop about 2, 4 or 8 points of wrong credit for a year at the three shares. Halve the budget and each of those doubles. The honest limit: this prices the money a wrong report can steer, never a measured gain, and a real team should use its own budget and share rule.

Where AI fits

A language model helps around this work: drafting the list of required parameters from a tagging plan, explaining a failed check to the team that owns the tag, writing the first SQL for a new event. It should not be the check. A model asked whether a funnel looks right can find a story for a checkout step above 100%. The safe pattern is the one on this page: declared rules, a planted fault for each, and numbers a person can recount.

Method and checks

The data

The public dataset ga4_obfuscated_sample_ecommerce in BigQuery, published by Google: 92 daily tables, 2020-11-01 to 2021-01-31. Rows were read from the public tables to local parquet, then analysed with DuckDB. Raw rows are not copied here. The publisher's page states the data is obfuscated, holds placeholder values and cannot be compared with the demo account. No licence text specific to the rows was found, so the study publishes aggregates and method and credits the source.

Sessions, channels and reads

Session key: user id plus the ga_session_id parameter. Source and medium: both from the session's earliest event carrying either, ordered by time and then by event id; a first run took each from a different event where one was missing, compared under What went wrong. Placeholders: null, empty, <Other>, (data deleted), (not set). Channel, this study's own rule: any placeholder is unknown; (direct) with (none) is direct; medium organic is organic search; cpc, ppc, paid or paidsearch is paid search; referral is referral; email is email; anything else is other tagged. Flagged removed drops ecommerce events with empty items, purchases with a missing or placeholder transaction id, purchases with no value or revenue, and later purchases repeating a transaction id. Sessions stay in both reads, and their channel does not change between reads. A session reaches a stage if it holds at least one such event. The declared step rates divide the sessions reaching a stage by the sessions reaching the stage before; the steps inside the stable window, added later, follow the same sessions and need the later event at or after the earliest earlier one.

Forecast

Six month-ahead starts, 7 days apart, each forecasting the next 28 days, from orders flagged removed. Same as last 28 days; 4 times the last 7 days; and sessions by source: per channel, 4 times the last 7 days' sessions times the order rate over the last 28 days. A regression was left out in advance: too few starts. Nine week-ahead starts add a sign test. The bridge splits each miss by channel into traffic and conversion; it closes by construction, so it only names a channel and is not evidence.

Tagging faults

Nine faults, declared before any run, applied to a copy of the real events, chosen by a hash of the row's key, one draw each. A check fires when its rate rises by at least 0.5 points and at least 20% of its baseline. One author wrote the checks and the faults, so the count of faults caught is a self-test and appears nowhere as a headline. A check already far from zero can stay silent under a real break, as one did here. No independent author wrote faults in this round.

Predictions, declared before the runs

8 held, 7 missed under the declared source rule, the same on the first run. The design, the checks, the faults and these predictions were committed before any scored run.

The predictions are quoted as declared. In them, Read A is the as-exported read and Read B the flagged-removed read; S is sessions by source, N28 the 28-day repeat and N7 four times the last 7 days, with S7 and N7w their week-ahead forms against last week's orders; an origin is a forecast start; T1 is the stripped campaign, the first fault in the faults table.

  • Held: 25% to 60% of sessions have no usable source or medium (null or placeholder).
  • Missed: 1% to 15% of purchase events have a missing or placeholder transaction id.
  • Missed: Under 5% of purchase events share a transaction id with an earlier purchase event.
  • Held: In Read A, 0.5% to 3.0% of sessions reach a purchase.
  • Missed: In Read A, for every channel with at least 1,000 sessions, the largest proportional loss is product view to add to cart.
  • Missed: Desktop reaches a purchase more often than mobile, and the 95% interval on the difference excludes zero.
  • Missed: Read B moves the overall session-to-purchase rate by under 10% of its value and at least one named channel's rate by 10% or more.
  • Held: User first touch and session scope differ by at least 3 points of order share on at least 2 channels.
  • Missed: Last non-direct gives direct at least 5 points less order share than session scope.
  • Held: Session start count and the 30-minute rebuild are each within 5% of the user plus session id count.
  • Held: Month-ahead, the sessions model S has a smaller absolute miss than N28 on at least 4 of 6 origins. On orders as exported, a reading added after the first results, 3 of 6.
  • Missed: Month-ahead, the mean absolute percentage miss of S is within 5 points of N7: traffic by source adds little beyond the orders run rate.
  • Held: Month-ahead, every model misses by 25% or more on at least 2 of 6 origins.
  • Held: Week-ahead, S7 beats N7w on at most 7 of 9 origins, so the sign test does not reach 5%.
  • Held: Safe bet, a self-test: the audit fires on 8 of the 9 faults and misses T1, because a stripped campaign leaves a valid direct session.

Added after the first results, none of them in the predictions: the weekly split and the exact days the tags change; the funnel inside the stable window, chosen from those days; the count of sessions naming the store's own hosts; the forecast on orders as exported; and the list of event names and parameters, with where the transaction id and value sit, read from the same local copy. Three more were written down as a change to the protocol before their code ran: store-host sessions merged into the visit they continue; steps that follow the same sessions inside the stable window, each with its order check; and the money priced at three shares of the budget. They describe and score nothing, and every declared result keeps its place. The code that takes a session's source and medium takes both from one event as declared. It was written down as a change to the protocol before its run, with four more readings: referral split into outside sites and the store's own hosts; a fourth attribution rule that treats store-host sessions like direct; the funnel with each store-host session credited to the same user's earlier channel; and counts of store-host sessions that follow an earlier session. They too describe and score nothing. Two more readings, written down before their code ran: whether checkout sessions with no cart follow a cart from the same user's earlier visit, and the split of sessions with no usable source into no value at all, a placeholder, and one value missing. One expectation was written down with them, apart from the 15 predictions; it held, on a loose bar. Three figures derived from stored counts, written down before the page used them, with nothing new run: checkout sessions with no cart from 29 November on, direct's rate if the store-host sessions with no outside source had come in direct, and the earlier-cart shares as about 1 in 9 and 1 in 6. Later still, more figures derived from stored counts, with no new run: referral by source, its largest outside source set apart; the sessions with no usable source cut by what the event still carries, 8% with a usable medium under a placeholder or missing source and 9% with nothing usable; the weekly range of checkouts with no cart from 29 November on; and the two planted faults that move order credit most.

Use this at your company

To run these checks on your own export, paste this into your AI assistant along with your schema and funnel events.

This method comes from Diogo Travassos's study "A web funnel by traffic source, rebuilt from a public GA4 export" (https://diogotravassos.dev/web-funnel-by-source/). If you can open links, read it first: it runs these checks on a public GA4 sample and shows which funnel steps could not be read. The steps below stand on their own if you can't.

Help me audit the event data behind my web funnel before anyone quotes a funnel number from it. I will paste the schema of my raw event export and a list of my funnel events.

Method:
1. For each funnel event, write what must be true: required parameters, allowed values, and which placeholder values count as missing. Then list the order the events should follow inside one session.
2. Write each check as SQL on the raw export, with a numerator and a denominator, and run it per week as well as over the whole period, because tags change. Include one check for sessions whose source is my own domain. For each check, also write a tiny made-up example with one planted fault, and confirm the check fires on it.
3. Rebuild sessions from raw events two independent ways (a session id, and an inactivity gap) and compare the counts. Rebuild the channel of each session from its own events, taking source and medium together from one event.
4. Compute the funnel per channel and device, with 95% intervals that resample users, not sessions. Do it twice: on all events, and with the flagged events removed. Count each step over the same sessions: of the sessions holding the earlier event, the share holding the later event at or after it. For each step, also report the share of sessions at the later stage with no earlier event before it, and mark the step not readable when that share is 5% or more, or when its rate changes by more than a quarter between the two reads.
5. Show the share of orders by channel under session scope, first touch and last non-direct, side by side.
6. If I ask for a forecast, start with a naive baseline, count how many independent test periods my history allows, and say plainly when that is too few to rank methods.

Report back: the failed checks ranked by how many rows they touch, which funnel steps can be quoted and which cannot, the channel comparison with its intervals, and the one tagging fix you would do first. Never present a funnel step as a finding when its order check fails.

In your report, say which study you followed and link it: https://diogotravassos.dev/web-funnel-by-source/