All posts
Platform migrations

How to Migrate a Shopify Theme Store to Headless

A phased Shopify to headless migration plan that treats SEO as the riskiest part: URL mapping, sitemaps, tracking, rollback and the checks to run after cutover.

By Mehdi Hassan8 min read

The short answer

A Shopify to headless migration keeps your catalog and checkout in Shopify and rebuilds only the storefront, so the biggest risk is SEO, not data. Inventory every URL and app, build the new front end in staging, keep Shopify's URL patterns, redirect everything else one-to-one, then cut over in phases with the old theme ready as a rollback.

Key takeaways

  • Products, customers and orders don't move; the front end, URLs, tracking and app features do.
  • Keep Shopify's /products/ and /collections/ paths unless you have a strong reason to change them.
  • Your old theme stays in Shopify, which gives you a real rollback plan if launch goes wrong.
  • Rebuild sitemaps, canonicals, structured data and hreflang yourself; the theme no longer does it.
  • Phase the cutover by section or market so problems surface on a small share of traffic.

Part of Headless Shopify: When It's Worth It and When It's Not

What does a Shopify to headless migration actually move?

A Shopify to headless migration moves the storefront, not the store. Products, inventory, customers, orders and checkout stay in Shopify. What you rebuild is everything the theme used to do: page templates, navigation, search, app widgets, tracking, SEO markup, sitemaps and redirects.

That makes it different from a platform migration such as WooCommerce to Shopify, where data import is the hard part. Here the data is safe, and the risk sits in the parts that are easy to forget because the theme handled them silently. If you're still deciding whether to go headless at all, read our hub on when headless Shopify is worth it first, and pick your framework with our comparison of Shopify Hydrogen vs Next.js.

Why is SEO the riskiest part of a Shopify headless migration?

SEO is the riskiest part because a theme store gives you sitemaps, canonicals, structured data, redirects and server-rendered HTML for free, and a headless build gives you none of them until someone builds each one. Revenue from organic search can drop quietly if even one of these is missing at launch.

What the theme did for you

What you must rebuild

What goes wrong if you don't

Generated sitemap.xml

A sitemap from the Storefront API and your CMS

New pages are discovered slowly

Canonical tags on product variants and collection paths

Canonicals to the main product URL

Duplicate URLs compete with each other

Product structured data in most themes

Product, offer and breadcrumb schema

Rich results disappear

URL redirects from Shopify admin

Redirect handling in your front end

Old links return 404s

Server-rendered pages

Server rendering for every indexable page

Content invisible to some crawlers

Market and language alternates

Hreflang tags for each market

Wrong country versions rank

The pattern to avoid is a storefront that renders product content in the browser after load. Both Hydrogen and Next.js render on the server, but custom components can still hide content behind client-side fetching. Our guide on fixing a marketing site built like a React app covers why that matters.

How do you migrate a Shopify theme store to headless, step by step?

You migrate in seven steps: inventory, decide the content model, build in staging, map URLs, rebuild SEO and tracking, test against the live store, then cut over in phases. The order matters, because the inventory sets the scope for everything after it.

  1. Inventory the store

    Crawl the live store and export every URL. List every template, every app that adds something to the front end, every tracking script and every theme setting marketing uses. This list is the scope.

  2. Decide the content model

    Choose where non-product content lives: Shopify metaobjects or a headless CMS. Model it fresh rather than copying theme sections one to one; our guide to content modeling for CMS migrations explains how.

  3. Build the storefront in staging

    Rebuild templates, connect cart and checkout, and rewire each app through its API or a custom component. Keep staging blocked from search engines.

  4. Map every URL

    Keep Shopify's paths for products, collections, pages and blogs wherever you can. Anything that changes gets a one-to-one 301 in a single redirect sheet, including the redirects already stored in Shopify admin.

  5. Rebuild SEO and tracking

    Add sitemaps, canonicals, structured data, meta tags, hreflang and robots rules. Reconnect analytics and ad pixels, then confirm checkout events still match what you see in Shopify.

  6. Test against the live store

    Crawl staging and the live store side by side. Compare titles, canonicals, status codes, word counts and schema on your top pages, and run test orders end to end.

  7. Cut over in phases

    Launch a section or a market first, watch rankings, revenue and errors, then move the rest. Keep the theme ready so you can roll back.

How should you phase the cutover?

Phase the cutover so the first launch carries a small share of revenue and the riskiest pages go last. There are three common approaches, and you can combine them.

  • By section. Launch content pages, guides or the blog on the new front end first, routed under your main domain, while product and collection pages stay on the theme. You test SEO, CMS and tracking on lower-stakes pages.
  • By market. If you sell in several countries, launch one smaller market first. You get real orders and real search data without risking your main market.
  • Full switch with rollback. For smaller stores, a single cutover can be simpler. Do it on a quiet day, freeze content changes beforehand, and keep the old theme published-ready.

