Traffic: a new record, slowly won

CSS-Tricks closed out the year at 94m pageviews, up from 90m in 2019 and a new high for the site. That figure arriving after a small decline last year was welcome. It also served as a reminder of how much time, money, and energy go into merely maintaining traffic to a content site, before any attempt at growth. Reaching 100m is a milestone for some future year.

Cloudflare now sits in front of the site, which allows content — not just static assets — to be CDN-served. With Cloudflare analytics also available, the numbers can be compared across tools. For last month, Cloudflare reported 6,847,979 unique visitors, against 6,125,272 sessions (and 7,449,921 unique pageviews) in Google Analytics. The two came out closer than expected, given that Google Analytics depends on client-side JavaScript and Cloudflare's data is presumably gathered at the DNS level and therefore not blockable. WordPress-powered analytics have been switched off for now — three sets of analytics felt excessive — though they may return, since they are the only source for top on-site search results.

  • Organic search accounted for 77.7% of traffic, down from 80.6% the year before.
  • Nearly the whole swing is explained by "direct" traffic moving from 9% to 12%.

General analytics get less interesting over time. They are valuable when there's a specific question to answer, or for numbers judged important to the site; poking around at them can otherwise create the illusion of insight. What does draw attention is popular content by actual traffic — traffic to the site is a goal, and those numbers correlate directly with what sponsorship can be charged — along with the searches that bring people in.

The top search terms are variations on flexbox and grid layout. Site-name variations fill out the top 20. Ranks 10 through 100 are specific CSS topics; past 100, SVG, JavaScript, and design terms appear, and React doesn't show up until rank 251. Read plainly, this says the layout guides remain strong performers, many readers come to the site first and search within it second, and library-specific searches are an uncommon way to land here.

Content performance

With custom dimensions built by Jacob, analytics can be broken down by the year an article was written. Articles written in 2019 generated about 6.3m pageviews that year; in 2020, the same articles pulled 7.3m. They gained traffic as they aged. Articles written in 2020 accounted for 12m pageviews.

There is a wrinkle in compiling that Top 10. Three runs of the same custom report produced three slightly different lists. The cause is sampling: Google Analytics caps sampled report data at 500,000 sessions — 0.7% of what needed to be examined here — and flags the sample with a yellow badge. Jacob had already exported and adjusted the data to cover all sessions, so the ranking that follows is accurate to 100% of them.

The most-read articles across the entire site, regardless of age, are topped by Flexbox, Grid, and SVG material, followed by full-page background images, the shapes of CSS, media queries for standard devices, SVG color changes on hover, the CSS triangle, scaling SVG, and @font-face. No Almanac page makes the top 10, but the next twenty or so entries are heavily drawn from it; the Almanac overall is about 14.8% of all traffic.

Two content projects stood out: Jay Hoffman's series on web history, with audio adaptations by Jeremy Keith distributed as a podcast, and the site's end-of-year series. WordPress made both straightforward to set up — a category-specific template plus a little custom CSS produced a dedicated landing page for each while keeping the posts in the normal flow of RSS, search, and tags.

Money and the pandemic

Whether COVID-19 contributed to the small traffic gain is unknowable — perhaps more people turned to coding while working from home. What is certain is the revenue side: essentially every sponsor tightened its belt, and advertising plans were reduced or canceled. Roughly speaking, sponsorship revenue is down 25%, which would be devastating if not for the deliberate effort to avoid keeping too many eggs in one basket.

Store and memberships

A small WooCommerce operation sells posters: physical prints of Lynn Fisher's illustrations for the flexbox and grid guides, drop-shipped on demand by another company. The low effort is appealing, but there are two drawbacks. Customer support falls to the site, and roughly 20% of orders need some form of it. Margins are also slim compared with doing more of the work in-house. MVP Supporter memberships, which required little ongoing work and granted a book, video downloads, and an ad-free experience, no longer exist — everything is free now.

By loose math, eCommerce covered 5% of the lost revenue. It's a long road, but likely worth traveling, since this kind of income is probably less volatile. Web Monetization remains promising in the long term, but today it contributes something like 0.05% of revenue — not yet a meaningful stream.

Distribution beyond the site

Social media delivers 2.2% of traffic (2.3% last year), steady regardless of effort, which is exactly why little effort goes there. About 95% of what is expended goes to Twitter, largely through Jetpack's social automation; the @css account is approaching half a million followers, though what that's worth remains an open question. Hand-written tweets perform best when they happen, but rarely seem worth the time. Most posts are auto-generated on publication, which followers likely expect by now; tweets can be customized before they go out, but usually aren't. The remaining 5% goes to Instagram, mostly for fun, with no plan to extract direct value from it absent a larger product catalog.

Screencasts

This year brought 22 screencasts — far more than in recent years, helped by an improving desk setup and slowly improving editing skills. They appear on the site and on iTunes as a videocast, but most viewing happens on YouTube. Unlike other social platforms, screencasts read as real content: far more time-consuming to make, and hopefully more evergreen than a one-off tweet. Paired sessions with someone from a company, digging into their technology together, remain the favorite format, and the videos now open with an intro by dina Amin.