You choose a schema type that fits the page, create the JSON-LD code and add it to your website.
If you expect schema to put review stars next to your own business name, it is worth hitting the brakes right away. LocalBusiness markup does not give reviews published on the business's own site that kind of appearance.
In this guide I walk through ten steps, from mapping what you need to maintaining the markup. Let's start with what schema actually is.
The ten steps of this guide:
- Map your markup needs
- Choose the schema type
- Map properties to content
- Build the JSON-LD code
- Check the JSON-LD code and page content
- Add the markup to your website
- Test the published page
- Fix schema errors
- Monitor search results
- Maintain the markup
Schema markup and JSON-LD
Schema markup is a set of labels you add to your website's code. The labels tell Google what is what on the page: this number is a price, this text is a review, this address is where your workshop is.
In a CMS you usually do not have to hand-write JSON-LD into every page. Part of the markup comes automatically from the platform, the theme or an SEO plugin.
- WordPress: Yoast SEO, Rank Math and other SEO plugins add basic markup automatically. You can add more specific JSON-LD through a plugin, a code block or the theme.
- Squarespace: the platform adds some structured data itself. You can place custom JSON-LD in a page or site code injection field.
- Wix: basic markup is created automatically, and in the page SEO settings you can change schema values or add new markup.
- Shopify: the theme or an app usually adds markup for product price and stock. Custom JSON-LD can be added to the theme code.
- Webflow: JSON-LD goes into the custom code field of a page or the whole site.
Before adding new code, check what your CMS already outputs. Two schema blocks describing the same product or business with different data can give Google conflicting information.
JSON-LD is the format for these labels, and it is the one Google recommends. The code goes on the page as a separate block, so you do not have to move existing content around, and it is easy to fix later.
A rich result is Google's own decision. Correct markup does not guarantee it will be shown or that you will rank higher, but it helps Google interpret the page data.
What did Google change about schema in 2025-2026?
Google did not stop taking Schema.org markup into account altogether. It removed a selection of little-used rich result types from Google Search.
The June 2025 announcement named the first group. The November follow-up was followed by these tool changes in early 2026:
- Removed from Google Search and the Rich Results Test:
Course Info,Claim Review,Estimated Salary,Learning Video,Special AnnouncementandVehicle Listing. - Removed in January 2026:
Practice Problem;Datasetstayed in use in Dataset Search, not in regular Google Search. - Ended in May 2026: the
FAQrich result. The exact history is in Google's documentation changelog.
This does not mean correct markup harms a page. Google confirmed the change does not affect rankings, and these types remain in use outside Google Search.
Google has not published any measured conclusion about the effect of these removals on AI search. Schema can still give machines structured context, but you cannot promise more visibility on that basis.
The Rich Results Test only checks eligibility for search appearances Google supports. If you want to check all Schema.org types and the code itself, use the Schema Markup Validator.
Map your markup needs
Start with the Google Search Gallery, which lists the search appearances Google supports. Schema.org is a wider vocabulary; not all of its types produce a rich result on Google.
Google's documentation shows the supported types. Review it before you start writing code.
Now let's look at what the page already has. You can do the mapping in four passes:
- Check Google's support. Note down only the types listed in Google's Search Gallery that fit your content, for example Product on a product page.
- Review existing markup. Search the source code for
ld+json, Microdata and RDFa, and check the rendered DOM too. Test the live URL with the Rich Results Test and the Schema Markup Validator. - Look for legacy markup. Older markup code may refer, for example, to a product no longer sold on the page.
- Check the state after a migration. After a website update or CMS change, check that the markup made it to the new page.
In the end you should have two lists: URLs and content types that need new markup, and separately the pages where existing schema needs fixing or removing.
Choose the schema type
First choose the schema type that matches the page's main content from Google's documented use cases, then separate the types Google supports for rich results from the rest of the schema.org vocabulary.
Use Google's Search Gallery to find the type that matches the page content, and check the markup in the Schema Markup Validator.
Some common pairings:
- Product page. Choose
Productand check the requirements for Product snippets or Merchant listings separately; price and stock are not the same set of fields in every use case. - Local service page. Often use the
LocalBusinesstype; add the address and opening hours if the page shows them and the chosen Google feature needs them. - Blog article. Usually use the
Articletype and check Google's documentation for recommendations on author, dates, headline and image. - Breadcrumbs. Use BreadcrumbList if the page is part of a clear page hierarchy and the breadcrumb trail is visible to visitors.
Where many people go wrong: two different goals get mixed up.
A rich result on Google
Google decides for itself whether to show a product price or breadcrumbs. You cannot change that, but you can make sure the opportunity exists. The FAQ rich result is no longer supported, and reviews of your own business do not produce LocalBusiness or Organization stars on its own site.
Machine-readable clarity
Other schema.org types can describe page content in a machine-readable way, but for Google search appearances it pays to work from the Search Gallery. Do not promise a client a special appearance based on a type Google does not list there.
Have you chosen your schema type? The next question is which properties to give it from the page content.
Map properties to content
Tie every chosen schema property to a content element visible on the page, check that the value is up to date, and leave out properties that have no clear match on the page.
On a product page, tie the Product type's offers.price to the price visible on the page and add priceCurrency. On a local service page, the LocalBusiness address must match the one shown on the public page.
For Article (article schema), first tie the article headline to the headline visible on the page. Before creating the code, compare the page and JSON-LD values, for example like this:
- Price: If the product page shows 35 € but the JSON-LD
offers.pricevalue is 30, use the price visible on the page in the markup and addEURas the currency. - Opening hours: If the opening hours change on the page, update the same information in the
openingHoursSpecificationvalues too.
Check the business address and phone number separately. Both places must have the same up-to-date value.
Do not stuff schema with fields just to make the code look longer. Leave a property out if there is no visible, up-to-date information about it on the page.
Every claim in the markup must match information visible on the page. Google must be able to verify the same claim on the page.
Build the JSON-LD code
Do not start from an empty code block. Use AI to help create the schema code. Just say that you need schema code for, say, a product, a service or your business. Give the AI the chosen schema type and the data visible on the page, then check the draft with Google's Rich Results Test.
Before generating, collect only the data needed for the chosen schema type and page. Not all of the fields below are required for every type:
- name, description and canonical URL
- images used on the page
- price, availability or price list
- address and opening hours
- author, date or visible reviews
Product does not need an author field and Article does not need stock levels. A smaller, precise input gives a cleaner draft than a long list of empty properties.
AI can make the first JSON-LD draft. The required and recommended properties for your chosen rich result are still set by Google's documentation for that feature.
The work takes three steps:
- Say which schema type you need and for which page.
- Give the AI you use the data visible on the page, and ask it to check any missing information with you before generating.
- Ask for a single JSON-LD block as output, with no invented values.
A good input says outright that empty properties, or properties not confirmed on the page, must be left out. For example, the Product name must be the same name as on the product page.
Copy-ready AI prompt
Create Article-type JSON-LD based only on the data visible on the public page given below. Do not invent values. First ask me for any missing required information, and leave out unconfirmed recommended properties. Output a single <script type="application/ld+json"> block. Check the fields against Google's Article documentation.
Page URL: [URL]
Headline:
Author: [name and author URL]
Date published: [YYYY-MM-DD]
Date modified: [YYYY-MM-DD]
Image URL: [public image URL]
A complete Article example looks like this:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "REPLACE: visible article headline",
"image": [
"https://example.ee/REPLACE-image.jpg"
],
"datePublished": "2026-01-15",
"dateModified": "2026-01-15",
"author": {
"@type": "Person",
"name": "REPLACE: author name",
"url": "https://example.ee/author/REPLACE"
},
"mainEntityOfPage": "https://example.ee/REPLACE"
}
</script>
Replace all sample values with information visible on the page. Image and author URLs must be publicly accessible.
AI-generated JSON-LD is a draft. It may be syntactically correct but use the wrong type, add a property missing from the page or miss a field Google requires.
Compare the result with Google Search Central's documentation for the chosen rich result. Then paste the code into Google's Rich Results Test and fix the errors before adding it to your website.
Check the JSON-LD code and page content
Before installing, check the JSON syntax, the fields required for the chosen Google rich result, and whether every schema claim is visible and up to date on the public page.
Start with the syntax. A broken quote mark, comma or bracket can make the whole JSON-LD block unreadable.
In Google Search Central's documentation, tell two things apart:
- Required fields for the chosen rich result
- Recommended fields, which add information but whose absence is not an error
Use the Rich Results Test to check Google-supported search appearances and the Schema Markup Validator to check all schema.org markup. Also make sure the page is not blocked by robots.txt, noindex or a login.
Technically correct code can still describe the wrong information. Compare the price, address, availability, dates and image URLs in the markup with the public page; images must be accessible to Google.
For example, 30 €/h may pass the validator without errors even though the price list already shows the service at 35 €/h. A mismatch like this needs fixing even when the tool shows a green result.
Before installing, check for these three error types:
- invalid JSON syntax
- a missing field required for the chosen rich result
- an outdated value or one not visible on the page
Fix the errors in this order. First the tool has to be able to read the code, then you can check the fields and whether they match the content.
Add the markup to your website
Add the validated JSON-LD to the <head> or <body> of the HTML, or to a CMS code field. <head> is often the cleaner choice, but Google can read correct JSON-LD from either.
A simple placement looks like this:
<head>
<!-- other page code -->
<script type="application/ld+json">
{ ... }
</script>
</head>
Replace the three dots with the real JSON-LD object. If your CMS adds the script block to the <body>, that is fine too.
Choose the installation method based on what you can change yourself and how often you update the page data:
- Adding it by hand suits a single stable page if you can edit the HTML or template file.
- A CMS field or plugin suits you if the platform offers the schema type you need and you have access to the settings.
- An automatic link to the data source is something to discuss with your web developer if the e-shop price or availability comes from a database.
Adding code by hand can save you the cost of a paid plugin. For example, with LocalBusiness markup, changing the address or opening hours means changing the JSON-LD too.
Check the settings of the CMS code field, plugin or app. Several schema blocks are allowed, but blocks describing the same product or business with a different price, address or availability contradict each other.
You need a developer when the JSON-LD has to come from a template, a database or server-generated code. The same applies if you do not have access to the source code or the plugin settings.
If the developer ties the JSON-LD and the page content to the same data source, the values can stay consistent. Check the markup after changing page data as well.
With hand-added code, put the schema update on the same checklist you use when changing page content. Fixing a price or address is only done when both places show the same value.
7. Test the published page
After publishing, test the Google-supported search appearance in the Rich Results Test. Check the code for all Schema.org types in the Schema Markup Validator, then fix the errors you find.
The code is on the page. But what you see in your code editor is not yet what Google actually receives from the published page.
So check the live URL separately. Do it before any indexing request, because a request does not fix broken markup or guarantee fast processing.
Always do it in this order:
- Choose the tool by purpose. The Rich Results Test checks eligibility for Google-supported search appearances. The Schema Markup Validator checks all Schema.org types; enter the published URL to test the rendered page.
- Check that the markup is detected. The tool must show the same schema type and the same properties you added to the page.
- Read through the issues. A critical error blocks rich result eligibility; a non-critical issue can make the markup less complete and needs checking against the chosen type's documentation.
- Fix and test again. Repeat the check until there are no critical errors and the non-critical issues have been reviewed.
- Choose the right way to get it reprocessed. For an important, freshly fixed URL you can use URL Inspection. For many pages, keep the sitemap up to date.
Valid markup is like a correctly filled-in application: it gives you the right to stand in the queue, but the official makes the decision. On top of that, the rule is that you may only mark up content that is actually visible to users on the page.
8. Fix schema errors
Fix schema errors in order of importance and test the published URL after each change.
Start with the errors that stop processing:
- JSON syntax: quote marks, commas and brackets.
- Required properties: according to the rich result documentation.
- Invisible content: claims that are not on the public page.
- Outdated values: price, date, availability or product.
- Conflicting blocks: different data for the same entity.
- Rendering: markup missing from the rendered HTML.
| Situation | What to check | Next step |
|---|---|---|
| Warning | Recommended property and the type's documentation | Check the impact after fixing errors |
| Mismatch with visible content | Markup value compared with the visible page | Update the markup, even if the test passes |
| Rendering | Source code compared with rendered HTML | Fix how the script loads |
| Template error | The same error on URLs using the same template | Fix the template or plugin |
| Platform limitation | HTML and settings the platform outputs | Use a solution the platform supports |
To find a harder error, work like this:
- Compare the source code with the rendered HTML.
- Run a crawl to find a URL or template error.
- Check service and product pages by hand.
- Separate access, indexing and serving problems.
With a recurring template error, check the template, plugins and published HTML following the SEO audit guide, or get in touch with me. We will look together at where to start fixing.
The Klaasiprofid result came from a wider SEO overhaul that included more than fixing schema. After fixes, measure in Search Console whether the number of valid items, impressions and clicks moves.
9. Monitor search results
Track rich result impressions, clicks and validity status in Google Search Console. Look at the change in the context of your whole website optimisation, not as a standalone result of schema.
In Google Search Console, open Performance > Search results and look at impressions, clicks and CTR. For product results, use the Search Appearance filters Product snippets and, where needed, Merchant listings. These filters only appear once the site has impressions for that search appearance.
Also check the rich result reports. They group items into the main statuses Valid and Invalid; for individual issues, critical and non-critical problems are told apart.
After fixes, watch whether the number of Valid items grows and the number of Invalid items falls. How fast this changes depends on when Google recrawls the pages and processes the data.
Look at traffic changes in a wider SEO context. Content, internal links, titles and indexing changed at the same time can affect impressions and clicks more than schema alone.
- Invalid: at least one critical issue blocks rich result eligibility.
- Valid: there are no critical issues, but the item may have non-critical gaps.
10. Keep your schema markup up to date
Always update the JSON-LD together with the visible content. Markup also needs a separate review after a redesign, a CMS change, a template change or a plugin update.
Keep these up to date in the same workflow:
- prices and availability
- address, phone and opening hours
- event dates
- product status and page URL
Hand-added code does not know about content changes by itself. If you only update the page, the structured data Google receives stays old.
After a redesign or technical update, make sure the markup has not disappeared, been duplicated or been left out of the rendered page.
The same maintenance rule becomes especially important in an e-shop, where prices, stock and variants can change every day.
E-shop structured data
In an e-shop it pays to tie Product and Offer markup to the same data source that supplies the price and stock visible on the page. That way the JSON-LD does not go stale after a change.
Product describes the product, and the Offer inside it describes the terms of sale, such as price, currency and availability. For variants, ProductGroup brings related products together into one group.
For every product and variant, check at least the SKU, price and availability. If there is no automatic link, add a schema check straight into the workflow for changing price or stock.
For Google, check the requirements for Product snippets and Merchant listings separately. The core product data splits up like this:
- Product: product name, description, image and SKU.
- Offer: price, currency, availability and offer URL inside the
Productobject. - ProductGroup: the group of variants and the properties that tell them apart.
- Review or AggregateRating: only reviews and ratings actually shown on the product page.
A short Product and Offer link looks like this:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "REPLACE: product name",
"image": "https://example.ee/REPLACE-image.jpg",
"sku": "REPLACE-SKU",
"offers": {
"@type": "Offer",
"url": "https://example.ee/REPLACE-product",
"priceCurrency": "EUR",
"price": "35.00",
"availability": "https://schema.org/InStock"
}
}
</script>
Replace the sample values with the data for the same product the buyer sees on the page.
On a directly purchasable product page, the markup must describe the same product, price and availability the buyer sees on screen. For variations, check each variant's values separately.
Is your markup working the way it should?
Schema is one piece of a bigger picture. If you do not know whether the obstacle is in the markup, the technical side or the content, I will go through it with you and tell you plainly where it is.
See also what real clients say about working with me.
Order an SEO audit