Skip to content
Desayuno SEO

SEO for ecommerce: where to start with your online store

· Published: ·Content

Translated from the Spanish original. Leer en español

Alejandro with a wooden shopping cart in an online store warehouse. Headline: SEO for ecommerce.

An online store with 2,000 products does not have 2,000 chances to rank. It has a few pages that really matter and thousands that, if badly set up, make Google's life harder.

Think of someone typing "running shoes". They are not looking for a specific model, they are looking for a shop window. And the shop window of an online store is not the product page, it is the category.

So if you have a store and don't know where to start, start by tidying the house. Structure first. Then categories. Then everything else.

How is store SEO similar to, and different from, SEO for a services website?

It is similar in the basics: useful content, a fast site and something Google can crawl. I explain it in on-page SEO.

Three things change:

  • Many similar URLs. A t-shirt in four colors and five sizes can generate twenty addresses. Google needs to know which one is the right one.
  • A catalog that changes. Products come in, others go out, others sell out. Every change touches a URL.
  • Buying intent. Whoever arrives wants to compare and decide, not read an encyclopedia.

Which searches do you target on each type of page?

One intent per page. That rule avoids half of the problems.

Page typeWhat the person is looking forExample
Home pageA brand or a store"my store"
CategoryA type of product, to compare"running shoes"
SubcategorySomething more specific"women's running shoes"
Product pageA model or a reference"model X size 40"

If you cannot see all the columns, scroll the table sideways.

If two pages in your store compete for the same search, Google picks one, and not always the one you want. That is the problem of SEO cannibalization, and in stores it shows up a lot when a category and a subcategory are too similar.

How do you organize the store architecture?

Think of the aisles in a supermarket. Home page, categories, subcategories, products. Each level goes down one step, and every product should be a few clicks from the home page.

Illustration of an online store arranged like a supermarket, with aisles that stand for categories
A store arranged like a supermarket: each aisle, a category. Conceptual illustration.

Two common-sense tips:

  • Make the path logical for a person. If you get lost, Google does too.
  • Don't let the same product live on three different routes with three different URLs.

The structure shows in the addresses. In its URL guide for ecommerce, Google recommends using descriptive words in the path rather than loose codes. Its example: /product/black-t-shirt-with-a-white-collar is better than /product/3243. For the rest, see friendly URLs and breadcrumbs, which help make clear where each thing is.

It is also worth using the same URL in internal links, the sitemap and the canonical tag, according to that same guide. It looks like a detail and it is not. If each place says something different, Google has to guess.

Why do categories deserve the most work?

Because that is where buying intent and volume meet. Generic searches ("running shoes") tend to be broader than those for a specific model, and a category is the page that answers them.

And this is where many fail: a category that is just a grid of products, without a single line of text. That tells nobody anything.

What I would do:

  • A title and a heading that clearly say which category it is.
  • A short, useful paragraph at the top or bottom: who it is for, how to choose, what sets some products apart from others.
  • Links to the most important subcategories.

No filler. If the text is only there so there is text, you have thin content under another name.

What do you do with filters and paginated pages?

Filters are the most convenient thing for the customer and the most dangerous for crawling. Every combination of color, size and price can create a new URL.

Illustration of a crawler lost among many URLs created by filter combinations
Every filter combination can create a new URL and the crawler gets lost. Conceptual illustration.

Google explains it in its guide on faceted navigation: those URLs can create almost infinite spaces and make the crawler spend its time on useless pages, so it takes longer to discover the new ones.

You have two paths:

