Meregate.com
Monday, November 30, 2026
Home › SEO › How to Add Schema Markup to Your Website: A Simple Step-by-Step Guide (2026)

How to Add Schema Markup to Your Website: A Simple Step-by-Step Guide (2026)

How to Add Schema Markup to Your Website: A Simple Step-by-Step Guide (2026)

Schema markup is a small block of code that tells Google exactly what a page is about. You add it to a page, and Google can use it to show extra details in search results, such as star ratings, prices, event dates, and answers to common questions. This guide shows you how to add schema markup to your website step by step, with four methods: by hand, with a WordPress plugin, with Google Tag Manager, and with a free generator. You do not need to be a developer to do any of them.

By the end of this guide, you will know which schema type fits each page on your site, how to write and paste the code, and how to test it before Google sees it.

Schema Markup in 4 Quick Steps

If you want the short version, here it is. The rest of this guide explains each step in detail.

  1. Pick the schema type that matches the page. A blog post uses Article, a product page uses Product, a FAQ section uses FAQPage.
  2. Generate the code. Write it by hand, use a plugin, or use a free generator. The recommended format is JSON-LD.
  3. Add the code to the page. Paste it in the page head, use your plugin, or add it through Google Tag Manager.
  4. Test it before you publish. Run the page through Google’s Rich Results Test and fix any errors it finds.

What Is Schema Markup?

Schema markup, also called structured data, is code added to a webpage that labels its content in a way search engines can read. Visitors never see it. It does not change how the page looks. It sits in the page code and tells Google things like “this is a recipe,” “this product costs $29,” or “this event starts on Friday at 7 pm.”

Google uses that information to decide whether the page can show a rich result. A rich result is a search listing with extra details, such as review stars, a product price, a recipe photo, or a list of questions and answers. Rich results take up more space on the results page, and they often get more clicks than plain listings.

Schema markup does not directly improve your rankings. Google has said it is not a direct ranking factor. What it does is make your pages eligible for rich results, which can raise your click-through rate. It also helps Google understand your content, which matters more as AI search results grow.

Which Schema Type Should You Use?

Schema.org defines hundreds of types, but most small sites only need a few. Pick the type that matches what is actually on the page. Do not add a type for content the page does not have.

Page on your siteSchema type to use
Blog post or news articleArticle or BlogPosting
Product pageProduct (with Offer, price, and availability)
Local business homepage or contact pageLocalBusiness
Company about pageOrganization
FAQ section on any pageFAQPage
Step-by-step guideHowTo
Event pageEvent
Video pageVideoObject
Recipe pageRecipe
Job listingJobPosting
Every page (navigation trail)BreadcrumbList

You can combine types on one page. An article page can carry Article schema plus FAQPage schema for its FAQ section, and a product page can carry Product schema plus Review schema. Each block of code describes a different part of the page. What you should not do is stack two different blocks that describe the same thing, such as two Organization blocks with different names. That confuses Google and can cause errors.

When you are not sure which type fits, check the Schema.org vocabulary and search for your page type. It lists every type and the fields each one accepts.

Method 1: Add Schema Markup by Hand With JSON-LD

JSON-LD is the format Google recommends. It is a block of JSON code that sits inside a script tag in the head section of your page. You write it once, paste it in, and you are done. This method works on any website, no matter what platform it runs on.

Hands typing code on a laptop keyboard

Source: Wikimedia Commons

Here is a copy-paste template for a FAQ section. Change the questions and answers to match your page, and keep the structure the same.

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "What is schema markup?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Schema markup is code added to a webpage that labels its content so search engines can understand it."
      }
    },
    {
      "@type": "Question",
      "name": "Does schema markup help SEO?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "It does not directly improve rankings, but it makes pages eligible for rich results, which can raise clicks."
      }
    }
  ]
}

Here is a template for a blog post. Fill in your own title, author, date, and image URL.

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "Your article title here",
  "author": {
    "@type": "Person",
    "name": "Your name"
  },
  "datePublished": "2026-11-30",
  "image": "https://example.com/your-image.jpg"
}

To use either template, paste the JSON inside script tags in the head section of your page, like this: <script type=”application/ld+json”> … your JSON … </script>. On a plain HTML site, you edit the file directly. On WordPress, you can add it with a code snippet plugin or your theme’s custom code field. Save the page and move on to the testing step below.

