Ecommerce SEO: how to optimise an online store step by step

Ecommerce SEO: how to optimise an online store step by step

Peter Gáborík
Published
13 min read
ecommerce SEOonline storefaceted navigation
Share this article:Add on Google

Ecommerce SEO is the work of optimising an online store so that its category and product pages appear in Google for the searches people use to find what you sell. It differs from SEO for an ordinary website mainly in scale: an online store has hundreds or thousands of pages, plus filters, variants and pagination that easily create duplicates and waste crawling. Below is ecommerce SEO step by step, from category structure to out-of-stock products.

In short:

  • Categories target broad searches ("men's running shoes"), product pages target specific models.
  • Filters, sorting and pagination need clear rules, otherwise you end up with thousands of near-identical URLs.
  • Turn filter combinations that people actually search for into dedicated landing pages with their own copy.
  • Every product needs its own description, not text copied from the manufacturer.
  • Product and Offer structured data add price, availability and ratings to search results.
  • Don't delete out-of-stock products automatically: what happens to the page depends on whether the item comes back.

How ecommerce SEO differs from SEO for an ordinary website

The basics are the same as for any site (technical health, content, links; see on-page and off-page SEO). An online store, however, adds problems a brochure website never has:

AreaBrochure websiteOnline store
Number of pagesdozenshundreds to tens of thousands
Main landing pagesservices, articlescategories and products
Duplicatesrarelyfilters, sorting, variants, pagination, one product in several categories
Contentwritten by handoften copied from the manufacturer or supplier
Changesoccasionallydaily (prices, stock, new and discontinued products)
Structured dataOrganization, ArticleProduct, Offer, ratings, variants

Your platform (Shopify, WooCommerce, Shoptet, a custom build) decides which of the steps below you can configure yourself and which need a developer. For a comparison of platforms used in Central Europe, see Shoptet vs Upgates vs WooCommerce; this guide does not cover choosing a platform.

Step 1: Build the category structure around keywords

Categories are the most valuable pages for ecommerce SEO. For broad searches such as "women's winter jackets", Google usually shows product listings rather than individual products. Build your structure around how customers search, not around your internal stock codes.

  1. 1Put together a list of searches with their volumes (see keyword research).
  2. 2Assign one category or subcategory to each topic with enough demand. One topic = one URL.
  3. 3Leave searches for specific models and product codes to product pages.
  4. 4Keep the structure shallow: every product should be reachable in a few clicks from the homepage and have breadcrumb navigation.
  5. 5Keep category URLs short, readable and free of IDs: `/winter-jackets/women` beats `/category.php?id=1842`.

A typical mistake is two categories for the same intent (for example "Jackets – winter" and "Winter jackets" in different branches of the menu). Both pages then compete for the same searches and neither ranks well.

Step 2: Filters and faceted navigation without duplicates

Faceted navigation means filters by brand, size, colour or price. Each combination usually creates a new URL. A model (fictional) example: a footwear category with 40 brands, 12 sizes and 8 colours produces 3,840 combinations even when only one value is picked per filter, and many more once sorting and pagination are added. Crawlers then spend their time on near-identical listings instead of new products.

Google's documentation on faceted navigation recommends:

  • Blocking crawling of filter URLs that are not worth indexing in robots.txt, or handling filters with URL fragments (the part after `#`), which do not affect crawling.
  • Treating `rel="canonical"` only as a supplement: over time it can reduce crawling of non-canonical versions, but it is generally less effective in the long term.
  • If filters stay in the URL, using the standard `&` parameter separator, keeping filters in a consistent order and not allowing duplicate values.
  • Returning a 404 status code for combinations with no results, rather than an empty page or a redirect.

The exception is combinations people really search for, such as "Nike running shoes" or "kids' shoes size 12". Turn these into dedicated indexable landing pages with their own URL, H1, title and short copy, and link to them from the menu or category page.

URL typeExampleRecommendation
Category/running-shoesindex, own copy
Searched filter combination/running-shoes/nikededicated landing page, index
Other filters/running-shoes?colour=green&size=42noindex, limit crawling
Sorting/running-shoes?sort=pricenoindex, limit crawling
Empty combination/running-shoes?colour=purplereturn 404

