← Back to all guides

Classification: Required · Last updated: April 2026

WebSite Schema for Shopify: The Complete Guide

WebSite schema markup tells Google about your website as a whole — its name, URL, search functionality, and the organization that publishes it. This structured data directly controls how your site name appears in search results and whether Google displays a sitelinks search box for your brand.

What Is WebSite Schema?

WebSite schema (schema.org/WebSite) is a JSON-LD structured data type that describes an entire website as an entity. While Organization schema tells Google who you are, WebSite schema tells Google about the website itself — what it's called, where it lives, and what search functionality it offers.

Google uses WebSite markup for two specific features:

Why WebSite Schema Is Required

Every site that appears in Google search results has a site name displayed. Google explicitly states that WebSite structured data is the primary way to control what that name is. Without it:

Required Properties

According to Google's documentation for WebSite structured data:

Recommended Properties

JSON-LD Example for Shopify

{
  "@context": "https://schema.org",
  "@type": "WebSite",
  "@id": "https://yourstore.com/#website",
  "name": "Your Store Name",
  "url": "https://yourstore.com",
  "publisher": {
    "@id": "https://yourstore.com/#organization"
  },
  "potentialAction": {
    "@type": "SearchAction",
    "target": {
      "@type": "EntryPoint",
      "urlTemplate": "https://yourstore.com/search?q={search_term_string}"
    },
    "query-input": "required name=search_term_string"
  },
  "alternateName": "YSN",
  "inLanguage": "en-GB"
}

Sitelinks Search Box — How It Works

The sitelinks search box is one of the most visible benefits of WebSite schema. When a user searches for your brand name, Google may display a search box within your result that lets users search your site directly. To enable this:

  1. Include the potentialAction property with a valid SearchAction
  2. Your urlTemplate must point to your actual search page with a working query parameter
  3. For Shopify stores, this is typically https://yourstore.com/search?q={search_term_string}
  4. Google must be able to verify that the search URL works by testing it

Note: Google doesn't guarantee the sitelinks search box will appear. It's an algorithmic decision based on your site's prominence, user behaviour, and the quality of your search functionality.

Site Name in Search Results

Google's documentation explicitly states that WebSite structured data is the primary source for determining your site name in search results. The site name appears above your URL in every search result for your domain. Getting this right matters because:

Common Mistakes on Shopify Stores

How Schema Clinic Handles WebSite

Schema Clinic checks for WebSite schema on your homepage during every audit. Missing WebSite schema triggers an error and a Health Score penalty. If present, the audit validates that the name, URL, and search action are all correctly configured.

Pro plan users can generate WebSite schema with all required and recommended properties populated from their store data, including a working Shopify search action and @id entity linking to their Organization.

← Back to all guides