Paste this inside a script tag with type application/ld+json in your homepage's head, once per site.
Built by Rankite, the SEO team behind Swordfish AI's +400% revenue and Zluri's +45% organic growth. See the case studies
WebSite schema is one of the more overlooked structured data types, mostly because it describes the site as a whole rather than a specific page or product. Enter your site name and URL, decide whether to add a sitelinks search box, and copy the resulting JSON-LD into your homepage.
The WebSite type tells search engines the formal name of your site and its root URL, which helps establish the entity search engines associate with your brand in results and knowledge panels. Added alongside it, the potentialAction property, using the SearchAction type, is what makes a site eligible for Google's sitelinks search box, the small search field that can appear directly under a brand's result when someone searches for the company by name.
The sitelinks search box only works if your search results URL includes the literal placeholder {search_term_string} exactly where the search query would normally go, for example https://example.com/search?q={search_term_string}. Google replaces that placeholder with whatever a user types into the search box. Get the placeholder wrong, misspell it, drop the curly braces, or point it at a URL that does not actually run a search, and the feature will not activate even though the rest of the schema is valid.
WebSite schema goes on the homepage only, not on every page of the site, since it describes the site as a whole rather than any individual page. Getting a sitelinks search box to actually appear also depends on Google's own discretion and typically requires the domain to have a reasonable amount of existing brand search volume, so treat the markup as a necessary condition rather than a guarantee.
Want this done for you? Rankite offers technical SEO audits and monthly SEO management.
Get a free, no-obligation SEO audit and a 30-minute strategy session. We'll show you exactly where the growth is hiding.
Fill out the form and we'll get back to you within one business day. Prefer email? Write to us directly at contact@rankite.com.