[NOW AVAILABLE] 👋 Hey Content Agent, tell me what you do that other AI tools can’t →
Skip to content
Sanity
  • Content operations

    • Sanity Studio
    • Media Library
    • Canvas
    • Content AgentNew
    • Content Releases
    • Insights
    • App SDK

    Content backend

    • Content Lake
    • Live CDN
    • Compute
    • Agent Actions
    • MCP ServerNew
    a white background with orange and black dots on it

    The only platform powering content operations

    Start building for free
    Start building for free
  • Use Cases

    • Headless CMS
    • E-commerce
    • Marketing
    • Media and publishing
    • PIM
    • LMS
    • Build your own

    Users

    • Developers
    • Content Editors
    • Product Owners
    • Business Leaders
    a man sits on a fence next to a horse

    Tecovas strengthens their customer connections

    Read the story
    Read the story
  • Build and Share

    • Sanity 101
    • Sanity Learn
    • Frameworks
    • Templates
    • Tools and plugins
    • Schemas and snippets
    • Join our community

    Insight

    • Blog
    • Events
    • Customer stories
    • Guides
    A dark-themed collage showcasing branded merchandise including t-shirts, a cap, mug, tote bag, and socks, alongside various digital design elements and logos, prominently featuring "Sanity" branding.

    Grab your gear: The official Sanity swag store

    Read Grab your gear: The official Sanity swag store
  • Docs
  • Enterprise
  • Pricing
Sanity

  • Content operations

    • Sanity StudioHeadless CMS
    • Media LibraryCentralized asset management
    • CanvasAI-assisted, free-form writing
    • Content AgentNewAI for content operations
    • Content ReleasesStack and stage content updates
    • InsightsUnderstand content performance
    • App SDKRapidly build content apps

    Content backend

    • Content LakeThe content optimized database
    • Live CDNSimple, scalable, real-time
    • ComputeEvent handlers for content changes
    • Agent ActionsBuilt-in, content aware AI
    • MCP ServerNew
  • Use Cases

    • Headless CMS
    • E-commerce
    • Marketing
    • Media and publishing
    • PIM
    • LMS
    • Build your own

    Users

    • Developers
    • Content Editors
    • Product Owners
    • Business Leaders
  • Build and Share

    • Sanity 101A quick series covering key areas of Sanity to get you up to speed.
    • Sanity Learn
    • Frameworks
    • Templates
    • Tools and plugins
    • Schemas and snippets
    • Join our community

    Insight

    • Blog
    • Events
    • Customer stories
    • Guides
  • Docs
  • Enterprise
  • Pricing
  1. SEO guides
  2. E-commerce SEO

On-page SEO for E-commerce

  • Kevin Indig

    Kevin Indig

    Growth advisor (ex Shopify, G2 and Atlassian)

Last updated March 16, 2023

Table of Contents

Table of Contents

  • How to optimize title tags for SEO
  • How to optimize on-page content for SEO
  • How to style content for SEO
  • How to optimize images and videos for SEO

E-commerce SEO

  • E-commerce SEO: The Essential Guide To Success
  • On-page SEO for E-commerce
  • Technical SEO For E-commerce
  • Link Building For E-commerce

On-page optimization is one of the 4 pillars of e-commerce SEO. The goal is to help Google understand the relevance of a page for keywords and user intent by optimizing elements like meta titles, text, images, and videos.

In an ideal world, just writing naturally (“write as you speak”) and creating content that users want would be good enough for Google to reward your site with high rankings and lots of traffic. Despite its growing sophistication, however, Google still lacks a good understanding of implicit meaning.

In other words, we still need to optimize content to perform optimally in search.

How to optimize title tags for SEO

Title tags - the heading of your search result on Google - are some of the most important ranking signals to Google and the first element from your site that searchers will see.

Technically, title tags are not on the page, but we include them in this section because they often match the H1 heading (the headline of your page). In fact, Google might automatically rewrite titles that venture too far away from H1 headings, which can lead to suboptimal titles in search results.

Good titles help users quickly understand the context and value of a page. Write a title that appeals to the user intent behind a keyword.

Look at the titles of pages that perform in top positions for your target keyword and think about how to stand out within the best practices of title optimization:

  1. Stick to a limit of 60 characters to avoid Google cutting your titles off
  2. Avoid generic titles like “homepage”.
  3. Aim to include at least the main keyword.
  4. Add unique selling propositions like “cheap,” “deals,” “shipping price,” or “free returns” when applicable.
  5. Optionally, add your brand name at the end of a title.

When starting out, creating a template you can use to define titles for your product and category pages makes sense. Over time, optimizing these title templates allows you to quickly make an impact on a large number of pages.

Templates include different elements like your brand name, keywords, and value propositions. An example of a page title template for a category page could be:

“Premium {category name} | Free shipping | {brand}”

One resulting title from this template could be “Premium women's slippers | Free shipping | The Slipper Store”.