A few rules make hand-written schema work better. Use the most specific type you can. For a local bakery, use Bakery instead of the general LocalBusiness type. Only mark up content that visitors can actually see on the page. Never add review stars for reviews that do not exist, and never mark up a price that is not shown on the page. Keep dates, prices, and stock status current, because stale data causes errors.

Method 2: Use a WordPress Plugin

If your site runs on WordPress, a plugin is the easiest way to add schema markup. You fill in a few fields, and the plugin writes the JSON-LD for you. You do not touch any code.

PluginPriceBest for
Yoast SEOFree, Premium from $99/yearBasic schema on posts and pages, set with almost no setup
Rank MathFree, Pro from $59/yearMost control in the free version, with many schema types
Schema ProFrom $79/yearSites that want schema on many pages with custom fields
All in One SEO (AIOSEO)Free, Pro from $49.60/yearSimple setup with schema for common page types

Prices are the starting prices listed on the plugin makers’ sites. Check the plugin page for the latest price before you buy, because prices change.

With Yoast SEO, the steps are simple. Go to the page or post you want to mark up. In the Yoast sidebar, open the Schema tab. Pick the page type, such as Article or Web Page, and the article type if it applies. Fill in the fields Yoast asks for. Yoast adds the schema to the page when it loads, and it also adds Organization schema for your whole site from the settings under SEO, then Site representation.

Rank Math works in a similar way but gives you more types to pick from in the free version, including Product, Recipe, Event, and FAQ. Open the post, find the Rank Math box, and choose the schema type for that page. Fill in the fields, and Rank Math writes the code for you.

Use one plugin for schema, not two. If Yoast and Rank Math both add schema to the same page, Google sees duplicate markup, and that causes errors. Pick one plugin, turn off schema in the other, and keep it that way.

Method 3: Add Schema Markup With Google Tag Manager

Google Tag Manager (GTM) is a good choice when you cannot edit your site code and you do not use WordPress. You add the schema code once in GTM, and it loads on the pages you choose. No developer is needed, and you do not have to touch your site files.

  1. Open your GTM container at tagmanager.google.com and go to Tags.
  2. Click New and name the tag, for example “FAQ Schema – Pricing Page.”
  3. Choose Custom HTML as the tag type.
  4. Paste your JSON-LD code inside script tags in the HTML box, the same way as in Method 1.
  5. Set the trigger. Use All Pages if the schema fits every page, or pick specific pages if it only fits one page, such as a single FAQ page.
  6. Save the tag, then click Submit to publish the container.

Test the page after you publish the container. Open the page in your browser, view the page source, and search for “application/ld+json” to confirm the code is there. Then run it through the Rich Results Test, as described below.

GTM is best for one or two schema blocks. If you need different schema on hundreds of pages, a plugin or a template in your site code is a better fit, because managing that many tags by hand gets slow and error-prone.

Method 4: Use a Free Schema Generator

If writing JSON by hand feels risky, a generator writes it for you. You fill in a form, and it gives you code to copy and paste. These are the most useful free options:

  • Google’s Structured Data Markup Helper: pick a data type, paste your page URL or HTML, highlight parts of the page such as the name or price, and it builds the code. It is the simplest choice for beginners.
  • Merkle’s Schema Markup Generator: pick a type, fill in the fields, and copy the JSON-LD. It covers the common types well, including FAQ, Product, and Local Business.
  • Rank Math’s free Schema Generator: a simple form-based tool that outputs JSON-LD you can paste anywhere.
  • AI tools: ChatGPT, Gemini, or Claude can draft JSON-LD from a short description of your page. Always test AI-written code before you publish it, because AI tools sometimes invent fields that do not exist in the Schema.org vocabulary.

Generators are fast, but they are not a shortcut around testing. Every generator output should go through the Rich Results Test before it goes live.

How to Test Your Schema Markup

Testing is the step most people skip, and it is the step that matters most. A small mistake in your code, such as a missing comma or a wrong field name, can make the whole block useless. Test before you publish, and test again after the page is live.

Laptop showing a website analytics chart

Source: StockSnap
  1. Run Google’s Rich Results Test. Paste your page URL or your code. It tells you which rich results the page is eligible for, and it lists every error and warning it finds.
  2. Check the code with the Schema Markup Validator. This checks your code against the Schema.org vocabulary itself, which catches problems the Rich Results Test can miss.
  3. Fix every error. Errors mean Google cannot use the schema at all. Common errors are missing required fields, invalid JSON, and a wrong type name.
  4. Read the warnings, but do not panic. Warnings point to recommended fields that are missing. They do not stop Google from using your schema, so fix them when you can and move on.
  5. Watch Google Search Console. After the page is live, the Enhancements reports in Search Console show how your rich results are doing over time, and they flag new errors as they appear.

