Guide
How to add LocalBusiness schema to your website
A plain guide to structured data for local businesses: what to include, where to put it, and how to test it.
What schema does
Schema markup, also called structured data, is code that describes your business in a format machines can read. It tells search engines and AI tools your business name, address, phone, hours, services and more, without them having to guess from your page text. Google uses structured data to understand pages and sometimes to show rich results. It does not guarantee better rankings, but it removes ambiguity. For local businesses, the main types are LocalBusiness and its more specific subtypes, like Dentist, Plumber, LegalService or Restaurant. Think of it as filling in a form about your business that machines can read without guessing. AI assistants and other search tools can also read this markup, so accurate schema helps more than just Google.
What to include
Use JSON-LD, the format Google recommends. Include the most specific type that fits your business. Add name, url, telephone, address with street, city, province and postal code, geo coordinates, opening hours, and image. Add priceRange only if you are comfortable with it. Use sameAs to link to your official profiles, like Google, Facebook, LinkedIn or industry directories. For service businesses, list areaServed. Every detail in your schema must match what is visible on the page and your Google Business Profile. Marking up information that is not on the page breaks Google's guidelines. Use your full official business name, the same as on your sign and Google profile. If you have special holiday hours, update the schema when you update the profile.
Where to put it
Add LocalBusiness schema to your homepage, or to each location page if you have several locations. Each location page should have its own schema with that location's details. Other page types have their own schema: Service for service pages, Article for blog posts, BreadcrumbList for navigation. Do not add review schema for reviews you collected yourself and show on your own site; Google does not show star ratings for self-serving local business reviews. FAQPage rich results are now limited to well-known government and health sites, but the markup does no harm. If your site runs on WordPress, a reputable SEO plugin can add basic schema, but check what it outputs. Plugins sometimes mark up the wrong business type or leave out key details.
Testing it
After adding schema, test the page with Google's Rich Results Test and the Schema Markup Validator at schema.org. Fix any errors. Warnings about optional fields are usually fine. Then check Google Search Console for enhancement reports and errors over time. Re-test after website updates, since templates can break schema without anyone noticing. Keep schema in sync with your real details; if you change hours or phone numbers, update the schema too. Wrong structured data is worse than none. If you are not comfortable editing code, ask your web person to add and test it. It is usually a short job. Keep a copy of the schema in a document, so you can check it quickly against your real details when something changes.
Checklist
- Choose the most specific LocalBusiness subtype
- Use JSON-LD format
- Include name, address, phone, hours, geo and sameAs links
- Match every detail to the visible page
- Test with Google's Rich Results Test
- Re-test after site updates
Questions
Does schema improve rankings?
Not directly. It helps search engines and AI tools understand your business, which can support visibility.
Can I add star ratings with schema?
Google does not show star rich results for reviews a local business collects and displays about itself.