Start building title templates in Google Sheets or Excel and test different variations over time to find the best one. You can carry learnings or templates over to meta descriptions and headings as well.

How to optimize on-page content for SEO

The text on a page tells Google what the page is about, and how relevant it is for a keyword. The goal of on-page text optimization is to provide information that makes it easier for users to make decisions.

For example, good product descriptions carry key pieces of information like size, price, or fit. Google understands the relationship between such parameters and products. As a result, having more information on a page generally improves its rankings in organic search.

Good e-commerce content is customer-oriented: it helps users make decisions and answers their most important questions about a topic. Since buyer journeys are rarely linear, you should include links to other products, categories, or blog articles in your content and use descriptive words to help users and Google find all pages and understand their relevance to each other

When optimizing on-page text, keep in mind that requirements vary depending on the type of page you're optimizing: product page, category page, or blog article. When creating or optimizing text for product pages, think about all the questions customers might ask about the product and try to anticipate them.

Pro tip

Think of yourself as a customer service representative. Your goal is to help your audience make the best decisions about your products and services.

Instead of copy-pasting the manufacturer’s product description, write your own. For category pages, provide some guidance to help customers find the right product. For blog articles, create comprehensive buying guides.

How to style content for SEO

The structure of your content, expressed in headings (h-tags), is a representation of breadth and depth. They tell users and search engines how many sub-topics you cover and how deeply you cover them. When writing on-page text, you should consider expanding on both of these qualities.

The most important heading is the H1, because it defines the page's topic. But headings 2 through 6 help users and search engines understand the structure and sub-topics of your content. Aim to include keywords in headings, as long as they are useful to the reader.

Google understands what formats users expect to see for a specific search, so you should try to format your content to meet those expectations. For example, searchers looking for “the 13 best buttoned-down shirts for winter” expect a list. Add a snappy list of products at the beginning of your article and then elaborate on each item.

Keep content light and easy to skim using bullet points, tables, and bolding. Avoid extravagant analogies, stories, or metaphors. You don’t want to sound mechanical, but SEO content is about answering a searcher’s questions by writing simply and clearly and getting to the point.

How to optimize images and videos for SEO

Google has been moving towards making search results more visual, which means images have become very important for SEO.

However, Googlebot — the program Google sends to your site to download, understand and rank content — can’t “see” images. It relies on other indicators to understand visual elements. Optimizing these indicators is known as image or video SEO.

To infer what an image is showing, Google looks at the image file name and alt tag. So make sure to include your main keyword in the alt tag and write a descriptive name. Videos don’t have alt tags, so you should give them a descriptive file name.

Both images and videos benefit from specified dimensions and large resolutions. Google supports BMP, GIF, JPEG, PNG, WebP, and SVG for images and any provider for videos besides Youtube.

The relevance of your images and videos to the content is important. Like it does with internal links, Google evaluates how the images and videos relate to the surrounding text.

For example, placing a video about cats in an article about mattresses might not be a good idea. But it’s a very good idea to include a video about choosing the right mattress size in a buying guide for mattresses. Ask yourself how the image or video adds to the content.

Ready to grow your e-commerce business?

Create seamless and connected experiences for your e-commerce that rank on Google users with Sanity and Shopify. Sign up today to unlock the full potential of your online store!

Get started with Sanity
PreviousE-commerce SEO: The Essential Guide To SuccessNextTechnical SEO For E-commerce

E-commerce SEO

  • E-commerce SEO: The Essential Guide To Success
  • On-page SEO for E-commerce
  • Technical SEO For E-commerce
  • Link Building For E-commerce

Jump to section

  • How to optimize title tags for SEO
  • How to optimize on-page content for SEO
  • How to style content for SEO
  • How to optimize images and videos for SEO
Join our community on Discord
Subscribe to our newsletter

Products

  • Sanity Studio
  • Media Library
  • Canvas
  • Content Agent
  • MCP Server
  • Content Releases
  • Insights
  • App SDK
  • Content Lake
  • Live CDN
  • Compute
  • Agent Actions
  • AI Assist
  • Use cases

Resources

  • Docs
  • Sanity 101
  • Sanity Learn
  • Tools and plugins
  • Frameworks
  • Templates
  • Schemas and snippets
  • Guides
  • Headless CMS explained
  • Resource library
  • Explainers
  • Enterprise CMS guides
  • Headless CMS Guides
  • Enhancing your CMS with AI
  • Compare Sanity
  • Glossary
  • Pricing

Company

  • Contact
  • Blog
  • Shop
  • Events
  • Careers
  • Changelog
  • Customer Stories
  • Agency Partners
  • Technology Partners

Trust and compliance

  • Privacy policy
  • Terms of service
  • Accessibility statement
  • Transparency statement
  • Security and compliance
  • Open Source Pledge

Keep in touch

© SANITY 2026

OSL, NOR (CET)

SFO, USA (PST)

Loading system status...
Change Site Theme