Technical SEO

Implement Structured Data (Schema) — Step-by-Step Guide

Use JSON-LD for Article, Product, FAQ, HowTo, LocalBusiness, and more. Validate with Rich Results Test.

Medium High Impact 1-2 hrs Online Local Hybrid
Pro Tip

Use Google Tag Manager to inject schema markup without touching your code. Create a Custom HTML tag with your JSON-LD script, trigger it on specific pages. This is the fastest way to deploy and iterate on schema without developer help.

Warning

Only add schema types that match your actual content. Adding FAQ schema to a page without visible FAQ content is deceptive and can trigger a manual action penalty.

Step-by-Step Guide

1

Identify which schema types apply to each page

Match page types to schema: Article for blog posts, Product for e-commerce, LocalBusiness for location pages, FAQ for FAQ sections, HowTo for tutorials, Service for service pages. Check schema.org/docs/full.html for the complete list.

2

Generate JSON-LD markup (use AI prompt)

Copy the AI prompt above, fill in your page details, and generate the markup. JSON-LD is Google's preferred format (over Microdata or RDFa). Each schema block goes in a separate <script type="application/ld+json"> tag.

3

Add to page <head> or via Google Tag Manager

Option 1: Paste the JSON-LD directly into your page's <head> section or template. Option 2: In GTM, create a Custom HTML tag, paste the JSON-LD, and set a trigger for the specific page URL. Option 3: Use Rank Math's built-in schema editor.

  • WordPress/Rank Math: Edit page > Schema tab > select schema type and fill fields
  • Shopify: Use the JSON-LD for SEO app or paste into theme.liquid
  • Next.js: Use next-seo package's schema components or inject via Head
4

Validate with Google Rich Results Test

Go to search.google.com/test/rich-results, enter your URL or paste your code. Check that all schema types are detected and valid. Fix any errors (required properties) and warnings (recommended properties).

5

Monitor in Search Console > Enhancements

After deploying schema, go to Search Console > Enhancements. You'll see reports for each schema type (FAQ, Product, etc.) showing valid items, warnings, and errors. Check weekly for new issues.

Video Tutorial

AI Prompt

Act as a schema markup expert. Generate complete, valid JSON-LD structured data ready to paste into my page's <head> tag.

PAGE DETAILS:
- URL: [URL]
- Page type: [Article / Product / Service / FAQ / How-to / Local Business / Recipe / Event / Course / Software]
- Business name: [NAME]
- Business website: [HOMEPAGE URL]
- Page title: [TITLE]
- Page description: [2-3 SENTENCE SUMMARY]
- Author (if article): [AUTHOR NAME, CREDENTIALS]
- Date published: [DATE]
- Date modified: [DATE]
- Images on page: [LIST IMAGE URLs]
- Breadcrumb path: [e.g., Home > Category > This Page]

FAQ QUESTIONS ON THIS PAGE (if any):
Q1: [QUESTION]
A1: [ANSWER]
Q2: [QUESTION]
A2: [ANSWER]

GENERATE ALL OF THESE AS SEPARATE JSON-LD BLOCKS:
1. PRIMARY SCHEMA — Complete [Page Type] schema with ALL required and recommended properties per Google's Rich Results documentation
2. ORGANIZATION SCHEMA — For the @graph: Organization with name, url, logo, sameAs (social profiles)
3. WEBSITE SCHEMA — WebSite with SearchAction (sitelinks search box) if applicable
4. BREADCRUMBLIST SCHEMA — With proper itemListElement chain
5. FAQ SCHEMA — FAQPage with all Q&A pairs (if applicable)
6. SPEAKABLE SCHEMA — Mark the most AI-citation-worthy section with Speakable

OUTPUT FORMAT:
- Each schema block as a separate <script type="application/ld+json"> tag
- Use @id references to link entities across blocks (e.g., organization @id referenced in article publisher)
- Include comments above each block explaining what it does
- After the code, provide a "Validation Checklist" — list of Google Rich Results types this should trigger

IMPORTANT: Do NOT use deprecated properties. Use schema.org latest vocabulary.

Tools & Resources

Google Rich Results TestSchema.orgSchema Markup Generator — Merkle

Learn More

Structured Data Guide — AhrefsarticleStructured Data Overview — Googleofficial

Do this task in the interactive tool

Track your progress and get guided through every step.

Open Interactive Tool

More in Technical SEO

Enforce HTTPS Sitewide

Easy30 min

Optimize Core Web Vitals

Hard2-5 hrs

Configure Robots.txt Properly

Medium20 min

Submit & Optimize XML Sitemap

Easy20 min

Implement Canonical Tags

Medium30 min

Fix Broken Links & Redirect Chains

Medium1-2 hrs

Mobile-First Optimization

Medium1-3 hrs

Optimize Page Speed

Hard2-4 hrs

Manage Crawl Budget

Hard1-2 hrs

JavaScript SEO & Rendering

Hard2-4 hrs

Set Up Hreflang (International Sites)

Hard1-2 hrs

Clean URL Architecture

Medium30 min

Security Monitoring & Headers

Medium30 min