Step 3: Pagination and loading more products

Longer categories are split into pages. According to Google's ecommerce documentation:

  • Give each page of a listing its own canonical URL. Don't canonicalise page 2 and beyond to the first page.
  • Link the pages with ordinary `<a href>` links to the next page and, ideally, back to the first one.
  • Don't put page numbers in a fragment (`#page=2`); Google ignores fragments.
  • Add links to paginated URLs alongside a "Load more" button or infinite scroll. Crawlers don't click buttons.
  • Block listing variants created by sorting or filtering with a `noindex` meta tag or in robots.txt.

Step 4: Product variants and other duplicates

Sizes and colours of a single model are the most common source of duplicates. If customers choose a variant on one page, Google recommends that each variant can be opened directly via its own URL with a parameter (for example `?size=m&colour=green`) and that the whole group has a single canonical URL, usually the one with no variant preselected. Separate pages for variants only make sense where people search for the variant on its own and it has different content.

Other common duplicates in online stores:

  • The same product in several categories: a product should have one URL, regardless of the path the customer took to reach it.
  • Manufacturer copy: dozens of competitors use the same description, so Google has no reason to prefer your store.
  • Technical URL variants: http and https, with and without www, trailing slash. Redirect everything (301) to one version.
  • Campaign parameters: URLs with `utm_` or session IDs need a canonical URL without parameters.

Step 5: Category and product copy

Copy in an online store shouldn't slow down the purchase. It should answer the questions a customer would otherwise send by email or settle by returning the item.

  • Category: a short intro above the listing (2–3 sentences with the main keyword) and an advice section below it: how to choose, what to compare, links to subcategories and guides.
  • Product: your own description of the benefits, specifications in a table, dimensions and materials, what's in the box, who the product is not suitable for, customer questions.
  • Title and meta description: a template for thousands of products is fine (name, key attribute, brand), but write them by hand for your best-selling categories and products.
  • Images: descriptive file names and alt text, WebP format, sensible file size.

How to write copy that works for both people and search engines is covered in SEO copywriting.

Step 6: Product, Offer and review structured data

Structured data helps Google show price, availability, shipping or star ratings for your products. Google distinguishes two types: merchant listings for pages where the product can be bought directly, and product snippets for pages without a purchase option (reviews, comparisons). The first type is the relevant one for an online store.

PropertyRequired / recommendedNote
name, imagerequiredproduct name and photo
offers (Offer) with price and priceCurrencyrequiredprice must be greater than zero, currency in ISO 4217 format (EUR, GBP)
availabilityrecommendede.g. InStock, OutOfStock, BackOrder
shippingDetails, hasMerchantReturnPolicyrecommendedcan also be set in Google Merchant Center
gtin, sku, brandrecommendedunique product identification
aggregateRating, reviewrecommendedgenuine customer reviews only

For products with variants, Google describes the ProductGroup type with the properties `hasVariant` (individual variants), `variesBy` (how they differ, e.g. colour, size) and `productGroupID`. The data must match what is visible on the page. Why structured data pays off is explained in why structured data is essential for your SEO. Product feeds for comparison sites and Shopping campaigns are a separate topic; see XML product feed and Google Shopping ads.

Step 7: Internal linking in an online store

Links within your store determine which pages crawlers find and which they treat as important.

  • The main menu leads to the most important categories, not to every subcategory.
  • Breadcrumb navigation on every category and product page.
  • "Related products", "Accessories" and "Frequently bought together" blocks connect products with each other.
  • Blog guides link to the categories they relate to, with descriptive anchor text.
  • Products and categories without a single internal link (orphan pages) are indexed poorly.

The general approach is described in internal linking.

Step 8: Speed and mobile experience

Online stores are slowed down mainly by large photos, lots of scripts (analytics, chat, reviews) and filters loaded with JavaScript. Monitor Core Web Vitals separately for the category and product templates, because they cover thousands of pages built from the same code. Convert photos to WebP, lazy-load images below the fold and make sure content and links are in the HTML even without running JavaScript. The detailed process is in website speed and Core Web Vitals.