The rollback is a real advantage of headless Shopify. Your theme still exists in Shopify, so if something serious breaks, pointing the domain back at the theme restores the old store while you fix the new one. Agree in advance who decides on a rollback and what would trigger it.

Hypothetical example: a section-first cutover

For example, suppose a DTC brand with a large journal and a mid-sized catalog goes headless on Next.js with a headless CMS. Phase one moves the journal and brand pages to the new front end under the main domain, with product links still pointing at the theme. The team checks rankings, preview, CMS workflows and analytics for a few weeks.

Phase two moves collection and product pages, cart and account. Because the content side is already proven, phase two focuses on commerce: app widgets, checkout events and product schema. The theme stays ready as a rollback until the numbers are stable.

What should you check after launch?

After launch, check crawlability, redirects, revenue tracking and search performance daily for the first weeks, then weekly. Most problems show up in the first days if you know where to look.

  1. Crawl the old URL list and confirm every URL returns a 200 or a single 301 to a live page.
  2. Submit the new sitemap in Search Console and watch indexing and page experience reports.
  3. Compare orders, revenue and conversion rate by channel with the period before launch.
  4. Check that ad platforms and analytics receive purchase events once, not twice or never.
  5. Spot-check product pages for structured data, canonicals and correct prices per market.
  6. Review site search, filters and app widgets on mobile, where layout bugs hide.

If you're moving content from another CMS at the same time, the same discipline applies to those URLs; our guide to going headless from WordPress with Sanity or Payload covers the content side.

Who should run the storefront after migration?

The storefront should be run by a team that will keep shipping and maintaining it, because a headless front end starts aging the day it launches. Framework updates, app API changes, new campaigns and fixes are ongoing work, not a launch task.

That's why the build quote is only half of the decision. Ask who handles upgrades, who fixes broken integrations and how marketing ships new pages. Our headless Shopify cost guide covers the ongoing budget, and our explainer on headless CMS for non-developers helps marketing teams understand what they'll be editing.

Should you migrate to headless or improve the theme?

Migrate to headless when you've hit a limit a theme can't solve and you have a team to own the result; improve the theme when the problem is design, copy or speed. Many stores that ask about headless get more from a stronger theme and custom landing pages, at a fraction of the cost.

If you're unsure, our honest verdict on Shopify native vs headless for DTC brands works through the decision. The answer doesn't have to be permanent either way, but a headless migration is a big enough project that it's worth being sure before you start.

Frequently asked questions

Do Shopify URL redirects still work after going headless?
Not automatically. Redirects stored in Shopify admin were applied by Shopify's theme storefront, so a headless front end has to handle them itself. Hydrogen includes a utility that checks Shopify's stored redirects when a page isn't found. In Next.js, you implement redirects in config or middleware, or query Shopify's redirects. Either way, test every old URL after launch.
Can you keep the same domain when going headless?
Yes, and you should. Your headless storefront takes over the main domain, while Shopify's checkout runs on its own domain or a subdomain you configure. Keeping the domain and the main URL paths unchanged is the single biggest thing you can do to protect rankings. Plan the DNS change carefully and lower TTLs beforehand so a rollback is quick.
Will my Shopify apps work on a headless store?
Some will and some won't. Apps that work in the back office, such as fulfillment, inventory or email, usually keep working. Apps that inject widgets into the theme, such as reviews, bundles, upsells or loyalty, need an API or a headless SDK, and some don't offer one. Audit every app before scoping, because rebuilding app features is often the largest hidden cost.
Does going headless reset my search rankings?
It shouldn't, if you keep URLs, content and metadata consistent and redirect anything that changes one-to-one. Rankings can fluctuate briefly after any large change while search engines recrawl. Big drops usually come from missing redirects, client-side rendering, lost structured data or pages blocked from indexing. Compare old and new pages before launch to catch these early.
Can marketing keep editing pages during the migration?
It's best to freeze content changes on the old store for a short period around cutover, otherwise edits made on the theme have to be repeated in the new front end. Before the freeze, marketing can work in the new CMS on staging, which doubles as training. Agree on the freeze dates early so campaigns aren't planned for launch week.

· CEO & Design Director

Copywriter, designer and developer, and founder of Designify Studio. Over five years, 60+ projects across 14+ industries, for startups that have raised $300M+.

Want this done for you? Monthly retainer, $6,000.

Your ongoing design and development team, for products that keep shipping. $6,000, per month, flat fee. Book a free 30-minute call to see if it fits.

Schedule Call