What you wantWhat to do according to Google
Those URLs not to be indexedBlock their crawling with robots.txt, or use fragments (#) for filters
Some of them to be indexedTake care of the URLs: & separator, fixed filter order and no duplicate filters

If you cannot see all the columns, scroll the table sideways.

Two more details from the same guide. If a filter combination returns no products, it should answer with a real 404 error, not a redirect to a generic error page. And the canonical tag or nofollow help, but Google considers them less effective in the long run than blocking crawling.

To know whether a category deserves its own indexable page, ask yourself one question: does anyone search for this? If nobody searches for "green shoes size 38 under 40 euros", that URL does not belong in the index.

Paginated pages work in a similar way. Each one needs its own URL, and Google says the most frequent mistakes are right there. You have it in pagination SEO. And to choose the right URL among several, what is a canonical.

What should a product page have?

Whatever resolves doubts before buying: what it is, who it is for, measurements, materials, shipping, returns and clear photos.

I won't repeat it here because it already has its own breakfast: product pages. And for Google to understand price, availability and ratings, structured data.

One thing I will tell you, because it gets forgotten. When a product has variants (color, size), Google recommends that each variant can be identified with its own URL, either in the path (/t-shirt/green) or with a parameter (/t-shirt?color=green). If you use an optional parameter, the URL without the parameter acts as the canonical.

What do you do with out-of-stock or discontinued products?

Here many people panic and redirect everything to the home page. Don't.

Illustration of an out-of-stock product on a shelf with a sign showing where to go next
If a product sells out, tell people where to go next. Conceptual illustration.

Think about what would happen in a physical shop. If a customer asks for something you no longer have:

  • It will be back soon: keep the page, say clearly that it is out of stock and, if you can, offer to notify them. In the structured data, make sure availability reflects it. Google Merchant Center requires that what the product page, the checkout and your data say match.
  • It no longer exists, but there is a clear substitute: a 301 redirect to the substitute or to the closest category, if they really are similar.
  • It no longer exists and there is nothing similar: a 404 or 410. Google says so in its documentation on 404 errors: if you remove a page with no replacement, returning 404 or 410 is correct, and sending people to the home page can create a soft 404.

In a Google office hours session they were asked about a product that is out of stock for good. The answer: from a search point of view, it is fine to delete the page. From the person's point of view, you may want to keep it for a while or redirect it, in case someone has the link saved.

And a warning from Merchant Center: don't mark products you no longer sell as "out of stock". Remove them from your data.

What content does a store need besides product pages?

Categories sell. But before buying, many people ask themselves questions: which one do I choose, what is the difference, how is it used.

That is where buying guides, comparisons and answers to doubts come in. Each one should link to the category or product that solves that doubt. For linking, see internal linking. And take care not to create a guide that competes with your own category for the same search.

If your store has an internal search, look at it too. What people type there is a list of what they cannot find.

Which platform should you choose?

Shopify, WooCommerce, PrestaShop or Magento: any of them can rank. What matters is that it lets you do the basics without a fight:

  • Edit the title, meta description and URL of each page.
  • Write your own text on categories.
  • Control canonical, indexing and redirects.
  • Add structured data.
  • Load fast.

Before choosing, test it against that list. If a system does not let you touch any of it, you know what it will cost you.

My criterion: categories first

If I had to choose a single thing in a new store, it would be categories. One per intent, with its title, its useful text and its links.

Product pages can be improved little by little. But a badly built structure drags everything else down, and fixing it later hurts more: URLs that change, redirects, broken links.

I am not giving you case figures because I don't need them to defend this. It is what seems most logical to me, looking at how Google describes crawling and how people search.

Quick checklist before moving on

  1. Do I have a category for each important search intent?
  2. Does each category have its own title and text, with no filler?
  3. Are filters under control, so useless combinations are not indexed?
  4. Does each paginated page have its own URL?
  5. Do product variants have a clear URL and canonical?
  6. Do out-of-stock products have a clear answer: they stay, they are redirected or they return 404/410?
  7. Do the sitemap, internal links and canonicals use the same URLs?
  8. Are there two pages competing for the same search?

If you want someone to review it for you, that is what I do in an SEO audit, and if you are going to build the store from scratch, in web development I leave it ready to rank.

Frequently asked questions about SEO for ecommerce

How many products do I need to start? There is no minimum. A small, well-organized catalog is better than a huge one with categories left unworked.

Is it worth having a blog in the store? Yes, if it answers real buying questions and links to your categories. If it will only compete with them, no.

Does Shopify rank better than WooCommerce? No platform ranks on its own. What matters is what it lets you configure and how you configure it.

What do I do with products that only change in size or color? One product page with variants is better than many nearly identical ones. If they have their own URL, make the canonical clear.

How long does it take to show? It depends on your site, the competition and what you change. Google gives no fixed timeframes, and neither do I.

To finish the coffee

An ordered online store is like a well-arranged physical shop: you understand it from the door, everything is in its aisle, and whoever cannot find what they want gets a clear answer. Start there.

More editions

See all editions

Tell me about your project

The first call is free and with no commitment. I tell you what I would do on your site and whether it makes sense to work together.