Step 9: XML sitemap and indexing

  • Only include canonical, indexable URLs returning status 200 in your XML sitemap: categories, products, filter landing pages, articles.
  • For a large store, split sitemaps by page type. Search Console will then show straight away whether an indexing problem affects products or categories.
  • Check the page indexing report and the reasons for exclusion regularly. How to deal with pages that aren't indexed is covered in Google indexing and crawling.

Step 10: Out-of-stock and discontinued products

A product page that is temporarily out of stock often already has rankings and backlinks. What happens to it should depend on whether the item comes back:

SituationRecommendation
Temporarily out of stockkeep the page, show a restock date or a back-in-stock alert, set availability to OutOfStock or BackOrder in structured data, offer similar products
Permanently discontinued, successor exists301 redirect to the new model
Permanently discontinued, no replacement, page has traffic or links301 redirect to the closest category
Permanently discontinued, no trafficreturn 404 or 410 and remove from the sitemap

Don't redirect everything to the homepage in bulk. It confuses users, and search engines may treat such redirects as pages that no longer exist.

The most common ecommerce SEO mistakes

  • Indexable filters and sorting without rules, leaving thousands of URLs in the index with almost no traffic.
  • Empty categories with no copy or, conversely, long copy above the listing that pushes products below the fold.
  • Product descriptions copied from the manufacturer.
  • Page 2 and beyond canonicalised to the first page.
  • Ratings in structured data that aren't visible on the page.
  • Deleting out-of-stock products without redirects.
  • Changing URLs when moving to another platform without a 301 redirect map.

How to measure ecommerce SEO results

In Google Search Console, track impressions, clicks and positions separately for categories and products (filter by part of the URL). In Google Analytics 4, compare revenue and orders from organic search, not just traffic. Ecommerce SEO shows results gradually: you'll usually see the first effects of technical fixes within weeks, while growth in competitive categories takes months.

When to hand ecommerce SEO to specialists

You can handle copy and title changes yourself. With filters, canonical URLs, robots.txt, structured data and migrations, however, a single mistake can drop hundreds of pages from the index. If you're not sure where to start, the first step is a website SEO audit. At Weboptim we have 9+ years of experience and more than 50 projects behind us. We can help with ecommerce SEO, and if your store is still at the planning stage, we can build it with the right structure from the start as part of our ecommerce website development. SEO management starts from €190 per month excluding VAT.

Frequently asked questions

What is ecommerce SEO?
Ecommerce SEO is optimising an online store for search engines so that its category and product pages appear for customers' searches. On top of standard on-page and technical SEO, it deals mainly with category structure, filters, variants, pagination, product copy and Product and Offer structured data.
Should online store filters be indexed?
Most should not. Filter and sorting combinations create thousands of near-identical pages, so it's best to limit their crawling in robots.txt or handle them with URL fragments. Only combinations people actually search for, such as a brand within a category, are worth indexing, as dedicated landing pages with their own copy.
Should I optimise categories or products first?
Both, each for different searches. Categories target broader searches with higher volume ("winter jackets"), products target specific models and codes. In most online stores categories bring more organic traffic, so start with them.
What should I do with an out-of-stock product page?
It depends on whether the item will come back. Keep a temporarily out-of-stock product on the site with availability information and alternatives. Redirect a permanently discontinued product (301) to its successor or the closest category, and if the page has no traffic or links, return 404 or 410.
How long does ecommerce SEO take to work?
Technical fixes such as cleaning up duplicates or repairing indexing usually show results within a few weeks. Ranking growth in competitive categories tends to take months and depends on the competition, your content and links. That's why it makes sense to measure results by category and track revenue from organic search.
Peter Gáborík

Written by

Peter Gáborík

Project Manager – AI, Automation & SEO

Project manager and founder of Weboptim. Builds growth strategies around SEO, automation and AI; in online marketing since 2017.

Tips that save time – once a month

One e-mail a month: a new guide, the automation of the month and one number from practice. No spam.