Online is now one in six retail dollars
Before deciding how to build a store, it helps to remember how much is at stake. According to the U.S. Census Bureau, retail e-commerce sales in the United States reached an estimated $1,233.7 billion in 2025, up 5.4 percent from 2024. E-commerce accounted for 16.4 percent of total retail sales for the year, up from 16.1 percent in 2024. In the fourth quarter of 2025 alone, seasonally adjusted online sales were estimated at $316.1 billion, or 16.6 percent of all retail.
Those numbers have a simple implication. For most retailers, the website and app are no longer a side channel. They are one of the largest stores the company runs, open every hour of every day, and increasingly the first place a customer meets the brand even when they eventually buy in person. The technology behind that store deserves the same care as the location, layout and staffing of a flagship.
Headless commerce is one of the most discussed ways to build that store. It is also one of the most misunderstood. This article explains what headless actually means, when it pays off, when it does not and what we learned replatforming StyleHouse.
What headless actually means
A traditional e-commerce platform bundles two things together: the commerce engine that manages products, prices, carts, checkout and orders, and the storefront that customers see. You choose a theme, customize it within the platform’s rules and the platform renders every page.
A headless architecture separates the two. The commerce engine still handles products, carts and orders, but it exposes them through APIs. The storefront becomes its own application, often built with a modern framework such as Next.js, that calls those APIs and renders pages however the brand wants. The head, meaning the presentation layer, is detached from the body.
That separation unlocks a lot of freedom. You can design any layout, load pages as fast as the web allows, combine data from several systems on one page and reuse the same commerce engine across a website, an app, in-store screens and marketplaces. It also hands you responsibilities the platform used to carry: hosting, build pipelines, caching, monitoring, search, previews for editors and keeping integrations working when any one system changes.
Headless is not one product. It is an architectural choice, and like every architectural choice it trades simplicity for control. The question is never whether headless is better in general. It is whether the control is worth the cost for your business right now.
“Headless is a power tool. In the wrong hands, it just makes a bigger mess faster.”
The signals you are ready
In our experience, headless pays off when the theme is genuinely holding the business back, not when the site simply looks dated. A fresh theme can fix a dated look for a fraction of the cost. Headless is worth considering when the constraints are structural.
- Page speed is measurably costing you conversions and the theme cannot get faster
- You sell across several brands, regions, languages or currencies from one catalogue
- Content and commerce need to blend in ways the theme editor cannot support
- You need the same product data in a site, an app, kiosks and marketplaces
- Your team has front-end engineers who are fighting the platform rather than building
Speed is the most common reason, and the best one
Of all the reasons clients come to us for headless, speed is the most common and usually the most defensible. Theme-based stores accumulate weight over time: apps that inject scripts, tracking pixels, chat widgets, review carousels and personalization tools. Each one seems small. Together they can add seconds to every page.
A headless storefront gives you full control over what loads and when. Pages can be rendered on the server or at the edge, cached close to the customer and shipped with only the JavaScript they need. Images can be sized and compressed per device. Third-party scripts can be deferred, sandboxed or removed. The result, when done well, is a store that feels instant on a mid-range phone over a mobile connection, which is how a large share of customers actually shop.
Speed also compounds. Faster pages mean more product views per session, which mean more chances to convert. They also help search visibility, since page experience is part of how search engines evaluate sites. We set performance budgets at the start of every headless build and check them on every change, because performance that is not measured continuously erodes.
When to stay put
Headless is a power tool, and power tools are dangerous in the wrong hands. There are plenty of businesses for which a well-built theme on a mature platform is the better choice, and we tell clients so even when it means a smaller project for us.
If you have a modest catalogue, sell in one market and currency, have no in-house front-end engineers and are not hitting the limits of your theme, headless will add cost and complexity without much return. You will pay for hosting, a build pipeline, a content management system and the engineering time to keep everything in sync. Every new marketing tool that used to be a one-click app becomes an integration project.
There is also an organizational cost. Headless stores need someone who owns the storefront as a product. If nobody in the business wants that job, the store will drift, integrations will break and the advantages will fade. In those cases, investing in a faster theme, fewer apps and better content will usually deliver more.
The real costs, itemized
Most headless proposals undercount the ongoing costs. When we scope a headless build, we list them explicitly so the client can compare total cost of ownership rather than just build price.
Hosting for the storefront, typically on a platform optimized for edge rendering, costs more than the hosting bundled into a theme. A headless content management system, so marketers can edit pages without engineers, is usually a separate subscription. Search, if the platform’s built-in search is not enough, is another. Monitoring, error tracking and uptime alerting are essential and add a little more.
The largest cost is people. Someone has to maintain the storefront, update dependencies, adapt to API changes from the commerce platform and build new features. For a mid-sized retailer, that is often one to two engineers on an ongoing basis, either in-house or through a support agreement. That cost is worth it when the store is a major revenue channel and speed or flexibility are measurably holding it back. It is not worth it when they are not.
- Storefront hosting and edge delivery
- Headless CMS for marketing and content
- Search and merchandising tools
- Monitoring, error tracking and uptime
- Ongoing engineering to maintain and extend
How we approach a headless replatform
When a client is a good fit, we approach headless the same way we approach any large build: carefully, in slices and with the business running the whole time.
Discovery starts with data. We look at analytics to find where customers drop off, measure real-world page speed on the devices customers use, review every installed app and script and interview the merchandising, marketing and customer service teams about what slows them down. We also map every integration: ERP, inventory, reviews, loyalty, email, shipping and returns.
Strategy produces a sequenced plan. We usually start with the pages that matter most for revenue and are slowest today, often product and collection pages, and move them to the new storefront first while the rest of the site continues to run on the existing theme. Checkout often stays on the platform, since modern commerce platforms offer fast, secure, well-tested checkouts that are hard to beat. Each slice goes live behind a feature flag, is measured against the old version and is rolled out once it proves itself.
This incremental approach avoids the big-bang relaunch, which is where most replatforms go wrong. It also lets the client see results within weeks rather than waiting months for a single launch day.
What it did for StyleHouse
StyleHouse came to us with a store built on a heavily customized legacy platform. Pages were slow, especially on mobile. The merchandising team needed engineering help for simple changes. Every new marketing tool made the site heavier. And the company was planning to expand into new regions, which the old setup could not support cleanly.
We moved StyleHouse to a headless storefront built with Next.js on Shopify Plus. Product and collection pages moved first, rendered at the edge with aggressive caching and carefully budgeted JavaScript. Editorial content moved into a headless CMS so marketers could build landing pages themselves. We removed or replaced more than half of the third-party scripts that had accumulated over the years, keeping only those with clear value.
The replatform took four months, with no freeze on new features during the build. Pages now load in under a second for most customers, daily active users reached around 50,000 and conversion rose 45 percent compared with the old store. Just as important, the merchandising team now ships campaigns without waiting on engineers, and new regions are a configuration change rather than a new site.
Composable, not complicated
Headless is often sold alongside a broader idea called composable commerce: assembling a store from best-of-breed services for search, content, reviews, loyalty and more, rather than using one platform for everything. Composability can be powerful, but it is easy to overdo.
Every additional service is another contract, another integration, another set of credentials and another thing that can fail at checkout on Black Friday. Our rule of thumb is to start with the commerce platform’s built-in capabilities wherever they are good enough and add specialized services only where they clearly beat the default on a metric that matters. Composable should mean you can swap parts when you need to, not that you must assemble everything from parts on day one.
Questions to ask before you decide
If you are weighing a headless move, these questions will help you decide whether it is the right call and what the scope should be. We walk through them with every client in Discovery.
- Which pages cost us the most revenue when they are slow, and how slow are they today?
- Which constraints come from the theme, and which come from our own processes?
- Who will own the storefront as a product after launch?
- What is the full annual cost of ownership, not just the build price?
- Can we move in slices, keeping checkout and the rest of the site running?
Mobile is where the store is won or lost
For most retailers we work with, the majority of sessions now come from phones. That shifts the priorities of a storefront in ways that are easy to underestimate when the site is reviewed on a large monitor in an office.
On a phone, every extra script competes for a slower processor. Every large image competes for a connection that may be shared, congested or patchy. Layouts that look elegant on desktop can bury the add-to-cart button below the fold. Menus that work with a mouse become frustrating with a thumb. The Federal Communications Commission’s broadband data is a reminder that many customers, particularly in rural areas, do not have consistently fast connections at home or on mobile, so a store that only feels fast on office Wi-Fi is not actually fast.
Headless gives designers and engineers the control to build a mobile experience on its own terms: lighter pages, simpler navigation, faster search and checkout flows designed for one-handed use. That control is one of the strongest arguments for headless, but only if the team uses it. A headless store that copies the desktop experience onto a phone gains little.
Content, merchandising and the people who run the store
A store is not only software. It is run every day by merchandisers, marketers and customer service teams who need to change things quickly: launch a collection, build a landing page for a campaign, update a banner, fix a product description. In a theme-based store, many of those tasks are built into the platform’s editor. In a headless store, they depend on how well the content tools are set up.
We spend real time on this in every headless build. We model content so that editors can build pages from approved components without breaking layouts or performance budgets. We set up live previews so changes can be checked before they go live. We define roles and approval steps that match how the team works. And we train editors on the new tools before launch, not after.
Getting this right is what separates headless stores that empower their teams from those that create a new dependency on engineers. The StyleHouse merchandising team now ships campaigns on their own schedule, and that freedom has been as valuable to the business as the speed gains.
Search, personalization and data
Customers who search usually know what they want, which makes search one of the highest-converting features on any store. It is also one of the first things to suffer when a catalogue grows. A headless architecture makes it easier to plug in a dedicated search service with typo tolerance, synonyms, filtering and merchandising rules, and to render results quickly.
Personalization follows a similar pattern. Recommending related products, remembering recent views and tailoring content by region or segment can lift engagement, but each feature adds data flows and complexity. We recommend starting with simple, high-value personalization, such as recently viewed items and complementary products, measuring the impact and expanding only where the data supports it.
Behind both sits data quality. Clean product data, with consistent attributes, accurate inventory and good imagery, matters more than any algorithm. A headless project is often the right moment to tidy the catalogue, because every inconsistency becomes visible when the storefront is rebuilt.
Measuring whether it worked
A replatform should be judged on business outcomes, not on technology. Before we start, we agree on a small set of metrics with the client and measure baselines. Typical choices are conversion rate by device, revenue per session, real-user page speed on key templates, search usage and success rate, and the time it takes the team to launch a campaign.
Because we move in slices, we can compare old and new versions of the same pages side by side during the transition. That gives a clean read on impact, rather than a before-and-after comparison muddied by seasonality and marketing changes. It also gives the business confidence to keep investing, because each slice comes with evidence.
Migration risks and how to manage them
Every replatform carries risk, and headless projects have a few specific ones worth planning for. The first is search rankings. Changing URLs, page structure or rendering can affect how search engines see a store. We preserve URLs wherever possible, set up permanent redirects for any that change, keep structured product data intact and monitor search performance closely after each slice goes live.
The second is integrations. A store typically connects to inventory, fulfillment, payments, tax, reviews, loyalty, email and analytics. Each of those must work correctly from the new storefront, and each has its own quirks. We test integrations end to end in staging with realistic data, and we keep the existing store running until the new one has handled real orders reliably.
The third is peak season. We never move critical pages in the weeks before a major sales event. Replatform schedules are planned around the retail calendar, with a code freeze before peak and extra monitoring during it. A headless store that is fast in February but fails on Black Friday has not succeeded.
Finally, there is organizational risk. A new storefront changes how merchandisers, marketers and customer service teams work. Training, clear documentation and a period of close support after launch are as important as any technical step. The best measure of a successful replatform is not the launch day. It is whether the team is shipping faster and with more confidence three months later.
- Preserve URLs and set permanent redirects
- Test every integration end to end
- Avoid moving critical pages before peak season
- Train the people who run the store
A decision framework in one page
If you need to make the call quickly, here is the framework we use with clients, compressed onto a single page. Start with revenue concentration: how much of your online revenue flows through product, collection and search pages, and how slow are those pages for real customers on phones? If the slowest high-revenue templates are already fast, the case for headless rests on flexibility rather than speed, and you should be able to name the specific things the theme prevents you from doing.
Next, look at complexity. One brand, one market and one currency rarely justify headless. Several brands, regions or channels sharing one catalogue often do, because a single commerce engine feeding several storefronts can remove a great deal of duplicated work.
Then look at ownership. Do you have, or are you willing to fund, people who will treat the storefront as a product after launch? If the answer is no, a headless store will slowly lose its advantages. If the answer is yes, headless gives that team far more room to improve the store every month.
Finally, look at timing. A replatform is best started well before peak season, with a plan to move in slices and measure each one. If all four checks point the same way, headless is likely worth it. If they disagree, a focused optimization of your current store is usually the better first step, and it will tell you a lot about whether a bigger move is needed later.
The bottom line
With roughly one in six U.S. retail dollars now spent online, the storefront is too important to leave to defaults. For some retailers, that means a headless architecture that gives full control over speed, design and channels. For many others, it means a better theme, fewer apps and sharper content.
The right choice depends on where the constraints really are, who will own the result and whether the gains justify the ongoing costs. Headless is worth it when the platform is the bottleneck. When it is not, the best replatform is often the one you do not do.
Written by Robert PriceCEO of Codnit. Has shipped software for startups and enterprises across fintech, healthcare and retail. 