Shopify to Hydrogen (Headless Shopify): Migration Guide
Shopify to Hydrogen (Headless Shopify): Migration Guide

Key Takeaways
- Migrating to Hydrogen means replacing only the storefront layer, while Shopify checkout, payments, inventory, and admin stay exactly where they are.
- Teams go headless for performance, custom commerce logic, and total design freedom that a Liquid theme can't provide, not to leave Shopify.
- The biggest breakage is theme-injected apps and the loss of the theme editor, so scope app re-integration and the content workflow up front.
- Rankings survive a headless move when you keep URLs stable or ship a complete 1:1 301 redirect map with server-rendered metadata.
- Expect 8 to 14 weeks for a focused build (four to six months for complex catalogs), with app re-integration as the main schedule risk.
Shopify's Liquid storefront is fast to launch and easy to run, but it eventually becomes a ceiling. Once your team wants custom cart logic, sub-second navigation, deeply bespoke product experiences, or a design that doesn't fit any theme, you start fighting the framework instead of shipping. That's the moment most merchants start looking at Hydrogen, Shopify's React-based framework for building headless storefronts on top of the Storefront API.
The important nuance: migrating to Hydrogen is not leaving Shopify. Your products, orders, inventory, checkout, and admin all stay exactly where they are. What changes is the storefront layer, the code that renders pages to shoppers. You swap a Liquid theme for a React application that reads from the Storefront API and deploys to Shopify Oxygen (or another edge host). That distinction shapes everything about the migration, and it's why a headless move can preserve rankings far more cleanly than a full platform replatform.
This guide walks through why teams go headless, what actually breaks in the transition, a concrete step-by-step process, how to hold onto your SEO, and what the project realistically costs.
Why teams move off the standard Shopify theme
The Liquid theme model is deliberately constrained. Those constraints are a feature when you're small and a wall when you're scaling. The most common triggers we see for a Hydrogen migration:
- Performance ceilings. Theme apps inject third-party scripts that tank Core Web Vitals. Hydrogen renders on the server/edge with React Server Components and granular hydration, so you ship far less JavaScript and control exactly what loads.
- Custom commerce logic. Complex bundles, configurators, B2B pricing tiers, subscriptions, or multi-step buying flows are painful in Liquid and natural in React.
- Design freedom. You want a storefront that looks nothing like a theme, with app-like transitions and interactions that Liquid can't express.
- Composable architecture. You're pulling content from a headless CMS (Sanity, Contentful), search from Algolia, and reviews from a dedicated service, and you want one clean React layer stitching it together.
If none of those apply, staying on a well-optimized theme is the right call. Going headless trades operational simplicity for engineering control, and that trade only pays off when you'll actually use the control. Our guide to choosing a JavaScript framework covers how to weigh that decision before you commit.
What changes and what breaks
Because checkout and the admin stay on Shopify, the blast radius is smaller than a true replatform, but it is not zero. Know what you're signing up for:
- Themes and theme apps stop working. Every app that injected code through the theme editor (upsells, popups, review widgets, cookie banners) must be re-integrated via API or replaced. This is the single most underestimated part of the project.
- The theme editor goes away for storefront pages. Merchandisers who edited sections in the Shopify admin now depend on developers or a headless CMS. Plan the content-editing workflow before launch, not after.
- URL structures often shift. Hydrogen gives you full routing control, which means you can (and often accidentally do) change product, collection, and blog paths. Every changed URL needs a redirect.
- Metafields and content modeling become code. Anything a theme surfaced automatically must now be explicitly queried through the Storefront API and rendered in your components.
- Checkout stays native. This is the good news: Shopify Checkout, payments, taxes, and fraud analysis are untouched, so the highest-risk conversion surface never moves.
The step-by-step migration process
A disciplined sequence keeps the project from sprawling. This is the same phased approach we use in our website migration services, adapted for headless commerce.
- 1. Audit and inventory. Crawl the live store and export every URL, template type, metafield, and installed app. Document which apps touch the storefront versus the backend. This inventory becomes your redirect map and your app-replacement checklist.
- 2. Scaffold Hydrogen. Spin up a new Hydrogen project (
npm create @shopify/hydrogen), connect a Storefront API access token, and wire it to your existing store's data. You're now reading real products in a dev environment with zero risk to production. - 3. Rebuild templates. Recreate home, collection, product, cart, search, blog, and policy pages as React routes. Prioritize the templates that drive the most traffic and revenue first. Query only the fields each page needs to keep payloads lean.
- 4. Re-integrate apps and content. Replace theme-injected apps with API integrations or headless-friendly alternatives. Connect your CMS, search, and reviews. This phase usually takes longer than building the pages themselves.
- 5. Build the redirect map. For every URL that changes, define a 301 to its new equivalent. Follow a rigorous 301 redirect map process so nothing gets dropped, and configure the redirects in Hydrogen or Oxygen so they resolve server-side.
- 6. Preserve SEO signals. Port meta titles, descriptions, canonical tags, structured data, and Open Graph. Regenerate
sitemap.xmlandrobots.txt. Confirm every product and collection outputs Product and BreadcrumbList JSON-LD. - 7. Stage, QA, and load-test. Deploy to a preview environment. Validate cart-to-checkout handoff, verify Core Web Vitals against the old store, and run the redirect map through a crawler to catch chains and loops.
- 8. Cut over with checkout intact. Point DNS (or the storefront domain) to Oxygen. Because checkout never moved, in-flight carts and existing orders are unaffected. Monitor closely for the first 72 hours.
How to preserve SEO and rankings
Headless migrations lose rankings for one reason above all others: changed URLs without matching redirects. If you keep your URL structure identical, you eliminate the biggest risk before you write a line of code. When paths must change, a complete 1:1 redirect map is non-negotiable.
Beyond redirects, the fundamentals still apply. Render metadata server-side so crawlers see it without executing JavaScript, keep canonical tags pointing at the right URLs, and make sure paginated collections and faceted filters don't spawn duplicate or thin pages. Hydrogen's server-rendering makes clean, crawlable HTML the default, but you have to be deliberate about it. Walk through our full website migration SEO checklist before and after launch, and keep Google Search Console open during cutover week to catch coverage errors and spikes in crawl anomalies while they're still cheap to fix.
One Hydrogen-specific advantage: because you control every byte of HTML and JavaScript, you can usually improve Core Web Vitals versus the old theme. Faster LCP and lower CLS are ranking-adjacent wins, so a well-executed headless migration often nudges rankings up rather than merely holding them steady.
A realistic note on cost and timeline
Hydrogen is genuine software engineering, so budget accordingly. A focused storefront (home, collections, product, cart, blog, a handful of app integrations) typically runs 8 to 14 weeks. Complex catalogs, B2B pricing, subscriptions, multi-market localization, or heavy custom logic push that to four to six months. The two schedule-killers are almost always app re-integration and the content-editing workflow, so scope both explicitly up front.
At our $80/hr rate, most Hydrogen builds land in the low-to-mid five figures, with larger composable-commerce projects running higher. Factor in ongoing engineering, too: a headless storefront needs developers to ship changes that merchandisers used to make themselves in the theme editor. If deep customization is core to your roadmap, that cost is an investment; if not, a strong theme may serve you better. Teams that pair Hydrogen with custom development and CRM integration tend to get the most out of the headless model, because the same React layer that renders products can also drive personalization and back-office workflows.
The bottom line
Migrating from a Shopify theme to Hydrogen is one of the safer major moves in ecommerce, precisely because checkout, payments, and your entire back office stay on Shopify. You're rebuilding the storefront, not the business. Do the unglamorous work, a complete URL and redirect map, server-rendered metadata, and disciplined app re-integration, and you can go fully headless without surrendering the rankings you've built. Done right, Hydrogen doesn't just preserve your SEO; the performance gains often push it forward. If you want that outcome handled end to end, that's exactly the kind of migration our team runs every week.
Frequently Asked Questions
Does migrating to Hydrogen mean leaving Shopify?
Will a Hydrogen migration hurt my SEO rankings?
What happens to my Shopify apps after going headless?
How long does a Shopify to Hydrogen migration take?
Do merchandisers lose the Shopify theme editor with Hydrogen?
Get a FREE GEO/AEO/SEO Audit
We'll analyze your site's SEO, GEO, AEO & CRO — completely free — and show you exactly how to get found across Google and AI answers.
Don't have a site yet? Get in touch →






