Blog

Ecommerce technical SEO: filters, variants, stock and speed

Ecommerce technical SEO is the setup that lets search engines crawl and index a store's pages. What to decide for filters, variants, stock, sitemaps and speed.

Ecommerce technical SEO is the work on how a store is set up, so that search engines can crawl its category and product pages and keep the right version of each in their index. It covers URLs, crawl rules, status codes, structured data, sitemaps, rendering and speed. A store needs more of it than most sites because its software keeps making new addresses: one for every filter, sort order, page of results and variant. This post goes through each part with the decision behind it and what Google’s own documentation says. Checking a store that already exists is a different job, covered at the end.

What is ecommerce SEO, and where does the technical part fit?

Ecommerce SEO aims to put a store’s own pages in front of people searching for the things it sells. Besides the technical side, it covers the pages’ content, mostly category and product copy, and links to the store from other sites. The technical side decides whether the rest can be seen at all. A category page with excellent copy earns nothing if Google never crawls it, or indexes a filtered copy of it instead.

Filters and sort orders: decide which ones deserve a page

Filters are where most of a store’s extra URLs come from. Google’s page on crawling faceted navigation explains the cost: every combination of filter parameters looks like a new URL, a crawler cannot know a URL is useless until it has fetched it, and the time spent on those URLs is time not spent discovering new pages.

So the first decision is made filter by filter. A filtered list that matches something people search for, such as a category narrowed to one brand or one material, can earn a place in search. Most combinations cannot: nobody searches for three sizes, four colors and a price band at once.

For the filters that should stay out, Google prefers two methods. One is disallowing the filter parameters in robots.txt, the file that tells crawlers what to skip. The other is putting filters in the URL fragment, the part after #, which Google generally ignores. A canonical tag pointing to the unfiltered page, or nofollow on every link to a filtered URL, can also cut crawling, but Google’s page rates both as weaker over time.

For a filter that should be indexable, give it an address in the path, such as /boots/waterproof/, with filters always in the same order and never repeated, and link to it with an ordinary link. A path rather than a parameter is a practical choice: a robots.txt rule that blocks a parameter blocks every URL carrying it, so each combination you want found then needs an allow rule of its own. If a filter combination finds no products, Google asks for a 404 at that URL, not a redirect to a general error page.

Sort orders are simpler: reordering a list by price changes nothing about which products are on it. Google’s pagination guide says to keep such versions out of the index with a noindex robots meta tag, or out of the crawl with robots.txt.

Category pages that run to several pages

A category with hundreds of products is shown a page at a time, and every one of those pages has to be reachable. Google’s guide to pagination and incremental loading asks for:

  • A separate URL per page, for example ?page=3. Never a fragment such as #page3, which Google ignores.
  • A canonical tag on each page that names that page. Pointing pages two onward at page one is the setup the guide tells you to avoid.
  • Ordinary links from each page to the next, and if you like, from every page back to the first.

“Load more” buttons and infinite scroll need more care. Google’s crawlers generally follow the URLs in the href of <a> elements and do not click buttons, so products that appear only after a click may never be found through the category. For those, the guide points to two other routes, a sitemap file and a Merchant Center product feed, so that every product can still be found.

Product variants: one URL each, one canonical

A jacket in four sizes and three colors comes to twelve variants. Google’s guide to ecommerce URL structure asks for every variant to have an address that identifies it, made with a path segment (/jacket/green) or a parameter (/jacket?color=green). Where an optional parameter picks the variant, the URL without it should be the canonical one. That one URL then appears in internal links, in the sitemap and in every variant’s canonical tag. Google’s canonical guide warns against naming one URL in the sitemap and another in the canonical tag for the same page.

Structured data tells Google how the variants relate. Google’s product variant documentation describes a ProductGroup for the parent product, carrying the parent SKU in productGroupID, the properties that differ (size and color, say) in variesBy, and each variant in hasVariant as a Product with its own SKU, price and availability. Anything every variant shares, such as the brand, is stated once on the group. With this markup, Google says, products become eligible to show variant information in its merchant listing experiences.

Sold-out, discontinued and removed products

Stock comes and goes, and each state needs one rule that is applied every time. The table is how we would set it, built on Google’s pages on HTTP status codes and merchant listings.

The product What the URL returns What the page and its markup say
Out of stock, coming back 200: the page stays live Out of stock, with a return date if you know one. Availability OutOfStock, or BackOrder or PreOrder if the store still takes orders
Discontinued, still looked for 200, while people still search for it or use its details Discontinued, with a link to the replacement if there is one. Availability Discontinued
Gone, with nothing to replace it 404 or 410 No product page, and no product markup
A filter that finds no products 404 at its own URL A plain not-found page

What a product URL should return in four cases, and the one case to avoid. Out of stock and coming back: 200, the page stays live, availability OutOfStock. Discontinued and still looked for: 200, with a link to any replacement, availability Discontinued. Gone with nothing to replace it: 404 or 410, no product page and no product markup. A filter that finds no products: 404 at its own URL, a plain not-found page. To avoid: a page saying the product is gone while the server answers 200, which Search Console may report as a soft 404.

