Data choices: us-ecommerce-share story

Source. US Census Bureau, Quarterly Retail E-Commerce Sales, taken directly from census.gov rather than the FRED mirror (ECOMPCTSA), so the not-adjusted series, the supplemental table by kind of business and the release text (definitions, standard errors) all come from the same release. The snapshot is the release of 18 August 2026, with data to Q2 2026 (preliminary) and Q1 2026 revised. It was retrieved 12 November 2026. See PROVENANCE.md for files and checksums.

What is counted (release text, ec_current.pdf, footnote 1 and "Survey Description"):

  • E-commerce: sales of goods and services where the buyer places the order, or the price and terms are negotiated, over the Internet, a mobile device, an extranet, EDI, email or a comparable online system. Payment may or may not be made online. E-commerce sales are included in total retail sales.
  • Total retail: retail trade as sampled by the Monthly Retail Trade Survey (about 10,800 firms, excluding food services). Online travel services, financial brokers and dealers, and ticket sales agencies are not retail, so they are in neither the total nor e-commerce. Restaurants and bars (food services) are also excluded. The total includes motor vehicle and parts dealers and gasoline stations (the supplemental table's columns), so the share moves with car and fuel prices as well as with shopping habits.
  • Employer firms only: "As of the April 2025 annual revision report, nonemployers are no longer included in the estimates and have been removed from the time series." The whole series on file is on that basis.
  • Nominal: both series are in current dollars, "not for price changes". The share is a ratio of spending, not of volumes. We do not deflate it.
  • Seasonally adjusted vs not: the headline share is from the seasonally adjusted series (X-13ARIMA-SEATS for e-commerce; totals are also adjusted for trading days and moving holidays). The not-adjusted share peaks every fourth quarter. The post uses adjusted figures except in the nonstore comparison (four-quarter sums, not adjusted, because the supplemental table exists only unadjusted) and the holiday-quarter chart.

E-commerce is not "nonstore retailers". "Nonstore retailers" is a kind of business. Census classifies a firm by its main kind of business, and the supplemental table gives both total and e-commerce sales for each kind. Over the latest four quarters (Q3 2025–Q2 2026, not adjusted), e-commerce was $1,296bn: $749bn (57.8%) by nonstore retailers and $547bn by retailers in other kinds of business. Nonstore retailers' total sales were $1,135bn, 66.0% of them e-commerce. Four-quarter sums avoid seasonality, and calculate.mjs checks that the table's total and e-commerce columns equal the not-adjusted series for every quarter used. The table suppresses some cells (S) for other kinds of business. None of the four columns used is suppressed, and the script stops if one ever is.

Share and growth. share = 100 × e-commerce / total from the published levels ($ millions), kept at full precision. calculate.mjs stops if any quarter differs from Census's published one-decimal share, or from its year-on-year growth columns, by more than 0.05. Rounding happens once, for display, with the same round() helper in render-readme.mjs and the chart script.

Pandemic peak and trough. The peak is the highest adjusted share in 2020–2021 (Q2 2020, 16.3%). The trough is the lowest share after it (Q2 2022, 14.2%). Both are found by the script, not typed.

Trend benchmark and start-year sweep (claim check 8). The "pre-pandemic trend" is an ordinary least-squares straight line through the adjusted quarterly shares from Q1 2015 to Q4 2019, extended to the latest quarter. It rises 0.86 points a year and gives 16.43% for Q2 2026, against an actual 17.13% (+0.70). A straight line in percentage points was chosen over a log-linear (constant growth rate) line because the 2010s rise in points was close to linear (year-on-year changes of 0.5–0.9 points). A constant-growth line would have the share heading for about 21% by now, which would make the pandemic look like a shortfall. The window matters, so statistics.json gives every start year from 2010 to 2018, each ending in 2019:

Start yearSlope (pts a year)Q2 2026 vs trend (pts)
20100.68+2.28
20110.72+1.95
20120.75+1.62
20130.80+1.23
20140.83+0.90
20150.86+0.70
20160.88+0.51
20170.92+0.26
20180.97−0.12

The post names the 2015 fit, reports 2012 and 2018 beside it, and says the line is a benchmark rather than a counterfactual. Starts before 2014 give a gap above 1 point. Early-2010s growth was slower, so the title's "close to" depends on using the five pre-pandemic years. A reviewer should weigh this. The since-trough slope (0.67 points a year, Q2 2022 to the latest quarter) is below the slope from every start year from 2012 to 2017, which is what "more slowly" claims.

Sampling error and revisions. Census's Table 2 gives a standard error of 0.3 percentage points for the share in every quarter shown. The release gives no standard error for the change in the share. The Q2 2026 figure is preliminary. A special notice on the release page (recorded in source-manifest.json) says revised estimates come with the Q3 2026 release on 19 November 2026. When fetch.mjs sees a new quarter, it keeps the previous release's adjusted series as previous-release-tsadprectbl3.dat, and calculate.mjs writes revisions.csv (share by quarter since 2020, previous vs new). The refreshed post then reports the revision to the previous latest quarter and the largest revision since 2020. Before the refresh, the post states no revision size (claim check 7).

Sentences that change with a new release

Refresh after 10:00 ET on 19 November 2026, from the download folder:

npm ci
npm run update:q3   # fetch.mjs --expect=2026Q3 (exits 2, writing nothing, if census.gov still shows Q2), then build
# build = calculate.mjs → render-readme.mjs --check → make-charts → render-readme.mjs

calculate.mjs checks every file against source-manifest.json. The premise check runs before the charts and README are overwritten, so a failed guard leaves them as they were (the CSVs and statistics.json are refreshed). Do not edit README.md by hand. Edit README.template.md or render-readme.mjs. Every number in the post, front matter and alt text comes from statistics.json.

Sentence (as of the Q2 2026 data)Guard
Hook: "publishes its estimate for the third quarter… on 19 November" / after refresh "published… on 19 November 2026" plus the revisions sentencerelease date is 2026-08-18 or 2026-11-19; a 19 Nov page must carry 2026Q3 data; the revisions sentence appears only with the Q3 release
Title, opening, description: "the highest share in the Census Bureau's quarterly series"latest share is the series maximum and above the 2020 peak
Title: "close to where its pre-pandemic trend pointed"; opening "now it is 0.7 points above it" (above/below/level worded from the sign)|gap to 2015–2019 trend| ≤ 1.0 point
"the lead shrank: from 5.1 points… to 1.2… and 0.7"gaps at peak > trough > latest
"jumped… to 16.3%" in Q2 2020; "fell for two years, to 14.2%… but never went back to its pre-pandemic level"peak in 2020; trough after it, ≥ 1 point below the peak and ≥ 2 points above Q4 2019
"Fitted from 2012… 1.6 points above it"gap from the 2012 fit is positive
"risen about 0.7 points a year, against 0.9"; description "grown more slowly"since-trough slope below every pre-pandemic slope (starts 2012–2017), and the rounded values differ
"the share rose 0.8 points, as e-commerce sales grew 12.2% and all retail sales 6.7%"e-commerce y/y growth above total, share change positive
"Nonstore retailers made a little over half of it"nonstore share of e-commerce between 50% and 70%; e-commerce < 90% of nonstore sales
"Unadjusted, the share is highest in the fourth quarter"; "the high point of every complete year in the chart"last Q4 unadjusted > adjusted; Q4 is the maximum of each complete year since 2018

If a guard fails, rewrite the named sentence. If the argument itself changes (for example, the revised share falls below its 2020 peak, or the gap to trend widens beyond a point), the story needs fresh review. The opening is also checked to stay within 80 words.

Not done. Price-adjusted shares (Census publishes none). A share excluding motor vehicles and gasoline (possible from the supplemental table from 2018, not adjusted; a natural follow-up to separate price effects from habits). Monthly data (the monthly retail survey's subsample is too small for e-commerce, per the release).

Built with LogoFlowershow