How to Migrate from Shopify to Magento Without Losing SEO
Over the last 10 years, we have scoped many platform migration projects. The most frequently asked, before consideration of cost, timeline, features, etc. are we going to lose our SEO? This is a valid concern. Most ecommerce businesses depend on organic traffic for the majority of their revenue. Losing 20-30% of revenue due to an improper migration could put a business at risk.
This concern can be mitigated. There are known causes for loss of SEO due to migration, and there are known ways to address these issues. There are no mysteries to migration-related SEO losses, and Google search traffic visibility can be preserved with proper planning for SEO during the planning, building, and launching of an SEO-focused migration. A post-launch miracle won’t happen for migrations that place SEO as a secondary, after launch priority. 25-40% of search traffic is frequently the result.
As for the broader picture for businesses migrating from Shopify, please refer to the Outgrown Shopify? page, and for the detailed process regarding migrations from legacy platforms, refer to How to Migrate from Legacy B2B Platforms to Magento. This document aims to address solely the SEO components that apply to all of these.
What actually causes SEO loss during migration
Prior to discussing potential solutions, it is valuable to specify the failure modes. Migration-driven traffic losses may occur due to one or several of the ensuing reasons.
Discipline makes each of these preventable. Discipline is the main topic of this article.
The SEO-preservation toolkit
An organized Shopify-to-Magento migration employs the following toolkit, utilized methodically throughout the entire project.
The starting point is a comprehensive list targeting all the existing URLs present in the Shopify store:
- Product URLs
- Collection / category URLs
- CMS / content page URLs
- Blog post URLs
- Tag and filter URLs (if indexed)
- Customer account URLs ( indexed rarely but still mapped)
- Certain pages (search results, errors, legal)
Every current URL is associated with its new destination on the Magento store. The mapping is typically one-to-one for the products, and for the categories, one-to-one mapping is also typical. However, for tag pages and filtered pages, the mapping may need to be consolidated or restructured. The mapping document is the most relevant artifact of the SEO-protection workstream.
A standard Shopify store has an indexable URL count that ranges from 200 to 5,000. The mapping is an actual job, but it is what protects the asset. The job that is skipped creates the most significant single source of migration SEO damage.
The URL mapping turns into 301 redirect configurations set up at cutover time. In other words:
- All old URLs get a permanent 301 redirect to their new counterpart.
- Redirect chains are avoided, meaning old URL new URL redirects without any middle steps.
- Redirects, whenever possible, are set up through Magento’s more than capable redirect engine instead of outside server level rules.
- Old Shopify-format URL parameters are treated correctly (UTM parameters are kept, internal Shopify parameters are removed).
- The redirect map has been documented so that other agencies or team members in the future can trace the reason behind certain redirects.
Magento can easily manage the volume of typical Shopify-to-Magento migrations as it deploys between 500 to 5000 redirects at the time of launch.
Magento generates XML sitemaps natively. On launch:
- A new sitemap has been created that reflects the new structure of URLs.
- The sitemap has been sent to Google Search Console for the new domain or platform.
- The expired old Shopify sitemap will let the redirects take over the routing work.
- The Search Console tracks the submission of sitemaps to check the progress of the indexation.
The purpose of the sitemap isn’t to show Google where the pages are because Google will understand them through the redirects. The purpose of the sitemap is to speed up the re-indexing process so Google catches up to the new structure more quickly.
As a part of the data migration scripts, title tags, meta descriptions, canonical URLs, and other page-level metadata migrate from Shopify to Magento. This is mechanical work — retaining what is already done instead of having to rewrite things at the time of migration. Rewriting metadata is a separate project, and doing it during migration adds too many variables.
- Product alt text and image titles
- Open Graph tags
- Twitter Card metadata
- Canonical product URLs with several natural variants
The Magento build usually improves on what the Shopify store has for structured data (e.g., product schema, breadcrumb schema, organisation schema, FAQ schema, review schema, business schema) because default Magento allows for more granular structured data than Shopify.
As part of the post-launch verification step, we check the structured data on Google’s Rich Results Test to ensure all data is rendered properly.
For B2B operations, structured data also encompasses:
- Pricing schema with relevant conditional logic (logged in vs logged out).
- Stock availability schema
- Multi-variant product schema
The internal linking architecture of the new Magento store has to maintain the existing pattern and/or improve upon it. In particular:
- The category-to-product linking should be at least as thorough as what is currently on the site.
- Cross-linking between related products preserved.
- Navigation structure that does not push important pages further from the homepage.
- Utility links and footers with links to the same SEO pages.
For bigger websites, this means conducting an internal linking audit while in the build phase instead of considering it as an emergent property of the theme.
All content, including CMS pages, blog content, FAQ pages, and support content, migrates from Shopify to Magento, with redirects mapped to corresponding URLs. If the new platform structure provides improved content organisation (typically Magento’s CMS has superior capability compared to Shopify’s) then such improvement is out of scope for the migration and is a separate project. Migration is about preserving data, optimisation is done afterwards.
Products, content images, alt text, and file names will all be the same. Because image URLs will change with the platform move, the migration will include:
- Accessing image-level 301 redirects (some of which are indexed in Google Images)
- Preservation of alt text and image file names for accessibility and SEO purposes.
- New image formats (WebP, AVIF) will be used for the new platform and will be delivered better than Shopify’s older image delivery.
Before launch:
- Google Search Console’s verified properties are both Shopify and Magento.
- Bing Webmaster Tools verification done on both.
- If there is a change to the domain itself, address change requests will be made.
- The existing export from Search Console has been taken for making a benchmark and for reference purposes.
Post-launch:
- In the first month, the new property is checked every day, then weekly in the second and third month.
- The sitemap submission is confirmed.
- The report on coverage is monitored for any problems related to indexing.
The migration process for SEO preservation
There are six phases to an SEO-preserving migration from Shopify to Magento.
Estimated total project time is about six months for the SME B2B operation. SEO preservation work is integrated into all phases instead of being isolated to a particular one.
What to expect post-launch
Once launched, a well-implemented migration will generate a distinct pattern in the following weeks.
especially in the second week, interpreting normal fluctuations as a total loss can be a temptation. The discipline in this case is to look only at weekly trends, rather than daily fluctuations, and to respond only to those patterns that extend longer than two or three weeks.
In order of decreasing negative impact, the problematic patterns we observe are the following:
- * URL mapping done by sampling. Mapping 80% of URLs and assuming the rest will redirect by pattern usually loses traffic from the 20% who will not be redirected.
- * Redirects set up at the platform level instead of Magento level. Server-level redirects work but are much more difficult to manage as time goes on.
- * Migration metadata left unchanged has the potential to degrade existing optimization. Adding “creative” work to the migration adds more variables and usually leads to further degradation of existing optimization.
- * Ignoring structured data as a concern, treating it as a phase two issue. When rich snippets are lost, immediate CTR losses occur.
- * Launch planned to hit a certain date instead of during a low traffic period. During peak trading times, any SEO issue will magnify the impact.
- * Failure to prepare the Search Console before launch. Finding verification or coverage issues during launch week will be much more costly than fixing these issues before.
- * Not protecting backlink-bearing pages. Backlinks pointing to deprecated URLs require that specific attention be given to them in the redirect map.
In Planning an ERP Integration Without Disrupting Sales, we unpack the broader planning discipline that enables these problems to be avoided. This set of principles also applies to platform migrations.
FAQ
With regards to most ecommerce businesses, what the organic traffic asset has built up over years of content, optimisation and link-building is greater than what the migration project costs. It isn’t nice to have, it is the migration. Everything else (catalogue translation, customer migration, integration rebuild, theme work) aims for the same thing: a new platform that improves customer service and retains the commercial asset the old platform has built. It is the SEO discipline that makes that outcome a hope instead of a default.