Google treats 404 and 410 alike. Its status code page says every 4xx code except 429 tells its systems the content does not exist, and a URL already in the index is then removed. The mistake to avoid is a page that tells shoppers the product is gone while the server still answers 200. Search Console may then report it as a soft 404, and Google’s crawl budget guide says soft 404 pages go on being crawled.

Structured data, product feeds and return policies

Product markup states a product’s price, availability, shipping and returns in a form Google can read without guessing. Google’s merchant listing documentation says it can make a page eligible for merchant listing experiences in Search, among them the shopping knowledge panel, Google Images, popular product results and product snippets. Eligible does not mean shown, and Google says it may try to verify the product data before it shows it.

Two details are easy to miss. A return policy that covers most of what the store sells can be stated once, as a MerchantReturnPolicy nested under the store’s Organization markup through hasMerchantReturnPolicy, and overridden on a product’s offer only where that product differs, as Google’s return policy page shows. And markup is not the only way in. Google’s guide to sharing product data says uploading product data to Merchant Center is not needed to appear in search results, but that being in Merchant Center is needed for some surfaces, such as listings in the Shopping tab, and that uploading feeds gives a large or fast-changing store more control over its data.

Sitemaps for a large catalog

A sitemap lists the URLs a store wants crawled. Google’s sitemap guide caps one file at 50,000 URLs or 50MB uncompressed, so a bigger catalog splits its URLs over several files, which can be listed in one sitemap index. What goes into the files matters more than the format:

  • Canonical, indexable URLs only. No filtered, sorted or redirected addresses, and no variant URL whose canonical names another.
  • A lastmod date that is true. Google uses it only when it is consistently and verifiably accurate. A change to the main content, the structured data or the links counts; a new copyright year does not. Google ignores priority and changefreq.
  • One file per kind of page, as we see it: categories in one, products in another, so you can tell how each kind is being indexed.

Many stores draw their product grids and filters with JavaScript. Google renders JavaScript, but its JavaScript SEO basics describe pages waiting in a queue to be rendered, and the guide still calls server-side or pre-rendering “a great idea”, since it makes pages faster for people and crawlers and not every bot runs JavaScript. Links matter even more than rendering. Google can only discover a link that is an <a> element with an href, so category and product links built as buttons or script handlers are links it cannot follow.

Speed is judged from real visits, through the three Core Web Vitals: Largest Contentful Paint for loading, Interaction to Next Paint for responsiveness, and Cumulative Layout Shift for visual stability. web.dev sets the good marks at 2.5 seconds or under, 200 milliseconds or under and 0.1 or under, and a page has to reach them on at least three page loads in four, with mobile and desktop measured apart. Google’s page on Core Web Vitals in Search recommends good scores and says that, with other parts of page experience, they align with the things Google’s core ranking systems seek to reward. Our post on the 3 second rule explains what the loading figure does and does not mean. As we see it, on a store the largest element is usually the main product photo, filter controls are a common cause of slow responses, and banners or review widgets that load late push the page around, so those are the first places to look.

Common advice, checked against Google’s own pages

Some advice on store SEO is repeated so often that it reads as settled. Here is what Google’s documentation says about five pieces of it.

The advice What Google's pages say
Point every page of a category at page one with a canonical tag Don't. Each page of the sequence gets its own canonical URL (pagination guide)
Add rel="next" and rel="prev" to paginated pages Google no longer uses them, though other search engines may (pagination guide)
Use noindex to save crawl budget Google still requests the page before it drops it. For pages that should never be crawled, use robots.txt (crawl budget guide)
Block duplicate URLs in robots.txt so Google picks the right one Don't use robots.txt to choose a canonical. A blocked URL can still be indexed, without its content (canonical guide)
Every store has to manage its crawl budget The guide is meant mainly for sites of a million or more pages that change about weekly, 10,000 or more that change daily, or with many URLs reported as discovered but not indexed, and Google calls the numbers rough. For other sites, a current sitemap and a regular look at the Page indexing report are enough (crawl budget guide)

How do you check technical SEO on a store?

Checking means an audit: a crawl of the store read against what Google reports about it, a few pages of every kind at a time. Our post on what an ecommerce SEO audit checks goes through each check and the evidence it reads. For a first look of your own, take one category page and one product page into Search Console’s URL Inspection tool, which shows whether Google has indexed the page, which URL it chose as canonical, and the page as Google rendered it.

How we handle the technical side of a store

Technical work is where our ecommerce SEO services begin. After a free first call, the first piece of work is a paid audit with its price agreed in advance. You receive the findings in writing, the most serious first, and you keep them whatever you decide next. Any monthly work that follows has an agreed scope and a fixed monthly fee, both set before the work starts. We make changes to the store with the access you give us. A theme change is tried on a copy before it reaches the live store, goes live only once you approve it, and the version it replaces is kept.

The stores we work on run on Shopify (Shopify Plus included), on WooCommerce for WordPress, or on code built for them, and what can be changed is different on each: on a custom-built store, no platform sets the limits. As for results, we promise none: no position in search, no traffic figure, no date.

The full service behind this post: SEO Services for Ecommerce Websites.

Ready to scope your project?

Send us two sentences about what you need. We reply within one business day with the next step and any questions we need answered first.

Get a Quote