Using Shopify as a Headless CMS for a Marketing Site
How to use Shopify as a headless CMS: keep checkout native, build marketing pages headless. When this hybrid wins for content-led commerce brands.
You should use Shopify as a headless CMS for your marketing pages when your store sells well but your content is throttled by the theme. That is the short version. Keep the checkout, cart, and product pages on native Shopify, because they already work and the checkout is the part you least want to rebuild. Then move the homepage, landing pages, blog, guides, and campaign microsites to a headless front end built in Next.js or Astro, pulling product data from the Shopify Storefront API and pulling editorial from a proper CMS. That split is what most people miss.
If your catalogue is small, your content output is light, and the Online Store 2.0 theme editor is keeping up with your marketing team, do not do this. A headless marketing layer is a real, ongoing commitment, not a one-off upgrade. The hybrid pattern earns its keep for content-led commerce brands that publish constantly and feel the Liquid theme fighting them every time they want a new landing page. For everyone else it is cost without payoff. The rest of this article is about telling those two situations apart, and about what the build actually involves once you decide.
What "headless marketing, native checkout" actually means
The phrase "headless Shopify" usually describes ripping the whole storefront out, rebuilding product pages, cart, and checkout in a custom front end, and running Shopify purely as a backend. That is a large project, it is mostly relevant to Shopify Plus brands, and it is not what I am recommending here.
The reverse pattern is narrower and far more sensible for an SMB. You leave the transactional half of the store exactly where it is. Product detail pages, collection pages, the cart, the account area, and the checkout all stay on native Shopify, served by your existing theme. Those pages convert, they are maintained by Shopify, and the checkout in particular is locked down for good reasons. You do not want to own it.
What you make headless is the content half. The marketing site becomes a separate front end. It renders your homepage, your editorial blog, your SEO guides, your comparison pages, and any campaign landing pages, and it does so with a modern component system instead of Liquid sections. When that front end needs to show a product, a price, or a buy button, it asks Shopify for that data through an API. When it needs to show an article or a long-form guide, it asks a content management system. Two sources, one site, and the visitor never sees the seam.
So "Shopify as a headless CMS" is slightly loose language. Shopify is acting as your commerce data layer. Whether Shopify is also your editorial CMS depends on a choice I will come back to.
How the pieces connect
The connective tissue is the Shopify Storefront API. It is a GraphQL API, it is built for exactly this, and it is the same API that Shopify's own Hydrogen framework uses. Your marketing front end authenticates with a storefront access token, then queries for products, variants, collections, pricing, and availability. Because the price and stock data is live, a landing page can show an accurate price and a working buy button even though the page itself is not a Shopify page.
The buy button is the part people worry about, and it is simpler than expected. When a visitor clicks add to cart on your headless marketing page, the front end sends a cart mutation to the Storefront API. Shopify returns a checkout URL. You redirect the visitor to that URL, and they land in the native Shopify checkout. The agency building the marketing site never touches payment data, never carries PCI scope on the checkout, and never has to rebuild the one flow that absolutely must not break. The hand-off is clean and fully supported.
Then there is editorial content, and this is where I see real confusion. People search for the "Shopify content API" expecting a dedicated blog and pages product. There is no separate product by that name today. What exists is this: the Storefront API can return Shopify blog articles, pages, and metaobjects. Metaobjects are custom structured content types you define inside Shopify, introduced in recent years, and they are genuinely useful. So you have two honest options.
The first option is to keep everything inside Shopify. Use Shopify pages, blogs, and metaobjects as your content store, and have the headless front end read it all through the Storefront API. One system, one bill, one login. This is the right call when your editorial needs are modest and your team is comfortable authoring in the Shopify admin.
The second option is to add a real CMS, something like Sanity, Contentful, or Hygraph, for the editorial content, while Shopify stays purely commerce. You do this when your content team wants a proper authoring experience, structured content modelling beyond what metaobjects comfortably handle, draft previews, and editorial workflow. It is more capable and it is another subscription and another system to maintain. Pick based on how content-heavy you genuinely are, not on how content-heavy you would like to imagine you are.
When the hybrid wins for content-led commerce brands
This pattern is built for a specific kind of brand, and the clearer you are about whether you are that brand, the better this decision goes.
It wins when content is a real acquisition channel. If a meaningful share of your traffic and revenue comes from guides, recipes, lookbooks, buying advice, or programmatic SEO pages that funnel readers toward products, then your content layer is doing commercial work. Squeezing that work through Liquid templates and the theme editor slows your marketing team down and usually hurts Core Web Vitals on exactly the pages search engines judge you on. A headless front end with a real component library lets the team ship new page types quickly and lets you control performance properly.
It wins when the marketing team is blocked. A common signal is that every new landing page becomes a developer ticket, designers cannot get the layouts they want, and campaigns ship late because the theme cannot bend the way the brief needs. Moving the marketing layer headless gives the team a flexible system without forcing a checkout rebuild nobody asked for.
It wins when you ship campaigns constantly. If you launch several landing pages or microsites a quarter, the marginal cost of each one drops sharply once a headless system with reusable components is in place. The first build is the expensive part. The tenth landing page is cheap.
And it wins when you want a modern marketing site but have no reason to disturb the store. The checkout converts, the product pages are fine, the order management works. The pain is entirely in content. The hybrid lets you fix the painful half and leave the working half completely alone. That containment is the whole point.
When it is the wrong call
I would rather lose this project than sell a brand a system it will resent in a year, so here is the honest other side.
Do not do this if your content output is light. If you publish occasionally and your theme handles your few content pages without complaint, a headless marketing layer is a permanent second system solving a problem you do not have. Online Store 2.0 sections are genuinely good now. Use them.
Do not do this if you have no development capacity, in-house or retained. A headless front end is a real codebase. It needs framework updates, dependency maintenance, and someone who can fix it when a deploy fails. If nobody owns that, the site will rot, and a rotting marketing site is worse than a slightly limited Liquid one.
Do not do this if your team ships through the theme editor every day and likes it. Some marketing teams are fast and happy in Shopify's native tooling. Taking that away to give them a CMS they did not ask for is a downgrade dressed as an upgrade.
And be careful about apps. A lot of Shopify apps work by injecting into the Liquid theme. Reviews widgets, upsell tools, popups, analytics snippets. Your headless marketing pages are not running the Liquid theme, so those app embeds do not automatically appear there. Anything you rely on has to be reintegrated deliberately, often through the app's own API or script. If your marketing pages depend heavily on theme-injected apps, factor that work in before you commit.
The cost and maintenance you are signing up for
This is the section most agency content skips, so I will be direct about it.
You are running two systems instead of one. Two deploy pipelines, two sets of dependencies to keep current, and two surfaces where something can break. The headless front end needs hosting, usually on a platform like Vercel or Netlify, which at SMB traffic is a modest bill but a real one. If you choose a third-party CMS rather than staying inside Shopify metaobjects, that is another subscription and another login to manage.
Someone has to own framework upgrades. Next.js ships major versions, and a marketing site left two majors behind becomes harder and riskier to update with every month that passes. This is ongoing work, not a launch task, and it should sit in a maintenance arrangement so it actually happens.
The part teams underestimate most is SEO migration. When marketing pages move off the Shopify domain structure onto a headless front end, you have to handle redirects from old URLs, keep canonical tags correct, and stitch sitemaps so the marketing pages and the storefront present as one coherent site. You also have to decide your URL architecture. Serving the marketing pages and the store on the same domain through path routing is better for SEO and harder to wire. Putting the marketing site on a subdomain is easier to build and slightly worse for SEO consolidation. That decision should be made deliberately, early, with eyes open, not discovered after launch when rankings dip.
None of this is a reason to avoid the hybrid. It is a reason to scope it honestly and to keep someone on maintenance afterward.
How WitsCode builds the hybrid
This is the kind of project we do at WitsCode constantly. We are the last-mile developer for vibe coders, which in practice means a brand often arrives with a marketing site they or an AI tool have already started in Next.js or Astro, and they need it taken to production properly and connected to their real Shopify store.
Our custom build starts with scope, because the most valuable decision is which pages stay native and which go headless. We map that with you so you are not rebuilding things that already work. Then we wire the Storefront API integration so marketing pages show live pricing and a working cart, and we build the cart hand-off to the native Shopify checkout so the transactional flow stays untouched and secure. We set up the editorial layer, whether that is Shopify metaobjects or a dedicated CMS, with a preview workflow your marketers can actually use. And we handle the unglamorous parts that decide whether the project succeeds: the redirects, the canonical and sitemap stitching, the Core Web Vitals work, the security review, and a maintenance arrangement so the framework never falls behind.
If you have a content-led Shopify brand and your theme is throttling your marketing team, that is a sweet spot for this pattern. Tell us what you sell and how much you publish, and we will tell you honestly whether the hybrid is worth it for you, and what it would cost to build right.
Get weekly field notes.
Practical writing on shipping products, straight to your inbox. No spam.
Need help with this?
WordPress Development
We design and build web apps, MVPs, and SaaS products. Talk to us about what you are working on.
Talk to usWant to discuss shopify niche topics (gap-fill) for your business?
Start a project and we'll talk through where you are, what's working, and the highest-leverage moves for the next 90 days.