One warning that confuses many people: a page can pass every test and still not show a rich result. Passing the test only makes the page eligible. Google decides whether to show a rich result, and it does not show one for every eligible page.

Common Schema Markup Mistakes to Avoid

  • Marking up content visitors cannot see. Every fact in your schema must also appear on the page. Hidden prices, hidden reviews, and hidden FAQs are against Google’s structured data guidelines and can lead to a manual action.
  • Using the wrong type. A recipe page with Product schema, or a blog post marked as an Event, will fail validation and confuse Google.
  • Adding the same schema twice. This happens when a plugin and a manual code block both add Organization schema, or when schema is added in two places on a builder site. One block per thing, in one place.
  • Marking up your own testimonials. Review schema is for reviews from real customers on independent platforms, not for quotes you wrote about your own business.
  • Forgetting to update the data. Prices, stock status, event dates, and opening hours change. Old data in your schema causes errors and can mislead searchers.
  • Skipping the test step. Untested schema is a guess. A two-minute test catches most problems before Google ever sees them.

How Long Does It Take to See Rich Results?

There is no fixed wait. After you add schema and Google recrawls the page, rich results can show up in a few days. For new pages or sites Google crawls less often, it can take a few weeks. You can speed up the recrawl by asking Google to index the page in Search Console, using the URL Inspection tool and clicking “Request Indexing.”

If a page is eligible, tested clean, and still shows no rich result after a month, that is normal. Google does not show rich results for every eligible page. Check that the page is indexed, that the content is useful, and that the schema matches what is on the page. Then leave it alone and focus on the next page.

Keep Your Schema Markup Up to Date

Schema markup is not a one-time job. It needs the same care as the rest of your site. When a price changes, update the schema. When an event passes, remove or update its schema. When you rewrite a FAQ section, update the FAQPage code to match.

For larger sites, check the Enhancements reports in Search Console once a month. They show new errors across your whole site, so you can fix problems in batches instead of page by page. If your site builds pages from a template, fix the schema in the template once, and every page built from it is fixed at the same time.

Frequently Asked Questions

Does schema markup help SEO?

Yes, but indirectly. Schema markup is not a direct ranking factor, so it does not push your page higher by itself. What it does is make your page eligible for rich results, and rich results often get more clicks than plain listings. More clicks can lead to more traffic, which is the real benefit.

Is schema markup still relevant in 2026?

Yes. It still matters for rich results in normal search, for online stores, and for telling Google clearly what a page is about. It is not a magic fix for AI search, and Google has said no special schema is needed for AI features, but the structured data still helps search engines understand your pages.

How do I check if my website has schema markup?

Open any page on your site, view the page source in your browser, and search for “application/ld+json.” If you find it, the page has JSON-LD schema. You can also paste the page URL into Google’s Rich Results Test, which lists the schema it finds and any problems with it.

What is the recommended format for schema markup?

JSON-LD is the format Google recommends. It is a single block of code in the head of the page, and it is easier to write and fix than the older formats, Microdata and RDFa. Microdata still works, but JSON-LD is the simpler choice for almost every site.

How many types of schema markup are there?

Schema.org defines hundreds of types, from Article and Product to Event, Recipe, and JobPosting. Most sites only need a handful. Start with the types that match your most important pages, and add more only when a page truly fits a new type.

Do I need a developer to add schema markup?

No. A WordPress plugin or a free generator can add schema without writing code, and Google Tag Manager can add it without touching your site files. You only need a developer if you want schema generated automatically for hundreds of pages from a database, or built into a custom template.

Taylor Orlando

Taylor Orlando is a content writer at Meregate covering websites, SEO, and AI. Taylor breaks down complex topics into simple, practical guides that help small businesses build better websites, rank higher on Google, and get real value from AI tools — no jargon, no fluff.

Related Articles

WordPress vs Webflow for SEO: Which Ranks Better?
SEO

WordPress vs Webflow for SEO: Which Ranks Better?

WordPress vs Webflow for SEO: neither platform ranks better by itself. WordPress has the higher ceiling, Webflow has the cleaner start. Here is how they compare on speed, tools, schema and cost.

November 29, 2026 · Taylor Orlando