On-page SEO is the practice of optimizing individual elements of a webpage, including title tags, meta descriptions, headers, and content, so search engines can index and rank it. Without indexing, your page becomes invisible to search engines, which means it won’t surface anywhere in the ranked results.
Google accounts for 91.1% of worldwide search engine market share, according to Statcounter’s August 2026 data, and ranks pages using on-page factors like these.
This guide covers what on-page SEO is, how it differs from off-page SEO, and how it affects search visibility.
What is on-page SEO?
On-page SEO, also known as on-site SEO, is the practice of optimizing an individual web page’s content and source code so search engines can index it into their database and rank it among their results.
It’s one part of search engine optimization (SEO), the broader practice of improving a website’s visibility in search engine results pages (SERPs).
Google’s Search Essentials name several on-page elements as factors in how a page is indexed and ranked, including:
- Keywords
- URLs
- Metadata, including title tags and meta descriptions (HTML that tells search engines and visitors what a page is about)
- Content
- Page performance
- Schema and code structure
- Internal links
Because these changes happen on your own site, they’re entirely within your (and your team’s) control, with no need to coordinate with other businesses.
What’s the difference between on-page SEO and off-page SEO?
On-page SEO and off-page SEO differ in where the work happens:
| On-page SEO | Off-page SEO | |
|---|---|---|
| Where it happens | On your website’s own pages and code | Outside your website |
| Examples | Title tags, meta descriptions, content, internal links, schema, page performance | Backlinks, guest content, business listings, review site management |
| Local SEO | Location pages, local keywords, structured data with address and hours | Google Business Profile, local directory listings, local backlinks |
| Coordination required | None, changes are within your (and your team’s) control | Requires coordination with other businesses or platforms |
Why is on-page SEO important?
On-page SEO determines whether Google’s crawlers index a page at all, using signals like a page’s title, headings, and link text, according to Google’s Search Essentials. A page that isn’t indexed doesn’t appear in search results, regardless of its content or design.
On-page SEO is also the part of SEO within a store’s direct control. Unlike backlinks or local listings, a store owner edits title tags, headers, and internal links directly, without coordinating with another business or platform.
How to optimize your website for on-page SEO
Search engines like Google provide clear guidelines on how they read your site and what they value. Google accounted for roughly 9 in 10 search-engine referrals worldwide across all devices as of August 2026, according to Statcounter.
The specific on-page SEO factors change over time, but the underlying principle stays the same: Demonstrate what your web pages are about and make them easy to use.
Consider the following six factors as your on-page SEO checklist:
- Keyword research
- Metadata optimization
- Content optimization
- Performance optimization
- Schema
- Internal linking
1. Keyword research
The terms users type into the search bar when making queries are called keywords.
Keyword research identifies which keywords to target before making changes to a page, and follows three steps:
Define your pages
Make a list of all pages on your website that potential customers might be interested in. This includes product pages, contact and customer service pages, and your homepage, but not your account page or privacy policy.
Look into relevant search queries
Start with how you’d describe each page in plain English, without branded terms. For example, if you sell a waterproof iPhone case called The Stone, your starting phrase is “waterproof iPhone case,” not “the stone.” Type this phrase into Google and review the suggested and related searches for additional options.
Use data to select a keyword for each page
Search engines treat each web page as a single topic, so choose one primary keyword per page. For a homepage, that’s a single term like “men’s dress shoes,” not a split focus across “men’s leather shoes,” “men’s dress shoes,” and “men’s casual shoes.”
Base the choice on search intent, search volume, ranking difficulty, and fit for what you offer:
- Search intent. Whether searchers are looking to buy, compare, or learn about a topic. A keyword’s intent should match what the page delivers.
- Search volume. How often people search the term.
- Ranking difficulty. How hard the term is to rank for against existing results.
- Fit. How closely the term matches your product or business.
SEO tools like Ahrefs and Semrush provide this data.
2. Metadata optimization
Metadata is information about a web page that doesn’t appear on the page itself but is visible to search engines through HTML. Each search engine reads slightly different metadata, but the most important to Google include:
Title tag
A title tag is an HTML element that provides a brief description of a page’s content. It appears in the browser’s title bar and in SERPs as the clickable headline. It should be short, clear, and include your keyword and brand. In Shopify, edit this in the Page title field, in a product, collection, or page’s Search engine listing section.
Description
A description tag, often called the meta description, is an HTML element providing a short synopsis of a page’s content. It’s about three times as long as a title tag. Google doesn’t use meta descriptions as a ranking factor, but includes them in search results below the main blue link. In Shopify, edit this in the Description field, in the same Search engine listing section.
URL
A page’s URL is the web address search engines and shoppers use to find and reference it. A descriptive URL, such as /products/waterproof-iphone-case, tells search engines and shoppers what the page is about. In Shopify, edit this in the URL and handle field, also in the Search engine listing section.
Robots
Robots is also an HTML element, but it doesn’t appear on the page or in search results. Its purpose is to tell Google whether to include a page in search results. If a page’s robots meta tag contains “noindex,” it instructs crawlers not to index the page, meaning it won’t rank in search results. In Shopify, this isn’t set from the Search engine listing section. It requires adding a noindex tag to your theme’s theme.liquid file for individual pages, or editing robots.txt.liquid for site-wide crawl rules.
3. Content optimization
In this context, content refers to the written and visual content on a webpage. The goal of on-page SEO is to show that content is relevant, complete, and trustworthy. There are several main ways to do this:
Headers and heading hierarchy
Headers, defined in HTML as <h1>, <h2>, and so on, are signals of a page’s structure and relevance. Use one H1 per page, matching the page’s primary keyword, then nest H2s and H3s beneath it to organize supporting sections. Include your primary keyword in at least one header, and relevant phrases in others. Repeating the same keyword across more than a few headers reads as keyword stuffing, which means excessively using a keyword to manipulate rankings.
Content depth
Match your content’s length to what the keyword’s top-ranking search results already provide. If competing pages are significantly longer than yours, add more content to match.
Image alt text
Alt text is an HTML attribute that describes an image’s content for search engines and screen readers. Write alt text that describes what the image shows and its function on the page, without starting with “image of” or “photo of.” Alt text also helps a page appear in image search results.
EEAT
Google’s acronym for experience, expertise, authoritativeness, and trustworthiness, the qualities it uses to evaluate content. Communicate these through author bios, product certifications, security standards, and clean design.
4. Performance optimization
Search engines and their users expect web pages to load quickly and work well on mobile devices. Google measures this through Core Web Vitals:
- Largest Contentful Paint (LCP): Measures loading speed.
- Interaction to Next Paint (INP): Measures responsiveness to user input.
- Cumulative Layout Shift (CLS): Measures visual stability.
In Shopify, check your store’s Core Web Vitals in Analytics > Reports > Web performance reports, and your overall speed score, benchmarked against similar Shopify stores, in the Online store speed report.
Google’s PageSpeed Insights provide additional detail for individual pages.
To improve page experience:
- Compress large images and use modern formats
- Enable lazy loading for images and video
- Limit custom fonts
- Remove unused apps and third-party scripts
5. Schema
Schema is a way to classify the information on a web page into structured data. Search engines use it to determine eligibility for rich results, meaning results that show more information than just a title and description.
Structured data makes a page eligible for a rich result; it doesn’t guarantee one will appear, since Google’s systems decide independently which pages display one. Schema is similar to metadata because it doesn’t appear directly to users.
Product schema allows search engines to show product prices, availability, ratings, and sizes directly in their results. Current Shopify-supported themes and Theme Store themes include product structured data by default. If your theme doesn’t include it, add or extend it with custom code or a third-party app.
The same structured data is used by AI shopping assistants, including Google AI Mode, Gemini, and Perplexity, to discover and evaluate products. ChatGPT accounted for 79.4% of worldwideAI chatbot usage in August 2026, with Google Gemini at 10.9% and Perplexity at 4.31%, according to Statcounter.
6. Internal linking
Internal links are links between pages on the same website. Search engines follow them to discover and understand pages. According to Google’s Link Best Practices, every page you want indexed should have a link from at least one other page on your site.
To optimize internal linking:
- Link to each page you want indexed from at least one other page on your site
- Use descriptive anchor text that reflects the linked page’s content, rather than generic text like “click here”
- Link from relevant, related content, not just navigation menus and footers
- Add alt text to image links, since search engines use it as the anchor text for images
On-page SEO for your homepage, collection, and product pages
Each page type serves a different search intent, so on-page SEO applies differently to each.
Your homepage
Your homepage’s title and meta description are edited separately from other pages. In your Shopify dashboard, you can find these details under Sales Channels >Online Store > Preferences, under Social sharing image and SEO, rather than the page’s Search engine listing section.
Target your homepage’s keyword to your store’s overall category or offer, not a single product, since it represents your whole store rather than one item. Include your store’s name in the homepage title so shoppers searching for the store directly find it.
Your collection pages
Collection pages generate filtered URLs when shoppers apply filters, such as color or size. Shopify’s default robots.txt excludes these filtered URLs from indexing, to prevent duplicate content from competing with the collection’s main page.
Give each collection page its own title, meta description, and short description, rather than reusing the same text across collections. Link to your top collection pages from the homepage and navigation menu, since Google’s Link Best Practices recommend at least one internal link for every page you want indexed.
Your product pages
Target a product page’s keyword to that specific product, distinct from the collection page it belongs to. Replace manufacturer-supplied descriptions with original copy.
Google’s Search Essentials describe helpful, reliable, people-first content as a best practice, and identical descriptions repeated across many stores compete against each other in search results rather than standing out. Add product schema to show price, availability, and reviews directly in search results, following the guidance under Schema above.
3 examples of effective on-page SEO
The following examples show on-page SEO principles in practice:
Montreal Weights
Montreal Weights uses specific product names in their title tags and H1s, such as “Buy Adjustable Dumbbells 5-52.5 lbs Set Of 2 dumbbells,” a separate “10-90 lbs” listing, and a third “Ascend 3-in-1 Adjustable Dumbbells” set that adjusts from 7 to 52.5 lbs. This helps search engines and shoppers tell their adjustable dumbbell products apart, rather than competing against each other for the same search terms.
Good Inside
Good Inside’s homepage shares key trust signals early by introducing its founder within the first few lines: “Hi, I’m Dr. Becky, I’m a clinical psychologist and mom of three.” Further down the page, an expert bio repeats her credential as the “#1 NYT bestselling author” behind the Good Inside Method.
Headphones.com
Headphones.com includes customer reviews in their product schema. As covered under Schema above, this is what allows a product’s star rating to appear directly in search results, rather than only on the product page itself.
On-page SEO FAQ
How much does on-page SEO cost?
On-page SEO itself is free. It involves changes you make directly to a store, such as editing title tags or headers, without needing ad spend. Optional costs come from SEO tools like Ahrefs or Semrush for keyword and ranking data, or apps and developer time for advanced schema or performance work. Editing Shopify’s built-in title, description, and URL fields costs nothing beyond your existing Shopify plan.
What are the four types of SEO?
The four types are on-page SEO, off-page SEO, technical SEO, and local SEO. On-page SEO covers content and code on your own pages; off-page SEO covers signals from other sites, like backlinks. Technical SEO covers a site’s crawlability and infrastructure, including site speed and structured data. Local SEO covers visibility in location-based searches, through tools like a Google Business Profile and location pages.
What are some common on-page SEO techniques?
On-page SEO techniques include optimizing metadata (title tags and meta descriptions), heading structure, image alt text, page performance, schema, and internal links. Each targets a different signal search engines use to index and rank a page.
What are some on-page SEO mistakes?
On-page SEO mistakes include keyword stuffing, duplicate or manufacturer-supplied product descriptions, missing image alt text, and a robots meta tag left on “noindex” after testing. Filtered collection URLs left open to indexing create duplicate content, too.
How do you use AI for on-page SEO?
AI tools assist with keyword research, drafting metadata, and generating alt text drafts for a person to review and edit. AI-assisted content still needs to meet the same helpful, reliable, people-first standard as other pages. The same structured data used for on-page SEO also helps AI shopping assistants find and evaluate products, as covered under Schema above.












