Getting Magento 2 SEO right is both more important and more complex than many store owners realise. Magento 2's architecture creates unique SEO challenges โ from duplicate content generated by layered navigation to large JavaScript bundles that slow down Core Web Vitals scores. This guide covers everything you need to know to rank your Magento 2 store on Google UK in 2025.
1. Switch to Hyva Theme (The Biggest Single SEO Win)
Before we discuss any other SEO optimisation, let's address the elephant in the room: if you're on Magento 2 Luma theme, your Core Web Vitals scores are almost certainly failing. Google introduced Core Web Vitals as a ranking factor in 2021, and Luma-based stores typically score 30โ50 on Lighthouse mobile โ well below Google's "Good" threshold.
Migrating to Hyva Theme typically improves mobile Lighthouse scores from 30โ50 to 90โ100. We've seen UK merchants gain significant organic ranking improvements within 4โ8 weeks of a Hyva launch simply because their Core Web Vitals moved from "Poor" to "Good". The three metrics to focus on are:
- LCP (Largest Contentful Paint): Aim for under 2.5 seconds. Hyva typically achieves 1โ1.8s vs Luma's 4โ8s.
- INP (Interaction to Next Paint): Aim for under 200ms. Alpine.js has negligible blocking time vs KnockoutJS.
- CLS (Cumulative Layout Shift): Aim for under 0.1. Hyva's cleaner HTML structure eliminates most layout shifts.
See our Hyva Theme development service for more information.
2. Fix Duplicate Content from Layered Navigation
Magento 2's layered navigation (product filters) generates potentially thousands of unique URLs for every filter combination โ colour, size, price range, brand. Without proper handling, this creates massive duplicate content issues that dilute your SEO equity.
Solutions:
- Configure Magento to use canonical tags on filtered pages pointing back to the base category URL
- Use the
robots noindexdirective for parameter-based filter URLs that shouldn't be indexed - Configure your
robots.txtto disallow crawling of heavily parameterised URLs - Consider an SEO extension that provides granular control over which filtered URLs are indexable
3. URL Structure Best Practices
Magento 2 gives you control over URL structures. UK best practices:
- Use clean, keyword-rich category and product URLs:
/mens-shoes/running/not/catalog/category/view/id/42/ - Configure Magento to use the category path in product URLs:
/mens-shoes/running/product-name.html - Avoid double slashes, query string parameters, or session IDs in indexable URLs
- Set up 301 redirects for any historical URLs that have changed
4. Structured Data (Schema.org) Implementation
Structured data markup helps Google understand your content and can unlock rich results (star ratings, price, availability) in UK search results. Critical schema types for Magento 2 stores:
- Product: Name, description, SKU, price, availability, aggregate rating
- BreadcrumbList: Navigation path for breadcrumbs in search results
- Organisation: Business name, URL, contact information
- Review/AggregateRating: If you have product reviews, mark them up for star ratings in SERPs
- LocalBusiness: If you have a physical UK location
Hyva Theme makes implementing clean structured data straightforward since templates are simple PHP rather than complex KnockoutJS bindings.
5. Magento 2 XML Sitemap Configuration
A well-configured XML sitemap helps Google discover and index all your product and category pages efficiently:
- Enable Magento 2's XML sitemap (Admin โ Marketing โ SEO & Search โ Site Map)
- Include products, categories, and CMS pages
- Set appropriate change frequency and priority values
- Submit the sitemap to Google Search Console
- For large catalogues (50k+ products), consider splitting into multiple sitemap files
6. Page Speed Beyond Hyva
Even with Hyva Theme, there are additional speed optimisations that improve SEO:
- Enable WebP image format for Magento 2.4.x+ stores
- Configure Varnish full-page cache for sub-100ms cached page responses
- Set up a CDN (Cloudflare or Fastly) to serve assets from UK-based edge locations
- Implement lazy loading for below-fold images
7. International SEO (Hreflang) for UK Merchants
If you run separate Magento 2 stores for UK and Ireland (or other markets), proper hreflang implementation is essential. Without it, Google may show the wrong version in each country's search results โ or penalise you for duplicate content.
For UK + Ireland merchants, implement hreflang tags specifying en-GB and en-IE language/region combinations. For Scandinavian stores add no, sv, da as appropriate.
8. Magento 2-Specific Technical SEO Issues to Audit
Common SEO issues we find in Magento 2 technical audits:
- Pagination handled incorrectly (missing canonical, rel="next/prev" removed in Google's guidelines)
- 404 errors from deleted products/categories without redirects
- Category pages with thin content (no descriptive text above/below the product grid)
- Missing alt text on product images
- Identical meta descriptions across many product pages
- Slow TTFB (Time to First Byte) from unoptimised server configuration
Need a professional Magento 2 SEO audit for your UK store? Our team at Magento Services offers comprehensive technical SEO audits. Get in touch or see our Magento 2 SEO service page.
Want Better Google Rankings?
Get a free Magento 2 SEO audit. We'll identify exactly what's holding your store back in search results.
Free SEO Audit โ SEO Services