E-commerce SEO Guide: How to Optimize Product and Category Pages
Online shops have SEO problems other sites don't: variants, filters, thin descriptions and stock that changes daily. This guide works through product and category pages in order.
By SEO Tool Orbit8 min read

An online shop can publish thousands of pages without anyone writing a word: every colour, every filter and every sort order can become a URL. That creates problems that a blog never faces. Search engines waste time on near-duplicate filter pages while real products go unnoticed, and manufacturer descriptions appear word for word on dozens of other sites. E-commerce SEO is largely about controlling that sprawl and making the pages that remain genuinely useful to buyers.
In short: link to every product you want indexed. Write your own titles and descriptions, use real photos, and add Product structured data that matches the page exactly. Keep one canonical address per product, stop filter combinations from multiplying your URLs, and keep temporarily out-of-stock pages live and clearly marked. Valid markup makes a page eligible for search features, but it doesn't guarantee them.
E-commerce SEO fundamentals
Different page types serve different searches, and planning around that stops your pages from competing with each other.
| Page type | Typical search | Job |
|---|---|---|
| Category | "waterproof hiking backpacks" | Help people compare and choose |
| Product | "Trailhead 40L backpack" | Give the detail needed to buy |
| Guide or article | "what size backpack for a 3-day hike" | Answer a question, then point to products |
The foundation is crawlable linking. Google's site structure guidance says Googlebot generally doesn't run searches, so a product reachable only through your search box may be missed. It strongly recommends linking to every product you want indexed, with standard <a href> links. If you can't link to everything, provide a sitemap or a Merchant Center feed as well.
Product page optimization
Product titles
Use the words a buyer would type, in a predictable order: brand, product name, and the attribute that matters most. "Example Outdoors Trailhead 40L Waterproof Backpack" tells a searcher far more than "Trailhead Pro Series". Generate titles from your product data so they stay consistent, but check that the pattern doesn't produce clumsy results for unusual items.
Product descriptions
Manufacturer copy is on every other retailer's site, so it gives nobody a reason to prefer yours. Write what a buyer actually needs to know:
- who it's for, and who it isn't for
- dimensions, materials, compatibility and what's in the box
- how it compares with the nearest alternative in your range
- delivery and returns, stated plainly
With a large catalogue, start with your best sellers and the products that already get impressions in Search Console, then work down. The On-Page SEO Checker reviews a single page's title, headings and content against a checklist.
Product images and alt text
Use your own photos where you can, and show the product from several angles and in use. Image URLs must be crawlable and indexable for merchant listings. Give files descriptive names, such as trailhead-40l-backpack-green.webp, and write alt text that describes what's in the picture: "Green Trailhead 40L backpack with side pockets, shown from the front". Avoid listing keywords. Large photos are a common cause of slow shop pages, so the Compress Image tool is worth using before upload. Our image SEO guide goes further into formats and sizing.
Category page optimization
- Write a unique title and heading that match how people search for the group of products.
- Add a short, useful introduction, with buying advice rather than filler stuffed with keywords.
- Link directly to the products, using plain links that are present when the page loads.
- Paginate properly. Google's pagination guidance says to give each page its own URL and link pages in sequence. Don't canonicalize them all to page one. "Load more" and infinite scroll need crawlable links behind them, because Google doesn't click buttons.
- Handle empty categories. Use
noindexor return a 404 rather than leaving a blank page to be indexed.
Product structured data
Product markup describes a product in a form search engines can read. Google uses it for two kinds of feature:
| Product snippets | Merchant listings | |
|---|---|---|
| For | Pages about a product, including reviews, where it may not be bought directly | Pages where the customer can buy the product |
| Required | name, plus one of review, aggregateRating or offers | name, image and offers with price and priceCurrency |
| Extra details | Review details such as pros and cons | Shipping, returns and apparel sizing |
Here's a minimal example based on Google's merchant listing documentation. The values are illustrative, and yours must come from your own catalogue:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Trailhead 40L Waterproof Backpack",
"image": "https://example.com/images/trailhead-40l.webp",
"sku": "TH-40-GRN",
"brand": { "@type": "Brand", "name": "Example Outdoors" },
"offers": {
"@type": "Offer",
"url": "https://example.com/packs/trailhead-40l",
"price": "89.00",
"priceCurrency": "GBP",
"availability": "https://schema.org/InStock"
}
}
</script>
Valid markup versus eligibility for search features
These are three separate stages, and people often confuse them:
- Valid: the markup parses and has the required properties.
- Eligible: the page and site also meet Google's content and policy requirements.
- Displayed: Google decides to show the feature. Its structured data policies say it doesn't guarantee your markup will show up, even if it passes testing.
The markup must be a true representation of the page. Never invent reviews, ratings, prices or availability. Don't add aggregateRating unless real customers left those ratings and they're visible on the page. Google's policies warn that reviews not written by actual users may result in a manual action. Prices and stock should come from the same source as the visible page, so they can't drift apart.
The AI Schema Generator can draft JSON-LD from a real page, and the Rich Results Test checks it. Our validation guide explains how to fix errors. Google recommends combining on-page structured data with a Merchant Center feed, since feeds can update stock quickly and are required for some surfaces, such as the Shopping tab.
Product variants and duplicate URLs
A backpack in three colours and two sizes is six variants, and carelessly built URLs can turn that into dozens of near-copies. A sensible default, following Google's ecommerce URL guidance:
- Give each variant a distinct URL that preselects it, such as
/trailhead-40l?color=green, with the correct image, price and availability. - Where variants use optional parameters, make the URL without the parameter the canonical.
- Use query parameters as
key=valuepairs, not URL fragments. Google doesn't use fragments for indexing. - Don't link internally to session IDs or tracking parameters.
- When a product sits in several categories, keep one product URL rather than one per category path.
Variant markup uses ProductGroup with variesBy, hasVariant and productGroupID, and each variant should have a unique identifier such as a sku or gtin. As a judgment call, build fully separate indexable pages only for a variant people really do search for by name, and only where the page differs meaningfully.
Faceted navigation and crawl management
Filters are great for shoppers, but size, colour, price and sort order multiply quickly. Google's faceted navigation guidance lays out the options:
| Method | What it does | Keep in mind |
|---|---|---|
| robots.txt Disallow | Stops filter URLs being crawled | Google's first suggestion when you don't need them indexed |
| URL fragments | Filters after # aren't crawled at all | No effect on crawling, positive or negative |
rel="canonical" | May reduce crawling over time | Google calls it less effective in the long term |
rel="nofollow" | Can help | Every link to that URL must carry it |
A rule for a sort parameter might be Disallow: /*?*sort=. Remember that a crawler can't read a noindex or canonical on a URL it's blocked from fetching, a trade-off our robots.txt guide explains.
Some filter pages deserve to rank, such as "women's waterproof jackets", if people really search for them. Give those a clean URL, a unique title and a place in your navigation. For filters you do let Google crawl, use & as the separator, keep filters in a fixed order, and return a 404 for combinations with no results.
Internal linking and breadcrumbs
Google infers relative importance from internal links, so link to priority products from your home page, your guides and related-product sections. Our internal linking guide shows how to plan those hubs. Broken Link Checker catches links left behind when products are removed.
Breadcrumbs show a page's position in the hierarchy, such as Home › Backpacks › Hiking › Trailhead 40L. Display them on the page, link each level, and describe them with BreadcrumbList markup, which needs at least two items.
Handling out-of-stock products
| Situation | Recommended approach |
|---|---|
| Temporarily out of stock | Keep the page live, say so clearly, set availability to OutOfStock, and offer alternatives or a restock alert |
| Discontinued, with a direct replacement | 301 redirect to the replacement |
| Discontinued, but the page still helps people | Keep it, mark it Discontinued, and link to current options |
| Gone, with nothing similar | Return 404 or 410 |
Google's advice for pausing a business says it's better to keep a page and mark it out of stock than to remove it. Don't redirect every old product to the home page: Google warns that redirecting many URLs to one irrelevant destination might be treated as a soft 404.
E-commerce SEO checklist
- Every product you want indexed has a plain link from a category page.
- Each category has a unique title, heading and useful introduction.
- Product titles use brand, name and the key attribute.
- Descriptions are your own, starting with the top sellers.
- Images are real, compressed, descriptively named and have alt text.
- Product markup matches the visible price and availability, and contains no invented data.
- Each product has one canonical URL, with variants handled consistently.
- Filter and sort URLs are controlled, and valuable ones are chosen deliberately.
- Pagination uses unique, linked URLs.
- Breadcrumbs are visible and marked up.
- Out-of-stock and discontinued products follow one written rule.
Frequently asked questions
Will Product markup give me star ratings in Google?
Not automatically. Ratings need genuine reviews that are visible on the page, and Google decides whether to show them. Valid markup makes a feature possible, not certain.
Do I need Google Merchant Center?
Not for ordinary search results, but it's required for some surfaces, and Google recommends using it alongside structured data.
Should I delete out-of-stock products?
Not if they're coming back. Keep the page and mark it as out of stock.
Should filter pages be indexed?
Only the few that match real searches and have useful, distinct content. The rest are better kept out of the crawl.
Next step
Open your best-selling product and compare the visible price, stock status and rating with what its structured data says. Then click through one category filter and note how many new URLs it creates. Those two checks usually show where to start.
- #E-commerce SEO
- #Structured Data
- #Technical SEO
Related reading

Technical SEO
Robots.txt vs Meta Robots vs X-Robots-Tag
Robots.txt controls crawling; meta robots and X-Robots-Tag control indexing. Mixing them up is one of the most common ways sites accidentally disappear from search.
5 min read

Website Optimization
How to Optimize Images for SEO, Accessibility, and Speed
Image SEO is mostly careful HTML. Here's how to mark up images so they load fast, describe themselves to screen readers, and can be found in image search.
5 min read

Technical SEO
How to Validate Structured Data and Fix Schema Errors
Schema errors fall into a few kinds: broken JSON, wrong vocabulary, missing properties and markup that doesn't match the page. Here's how to find and fix each.
5 min read

AI & SEO
Internal Linking Strategy: Build Topic Clusters That Make Sense
Internal links tell readers where to go next and tell search engines how your pages relate. Here's how to plan them as topic clusters instead of adding them at random.
5 min read